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

Method to_json_file

tensorrt_llm/models/modeling_utils.py:524–526  ·  view source on GitHub ↗
(self, config_file: str)

Source from the content-addressed store, hash-verified

522 return cls.from_json_file(os.path.join(ckpt_dir, 'config.json'))
523
524 def to_json_file(self, config_file: str):
525 with open(config_file, 'w') as f:
526 json.dump(self.to_dict(), f, indent=4)
527
528 def to_layer_quant_config(self, config_file: str):
529 with open(config_file) as f:

Callers 10

test_save_load_configMethod · 0.80
mainFunction · 0.80
save_checkpointMethod · 0.80
quantizeFunction · 0.80
quantizeFunction · 0.80
quantizeFunction · 0.80
quantizeFunction · 0.80
save_checkpointMethod · 0.80
quantizeFunction · 0.80

Calls 1

to_dictMethod · 0.95

Tested by 2

test_save_load_configMethod · 0.64