save_checkpoint - Tinker Documentation

tinker_cookbook.checkpoint_utils.save_checkpoint

tinker_cookbook.checkpoint_utils.save_checkpoint( training_client, name, log_path, loop_state, kind, ttl_seconds, store)

Save model checkpoint (synchronous wrapper around save_checkpoint_async).

Parameters:

Returns: Dict mapping "state_path" and/or "sampler_path" to tinker:// paths.

save_checkpoint(
training_client=training_client,
name="step-100",
log_path="./logs",
loop_state={"epoch": 0, "batch": 100},
)