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

Method from_json_file

tensorrt_llm/builder.py:608–611  ·  view source on GitHub ↗
(cls, config_file)

Source from the content-addressed store, hash-verified

606
607 @classmethod
608 def from_json_file(cls, config_file):
609 with open(config_file) as f:
610 config = json.load(f)
611 return BuildConfig(**config)
612
613
614class EngineConfig:

Callers 5

test_save_load_configMethod · 0.45
eval_trt_llmFunction · 0.45
create_and_save_configFunction · 0.45
from_dirMethod · 0.45

Calls 2

BuildConfigClass · 0.70
loadMethod · 0.45

Tested by 2

test_save_load_configMethod · 0.36