What is an AI checkpoint?

A checkpoint is a copy written to persistent storage of a model's weights at a given point during or after training, together with what is needed to resume training, such as optimiser state, learning rate schedule and step count.

Unlike gradient checkpointing, a memory-saving technique recomputing some activations in the backward pass despite the similar name, a checkpoint is a saved moment of training. Released checkpoints are the subject of model versioning.

Topic
Machine learning, models and training
Also known as
Model checkpoint, training checkpoint

How an AI checkpoint works

  1. Training writes model weights and optimiser state to disk at set steps or intervals.
  2. After an interruption, training resumes from the last checkpoint, losing only steps since then.
  3. Several checkpoints are compared on validation performance and the best can be chosen.
  4. Inference needs only weights; optimisers such as Adam keep extra values per parameter, so training state is stored separately.

In more detail

Checkpoint size: weights versus optimiser state

In mixed-precision AdamW training, BF16 weights take about 2 GB per billion parameters, while FP32 master weights and the two moments add about 12 GB more. Full checkpoints for resuming training are therefore several times larger than inference-only weight files.

Exact resumption and distributed checkpointing

Exact training resumption also requires saving random number generator (RNG) states and data-loader and sampler offsets; otherwise batches are repeated or skipped after a crash. In multi-node FSDP or ZeRO-3 runs, distributed checkpointing saves sharded state across ranks asynchronously so GPUs are not stalled waiting on slow storage.

Commonly confused terms

TermHow it differs
Model weightsA checkpoint typically holds the full training state (weights, optimiser moments, scheduler, step), whereas exported model weights contain only the parameters needed for serving.
Adapter checkpointIn LoRA or PEFT fine-tuning, an adapter checkpoint saves only the small trainable adapter matrices rather than full base model weights, cutting storage from tens of gigabytes to tens of megabytes.

Why an AI checkpoint matters for on-premises AI

Large model training runs for days and can stop through hardware failure, interruption or pre-emption; without checkpoints hours of GPU work are lost. A study automating frequent checkpointing notes checkpoints were traditionally taken at epoch boundaries and, since an epoch takes hours in modern networks, interruptions lose hours; frequency can be tuned at iteration level while bounding overhead. Checkpoints contain weights, so they also need to be protected from unauthorised access.

ON-PREMISES EXAMPLE

Fine-tuning a mid-sized model on its own data, an energy company takes checkpoints at regular intervals; when a server restarts overnight, training resumes from the last one and the checkpoint with the best validation result goes to the model registry.

Common questions

Are a checkpoint and gradient checkpointing the same?

No. A checkpoint is a saved moment of training. Gradient checkpointing recomputes activations to save memory.

How often should checkpoints be taken?

It depends on balancing work lost in an interruption against saving overhead. In long runs, more often than each epoch is common.

Sources

In the glossary: Glossary, A to D

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.