Training at Scale — the Operational Reality
Checkpointing, failure arithmetic at 10,000 GPUs, MFU, stragglers, and determinism — what actually consumes a training team's time, which is not the model.
#The failure arithmetic
A large training run is a single distributed computation across thousands of machines that must all make progress together, for weeks. This is an unusual reliability posture: unlike a web service, any single failure stops everything.
Published logbooks bear this out. Meta's OPT-175B run recorded dozens of hardware failures over two months. The Llama 3 405B run on 16,384 GPUs logged 419 unexpected interruptions in a 54-day period — about one every three hours, most of them hardware, with faulty GPUs and HBM the largest single causes. This is not a sign of a badly built cluster — it's the arithmetic of large numbers, exactly as in failure modes, with the difference that here a single failure halts the entire job rather than degrading a fraction of traffic.
The consequences shape everything: checkpointing must be fast and frequent, recovery must be automatic, and the job must tolerate losing nodes.
#Checkpointing
A checkpoint must capture everything needed to resume bit-identically: model weights, optimizer state, learning-rate schedule position, RNG states, and the data loader's position.
Three techniques make this tractable, and production runs use all three:
Sharded checkpointing. Each rank writes only its own shard, in parallel, to separate objects. With 1,024 ranks writing simultaneously, aggregate bandwidth is enormous and wall-clock time collapses. The catch: if you resume on a different number of GPUs — say 960 after losing a few nodes — the 1,024 saved pieces no longer match one-to-one, so the loading code must re-split ("reshard") them to fit the new layout.
Asynchronous checkpointing. Copy the state to CPU memory quickly (fast — it's a device-to-host transfer), then write to storage in the background while training continues. Training pauses for the copy, not for the upload.
Tiered frequency. Frequent lightweight checkpoints to fast local NVMe (SSDs inside the servers); occasional full checkpoints to durable object storage. The local copy reloads in seconds after a typical single-node fault. The remote copy is slower to restore but survives bigger disasters, like losing a whole rack along with its local disks.
Checkpoint interval versus expected loss:
interval too long → lose up to a full interval of work
on each failure
interval too short → spend all your time writing
Optimal interval ≈ √(2 × checkpoint_cost × MTBF)
checkpoint cost 60 s, MTBF 40 h (144,000 s):
√(2 × 60 × 144,000) ≈ 4,157 s ≈ 70 minutesThat is Young's formula, from HPC. It is the same reasoning as checkpoint tuning in a database — trading steady-state cost against recovery time — with much bigger numbers on both sides.
#Elastic training and automatic recovery
Manual restart is not viable at twice-a-day failure rates. The recovery path must be automated end to end.
- 1 Detect NCCL timeout, health probe, or heartbeat loss
- 2 Isolate cordon the bad node (no new work is placed on it), remove it from the pool
- 3 Reconfigure rebuild the groups of ranks that communicate, using only healthy nodes
- 4 Restore load the last checkpoint, reshard if topology changed
- 5 Resume reposition the data loader, continue
The subtle requirements:
- Spare capacity. Hold 2–5% of nodes idle so a replacement is available immediately rather than waiting on a provisioning queue.
- Health checks that run before the job does. A GPU with correctable ECC errors climbing, a link negotiating at half rate, thermal throttling — catch these at allocation time, not three hours into a run.
- Data loader position must be checkpointed. If you restart the data from the beginning instead, the model sees some examples twice and others never. That is a correctness bug that shows up only as subtly worse convergence, and it is very hard to diagnose.
- Global batch size should stay constant across a topology change, or your learning-rate schedule (tuned for that batch size) no longer matches the run. Adjust gradient accumulation to compensate: if you drop from 64 data-parallel ranks to 32, have each rank accumulate twice as many micro-batches before each update.
#MFU — the number to report
Model FLOPs Utilisation answers one question: of all the arithmetic your GPUs could have done, what fraction went into actually training the model? Everything else — waiting for the network, idle pipeline stages, recomputation, stragglers — shows up as the missing percentage. It's the single number that tells you whether a cluster is earning its cost.
| MFU | Reading |
|---|---|
| >50% | Excellent; near the practical ceiling for large models |
| 35–50% | Good; typical for well-tuned large runs |
| 25–35% | Acceptable; there is probably 20% available |
| <25% | Something is wrong. Investigate before scaling further |
Where the missing FLOPs go, in rough order of frequency: communication that didn't overlap with compute, pipeline bubbles, activation recomputation (a deliberate ~33% tax), stragglers, data loading stalls, and kernel launch overhead on small operations.
#Stragglers
Because every collective is synchronous, the job runs at the speed of its slowest rank.
1,000 GPUs, one running 20% slow:
entire job runs 20% slower
999 GPUs idle for 20% of every step
→ cost of one bad GPU ≈ 200 GPUs' worth of wasteCauses, roughly in order of how often they turn up: thermal throttling on one node, a degraded network link, an unbalanced data shard (one rank getting longer sequences), CPU contention on the data loader, and a noisy co-tenant on shared infrastructure.
Detection requires per-rank step-time distributions, not averages. A histogram immediately distinguishes "everything is slow" (a bandwidth or configuration problem) from "one rank is slow" (a straggler to evict). Averaging hides exactly the signal you need.
#Determinism and reproducibility
Fully deterministic large-scale training is achievable but expensive:
- Seed every RNG, per rank, and checkpoint the RNG states.
- Use deterministic kernel implementations. Floating-point addition isn't associative —
(a + b) + ccan differ froma + (b + c)in the last bits. Several fast GPU kernels sum numbers in whatever order threads happen to finish, so the result changes slightly from run to run. - Fix the data order, and checkpoint the loader's position.
- Pin library and driver versions.
- Keep the topology identical on resume. A different GPU count or layout changes the order in which collectives add things up, which (for the same reason) changes the result.
The cost is typically 5–15% throughput. Most production runs accept nondeterminism and rely on statistical reproducibility — two runs converge to similar quality without being bit-identical.
Determinism earns its cost when debugging. A loss spike you cannot reproduce is a loss spike you cannot fix. A common compromise: run deterministically for the first few thousand steps (where instability lives), then relax.
#The observability you need
| Signal | Why | Alert on |
|---|---|---|
| Loss and gradient norm | Divergence, instability | Spike, NaN, or a sustained rise |
| Per-rank step time | Stragglers | p99/p50 ratio above ~1.15 (slowest ranks 15%+ slower than the median) |
| MFU | Efficiency regressions | Sustained drop below baseline |
| Tokens/second | Progress against schedule | Behind projected completion |
| GPU temperature, power, ECC | Impending hardware failure | Correctable ECC rate climbing |
| NCCL collective time | Fabric degradation | Time above expected for the message size |
| Checkpoint write duration | Storage degradation | Growing trend |
The loss curve is the primary signal and should be watched by a human at least daily. Loss spikes are normal in large runs; the question is whether the loss comes back down within a few hundred steps. If not, the standard playbook is to roll back to a checkpoint before the spike, skip the data batches involved, and resume — data quality issues are a common cause.
#Check yourself
What is the failure arithmetic of large training runs?Show answer
What must a checkpoint contain?Show answer
How are checkpoints made cheap?Show answer
How do you pick the checkpoint interval?Show answer
What does automatic recovery require?Show answer
What is silent data corruption, and how is it caught?Show answer
How is MFU computed, and why trust it over GPU utilisation?Show answer
How do you find stragglers?Show answer
#What to carry forward
- At 10,000 GPUs something fails twice a day. Recovery must be fully automatic.
- Checkpoint sharded and asynchronously; interval ≈ √(2 × cost × MTBF).
- Checkpoint the data loader position — replaying data is a silent correctness bug.
- Silent data corruption is real. Monitor per-rank gradient norms and run self-tests.
- Report MFU, not GPU utilisation or scaling efficiency. 40–50% is good.
- One straggler taxes the whole cluster — watch per-rank step-time distributions, not averages.
- Determinism costs 5–15% and buys debuggability. Consider it for the unstable early phase.