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

Method restore

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

Source from the content-addressed store, hash-verified

1431 storage.wait_until_finished()
1432
1433 asyncio.run(save())
1434
1435 async def restore():
1436 # Successfully restores with different dtypes.
1437 restored_state = storage.restore_from_dir(
1438 step,
1439 state=make_state(float_dtype=restore_floats_as),
1440 ckpt_dir=final_dir,
1441 validation=CheckpointValidationType.EXACT_UP_TO_DTYPE,
1442 )
1443 return restored_state
1444

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 1

restore_from_dirMethod · 0.45

Tested by

no test coverage detected