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

Function build_step_dir

axlearn/common/checkpointer.py:122–124  ·  view source on GitHub ↗

Returns the path of checkpoint at `step` under `base_dir`.

(base_dir: str, *, step: int)

Source from the content-addressed store, hash-verified

120
121
122def build_step_dir(base_dir: str, *, step: int) -> str:
123 """Returns the path of checkpoint at `step` under `base_dir`."""
124 return os.path.join(base_dir, f"{STEP_PREFIX}_{step:0{STEP_NUM_DIGITS}d}")
125
126
127def check_state_structure(

Callers 3

__call__Method · 0.90
ckpt_dirMethod · 0.85
test_buildMethod · 0.85

Calls 1

joinMethod · 0.80

Tested by 1

test_buildMethod · 0.68