Expand description
Checkpoint — save and load model parameters.
Structs§
- Training
Checkpoint - Complete training checkpoint: model weights + optimizer state + training metadata.
Functions§
- from_
bytes - Deserialize named tensors from an in-memory byte slice.
- load
- Load parameters from a checkpoint file into an Executor.
- load_
tensors - Load named tensors from a file.
- load_
trainer - Load parameters from a checkpoint file into a Trainer.
- load_
training - Load a complete training checkpoint from a file.
- read_
checkpoint - Read named tensors from a reader in the Shrew checkpoint format.
- read_
training_ checkpoint - Read a full training checkpoint from a reader.
- save
- Save all parameters from an Executor to a checkpoint file.
- save_
tensors - Save a list of named tensors to a file.
- save_
trainer - Save all parameters from a Trainer to a checkpoint file.
- save_
training - Save a complete training checkpoint to a file.
- to_
bytes - Serialize named tensors to an in-memory byte vector.
- training_
from_ bytes - Deserialize a training checkpoint from an in-memory byte slice.
- training_
to_ bytes - Serialize a training checkpoint to an in-memory byte vector.
- write_
checkpoint - Write a set of named tensors to a writer in the Shrew checkpoint format.
- write_
training_ checkpoint - Write a full training checkpoint to a writer.