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

Method save

axlearn/common/checkpointer_test.py:1427–1429  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1425 step = 1000
1426 # Save ckpt.
1427 final_dir = os.path.join(root_dir, f"step_{step:08d}")
1428
1429 async def save():
1430 storage.save_to_dir(step=step, state=state, ckpt_dir=final_dir)
1431 storage.wait_until_finished()
1432

Callers 15

test_save_and_restoreMethod · 0.45
test_gdaMethod · 0.45
test_custom_dictMethod · 0.45
test_input_iteratorMethod · 0.45
test_python_savableMethod · 0.45
test_grainMethod · 0.45

Calls 2

save_to_dirMethod · 0.45
wait_until_finishedMethod · 0.45

Tested by

no test coverage detected