CheckpointManager#
- class CheckpointManager(trainer)[source]#
Bases:
objectOwn checkpoint format, save/load backends, and trainer resume semantics.
- load_optimizer_state(optimizer_state)[source]#
Load canonical optimizer state and fail if moments are not restored.
- load_weight_and_resume(*, keywords='', replacement=None, rules=None, strict=False)[source]#
Load configured weights and restore training state when cfg.resume is true.
Pass
rules(a list of(keywords, replacement)pairs) to apply several key rewrites in a single load; the scalarkeywords/replacementform is kept for back-compat and is treated as a one-rule list.
- resume_training_state(checkpoint)[source]#
Restore structured or legacy optimizer, scheduler, RNG, and cursor state.