Checkpoint State

Checkpoint state is the full set of information needed to resume a training or inference workflow without changing its meaning. It is broader than model weights.

A training run at step can be viewed as state:

where are model parameters, is optimizer state, is scheduler state, is random state, is configuration, is dataset/preprocessing version, and is environment metadata.

Resume should approximate:

for the next steps, subject to nondeterministic hardware behavior.

Required State

  • Model weights and architecture config.
  • Optimizer state.
  • Scheduler state.
  • Global step, epoch, consumed samples, and gradient accumulation position.
  • Random number generator state.
  • Mixed precision scaler state when applicable.
  • Dataset version, split version, preprocessing version, and sampler state.
  • Code commit, config, and environment metadata.

Failure Modes

  • Saving only weights and losing optimizer momentum.
  • Resuming with a different dataset order.
  • Selecting best checkpoints from test data.
  • Corrupting a checkpoint on interrupted writes.
  • Changing code or preprocessing between save and resume without recording it.

Checks

  • Can a run resume from the latest checkpoint and produce valid logs?
  • Is checkpoint writing atomic?
  • Is the best checkpoint chosen by validation metrics only?
  • Is disk retention bounded?
  • Are private paths and internal run names excluded from public notes?