Skip to content
ImagineWorld

Training Checkpoints

node_idnode-book_llm-systems-engineering_module-25-training-checkpoints
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num25
chapter_titleTraining Checkpoints
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

A training run for a large language model unfolds over weeks or months of continuous computation, during which the state of the model evolves through billions of parameter updates. This module examines how engineering teams capture, store, and reuse that evolving state through checkpoints, which are snapshots of the training process written to durable storage at regular intervals. Module 24 examined the question of when a training run should conclude, and the present discussion turns to the operational practice of preserving progress throughout the run itself. Checkpoints protect against hardware failures that are statistically inevitable at scale, and they also serve as scientific instruments that allow you to study how capabilities emerge over time. The decisions a team makes about checkpoint content and frequency, among other parameters, influence both the cost and the scientific yield of a training campaign.

A training checkpoint is often described as a saved copy of the model weights. This description understates what is required to resume a run faithfully. A complete checkpoint captures the full state of the training process, so that execution can continue from the saved point as though no interruption occurred. At a minimum this includes the model parameters and the optimizer state, such as the moment estimates maintained by Adam or AdamW. The position of the learning rate schedule must also be captured, because without it the learning rate applied after resumption will diverge from the intended trajectory. Without the optimizer moments, a resumed run will take several steps of degraded updates before adaptive statistics stabilize.

Beyond these core components, a complete checkpoint also records the random number generator states used by the data loader and by stochastic operations such as dropout. When these seeds are preserved, a resumed run consumes the same training examples in the same order that the interrupted run would have seen, which is important for reproducibility and for debugging subtle numerical issues. The iteration counter and the sample counter must also be preserved, among other bookkeeping fields such as accumulated gradient buffers used in large-batch training. Checkpoints that omit any of these elements are sometimes called weak checkpoints, which may suffice for inference deployment yet remain inadequate for faithful training resumption.

flowchart TB
    MP[Model parameters] --- C((Complete<br/>checkpoint))
    OM[Optimizer moments] --- C
    DL[Data loader state] --- C
    C --- LR[LR schedule position]
    C --- SC[Step and sample counter]
    C --- RNG[RNG seeds]

Figure 4-9. Components of a Complete Training Checkpoint

Distributed training introduces a further layer of complexity, because the state of a large model is sharded across hundreds or thousands of accelerators. Each rank must write its portion of the parameters and optimizer state, and the reconstitution of these shards into a coherent checkpoint must handle the possibility that the topology at resumption differs from the topology at the time of the save. Modern training frameworks therefore support resharding, which allows a checkpoint written under one parallelism configuration to be loaded under another, an ability that becomes important when hardware availability changes mid-run.

The frequency with which checkpoints are written governs how much progress can be lost when a failure occurs. If a run writes a checkpoint every thousand steps, then a hardware failure at step 1999 forces the loss of 999 steps of work, which at the scale of frontier training can represent many thousands of dollars of accelerator time. Writing checkpoints more frequently reduces this expected loss, and each write consumes bandwidth to the storage system and briefly interrupts the forward progress of training. The optimal cadence therefore depends on the expected failure rate of the hardware and the throughput of the checkpoint storage path, among other factors including the cost of lost computation (Maeng et al., 2021).

lse-fig-4-10-checkpoint-wasted-compute.png

Figure 4-10. Wasted Compute Under Frequent and Infrequent Checkpointing Cadences

Empirical studies of large training clusters have documented mean times between failures that range from hours to days, depending on the scale of the job and the reliability of the underlying infrastructure. At the scale of tens of thousands of accelerators, failures occur often enough that checkpoint cadence becomes a central design parameter of the training system.

Research on the CheckFreq system demonstrated that fine-grained checkpointing, when combined with asynchronous writes that overlap with ongoing computation, can reduce the effective overhead to a small fraction of a single iteration, enabling checkpoints every few minutes without meaningful throughput loss (Mohan et al., 2021).

Asynchronous checkpointing decouples the act of writing from the act of training. The parameter state is copied into a staging buffer in host memory, after which training resumes on the accelerators while a background process transfers the staged bytes to durable storage. This technique is important for frontier-scale runs, where synchronous writes of terabyte-sized checkpoints would otherwise stall the cluster for minutes at a time (Nicolae et al., 2020). Systems such as Gemini further reduce recovery latency by maintaining in-memory replicas of recent checkpoints across peer nodes, allowing a restart to proceed from peer memory in place of slower persistent storage (Wang et al., 2023a).

Checkpoints captured during training are valuable scientific artifacts in their own right, and treating them solely as insurance against failure discards much of their potential. Intermediate checkpoints provide a window into the temporal dynamics of learning, revealing how particular capabilities emerge, plateau, or regress as training proceeds. The Pythia suite, for example, released a full sequence of checkpoints from several model sizes trained on the same data order, enabling researchers to study phenomena such as memorization onset and the timing of in-context learning ability, among related developmental questions (Biderman et al., 2023).

Model selection is another important use of intermediate checkpoints. The weights that minimize validation loss do not always coincide with the weights that perform best on downstream evaluations, because loss and task accuracy are correlated yet distinct quantities. By retaining several candidate checkpoints from the later portion of a run, a team can evaluate each on a battery of downstream benchmarks and select the version that best matches the intended deployment profile. This practice is especially valuable when a run uses a learning rate schedule that produces several plausible stopping points near its tail.

Intermediate checkpoints also serve as starting points for derivative work. A partially trained base model can be branched into separate continued pretraining experiments, each exploring a different data mixture, without repeating the expensive early phase of training. Similarly, a checkpoint taken before a particular intervention, such as a schedule adjustment or a dataset swap, can be used as a control against which the effect of that intervention is measured. This treats the training run as a tree of possibilities, with each intermediate state available as a branching point for new research, multiplying the value of each compute dollar spent.

Checkpoint Storage and Lifecycle Management at Scale

Section titled “Checkpoint Storage and Lifecycle Management at Scale”

At frontier scale, a single checkpoint can occupy several terabytes of storage, and a long run that retains many intermediate checkpoints can accumulate petabytes of artifacts. Managing this volume requires deliberate policies for naming and retention, among other operational concerns. Naming conventions typically encode the run identifier and the training step at which the checkpoint was taken, so that any saved artifact can be traced back to a specific experimental configuration. Run identifiers are often linked to a configuration store that records the dataset version and the hyperparameters in effect at the time of the save, among other configuration details such as the code revision, providing the context needed for reproducibility. A run might produce the following lcheckpoints:

s3://lab-checkpoints/run-2026-03-14-llm65b-v3/step-000000/
s3://lab-checkpoints/run-2026-03-14-llm65b-v3/step-002000/
s3://lab-checkpoints/run-2026-03-14-llm65b-v3/step-004000/
...
s3://lab-checkpoints/run-2026-03-14-llm65b-v3/step-150000/

Storage tiering is used to balance access speed against cost. Recent checkpoints, which are candidates for immediate resumption, reside on fast parallel file systems near the training cluster, while older checkpoints are migrated to cheaper object storage once they fall outside the recovery window. Retention policies define which intermediate checkpoints are kept indefinitely for scientific use and which are deleted after the run concludes. A common practice is to retain logarithmically spaced checkpoints across the full training trajectory, preserving dense coverage early in the run when learning dynamics change rapidly, and sparser coverage later, together with a small set of fully preserved late-run checkpoints intended for release or deployment.

Versioning discipline extends to the metadata that accompanies each checkpoint. A manifest file describing the parallelism layout and the integrity hashes of the constituent shards, among other metadata including the framework version, allows a loader to verify that all pieces are present before attempting to restore the run. Integrity checks are important because silent corruption during long writes to distributed storage is a documented failure mode, and a corrupted checkpoint discovered only at load time can force a team to fall back to an older save, compounding the loss. Tooling that automates manifest generation and shard verification, among other housekeeping duties, converts checkpoint management from an error-prone manual chore into a reliable component of the training platform.

The operational discipline that surrounds checkpoints ultimately determines whether a long training run produces only a single final model or a rich archive of states suitable for ongoing research. Teams that invest in naming and retention policies, among other areas of operational rigor, find that their checkpoint collection becomes a durable scientific resource, supporting follow-on work long after the original run has ended. Teams that treat checkpoints as disposable backups often discover, when a promising research question arises months later, that the intermediate states needed to answer it have already been deleted.

This book includes additional resources to support and continue your AI journey. Scan the QR code below (or go to ashford-publishing.com/materials) and enter the book code found at the back of this book.