Checkpoint

A checkpoint is a saved snapshot of a model's parameters, and often its training state, taken during or after training so the model can be reloaded, resumed or shared.

Training a large model can take weeks on thousands of chips, and hardware fails. Nobody wants to start again from zero because one machine crashed on day nine. So training code saves its progress at regular intervals. Google's machine learning glossary defines a checkpoint as data that captures the state of a model's parameters during or after training, which lets engineers stop, reload the checkpoint, possibly on different hardware, and carry on.

What goes into a checkpoint depends on its purpose. To simply run the model, the learned weights are enough. To resume training exactly where it stopped, more is needed: the state of the optimiser, the current step or epoch, and the latest loss. PyTorch's documentation notes that such a full training checkpoint is often two to three times larger than the model alone, because the optimiser's own state, which it updates throughout training, is saved as well.

Checkpoints are also how models are compared and released. Teams save many during a run, test each one and keep the best, which guards against a model that has started to overfit. Research projects publish them so others can study how learning unfolds: the Pythia suite, released in 2023, provided 154 checkpoints for each of its 16 language models. When a company releases an open-weight model, what people download is a checkpoint.

In news coverage the word often appears when a model's weights leak, when an open model is released in several versions, or when a lab reports a training run being restarted after a failure. A checkpoint is the model itself in stored form, so whoever holds it can run the model.

Common questions

What is a model checkpoint?

A model checkpoint is a saved copy of a model's learned parameters at a point in training, sometimes along with the optimiser's state and training progress. It allows training to resume after an interruption and lets the model be loaded later for testing or use.

What is the difference between a checkpoint and model weights?

The weights are the learned numbers themselves. A checkpoint is a saved file or set of files containing those weights, often together with extra information such as the optimiser state, the step number and the loss, so that training can resume exactly.

Why are checkpoints saved during training?

To protect against crashes and hardware failures, to allow training to be paused and restarted, and to let engineers compare the model at different stages and keep the best version. Saved checkpoints also let researchers study how a model's abilities develop over time.

Is an open-weight model download a checkpoint?

Yes. Releasing an open-weight model means publishing a checkpoint of its trained parameters, usually without the optimiser state, so that others can run or fine-tune it.

Finding more

Search for "saving and loading checkpoints", "distributed checkpointing" or "intermediate training checkpoints" depending on whether you want the engineering or the research angle. The documentation of training frameworks such as PyTorch, model hosting platforms and research papers that release checkpoints are reliable. Check what a given checkpoint contains before comparing file sizes or capabilities.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.