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

Method latest_checkpoint_step

axlearn/common/checkpointer.py:870–873  ·  view source on GitHub ↗

Returns the most recent (highest step count) checkpoint step under base dir.

(cls, base_dir: str)

Source from the content-addressed store, hash-verified

868
869 @classmethod
870 def latest_checkpoint_step(cls, base_dir: str) -> int:
871 """Returns the most recent (highest step count) checkpoint step under base dir."""
872 # Note: checkpoint_steps should already filter incomplete checkpoints.
873 return max(cls.checkpoint_steps(base_dir))
874
875 def __init__(self, cfg: Module.Config, *, parent: Optional[Module]):
876 super().__init__(cfg, parent=parent)

Calls 1

checkpoint_stepsMethod · 0.45

Tested by 1