MCPcopy Create free account
hub / github.com/NVIDIA/FasterTransformer / __init__

Method __init__

examples/pytorch/nemo.py:77–79  ·  view source on GitHub ↗
(self, checkpoints_dir: typing.Union[str, pathlib.Path], load_checkpoints_to_cpu: bool = False)

Source from the content-addressed store, hash-verified

75
76class UnpackedNemoCheckpointDir:
77 def __init__(self, checkpoints_dir: typing.Union[str, pathlib.Path], load_checkpoints_to_cpu: bool = False):
78 self._checkpoints_dir = pathlib.Path(checkpoints_dir)
79 self._load_checkpoints_to_cpu = load_checkpoints_to_cpu
80
81 @property
82 @functools.lru_cache

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected