MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / from_checkpoint

Method from_checkpoint

tensorrt_llm/models/modeling_utils.py:521–522  ·  view source on GitHub ↗
(cls, ckpt_dir: str)

Source from the content-addressed store, hash-verified

519
520 @classmethod
521 def from_checkpoint(cls, ckpt_dir: str):
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:

Callers

nothing calls this directly

Calls 1

from_json_fileMethod · 0.45

Tested by

no test coverage detected