MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / to_json_file

Function to_json_file

tensorrt_llm/_utils.py:663–665  ·  view source on GitHub ↗
(obj, json_file_path)

Source from the content-addressed store, hash-verified

661
662
663def to_json_file(obj, json_file_path):
664 with open(json_file_path, "w", encoding="utf-8") as writer:
665 writer.write(to_json_string(obj))
666
667
668def numpy_fp32_to_bf16(src):

Callers 4

lora_convertFunction · 0.90
build_phi_engineFunction · 0.90
build_phi4mm_engineFunction · 0.90
save_configMethod · 0.85

Calls 1

to_json_stringFunction · 0.85

Tested by

no test coverage detected