Ophir Yoktan
02/23/2023, 12:23 PMcurrent_context().checkpoint
returns a file like object - but no further details are provided
specifically I'd like to know if there are integrations with frameworks like keras (the native keras checkpointing mechanism expects a directory, not a single file)
and if not, is there a mechanism to write a new file instead of appending to a single fileKetan (kumare3)
Sören Brunk
02/23/2023, 4:07 PMCheckpoint
instance they work with directoriesOphir Yoktan
02/23/2023, 4:18 PMSören Brunk
02/23/2023, 5:07 PMcp: Checkpoint = flytekit.current_context().checkpoint
checkpoint_path = <your_local_checkpoint_path>
cp.save(checkpoint_path)
cp: Checkpoint = flytekit.current_context().checkpoint
if cp.prev_exists():
checkpoint_path = cp.restore(<your_local_checkpoint_path>)