Skip to content

Commit

Permalink
Save StepMetadata in the Checkpointer.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 707670612
  • Loading branch information
BlaziusMaximus authored and t5-copybara committed Dec 19, 2024
1 parent 5f03619 commit 30962ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t5x/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ def save(
path: str,
item: train_state_lib.TrainState,
force: bool = False,
custom: dict[str, Any] | None = None,
state_transformation_fns: Sequence[
checkpoints.SaveStateTransformationFn
] = (),
Expand All @@ -268,6 +269,7 @@ def save(
path: path to save item to.
item: a TrainState PyTree to save.
force: unused.
custom: unused.
state_transformation_fns: Transformations to apply, in order, to the state
before writing.
concurrent_gb: the approximate number of gigabytes of partitionable
Expand Down

0 comments on commit 30962ec

Please sign in to comment.