pub fn save_checkpoint(
dir: &Path,
meta: &mut CheckpointMetadata,
tensors: &HashMap<String, Tensor>,
) -> Result<(), CodecError>Expand description
Saves a resumable checkpoint (latest.safetensors + latest.json) atomically under dir.
ยงErrors
Returns CodecError on serialization or filesystem failure.