MCPcopy Create free account
hub / github.com/apple/axlearn / restore_from_dir

Method restore_from_dir

axlearn/common/checkpointer.py:334–342  ·  view source on GitHub ↗
(
        self,
        step: int,
        state: Union[NestedTensor, NestedTensorSpec],
        *,
        ckpt_dir: str,
        validation: CheckpointValidationType = CheckpointValidationType.EXACT,
    )

Source from the content-addressed store, hash-verified

332 raise NotImplementedError(type(self))
333
334 def restore_from_dir(
335 self,
336 step: int,
337 state: Union[NestedTensor, NestedTensorSpec],
338 *,
339 ckpt_dir: str,
340 validation: CheckpointValidationType = CheckpointValidationType.EXACT,
341 ) -> NestedTensor:
342 raise NotImplementedError(type(self))
343
344 def stop(self):
345 """Stops and disposes resources."""

Callers 4

__call__Method · 0.45
validate_and_restoreMethod · 0.45
restoreMethod · 0.45

Calls

no outgoing calls

Tested by 2

restoreMethod · 0.36