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

Method ckpt_dir

axlearn/common/checkpointer.py:1103–1106  ·  view source on GitHub ↗

Obtains the checkpoint dir for the given step.

(self, step: int)

Source from the content-addressed store, hash-verified

1101 logging.info("GC loop done")
1102
1103 def ckpt_dir(self, step: int) -> str:
1104 """Obtains the checkpoint dir for the given step."""
1105 cfg: Checkpointer.Config = self.config
1106 return build_step_dir(cfg.dir, step=step)
1107
1108 def save(
1109 self, *, step: int, state: NestedTensor, evaler_summaries: Optional[dict[str, Any]] = None

Callers 8

saveMethod · 0.95
restoreMethod · 0.95
create_corrupt_ckptMethod · 0.45
test_input_iteratorMethod · 0.45
test_python_savableMethod · 0.45
test_grainMethod · 0.45

Calls 1

build_step_dirFunction · 0.85

Tested by 6

create_corrupt_ckptMethod · 0.36
test_input_iteratorMethod · 0.36
test_python_savableMethod · 0.36
test_grainMethod · 0.36