Design review: checkpointing a large training run
I was asked this
No reports yet. Sign in to say where you were asked it.
An AI system design interview question asked in Anthropic's system design round. It tests design review, training infrastructure and checkpointing.
You are reviewing the checkpointing design for a month-long training run. Critique it: what fails, what it costs, what you would change, and what the doc does not cover. You have 45 minutes.
Checkpointing for the 70B run (draft)
Setup. A 70B-parameter model trained on 1,024 GPUs (128 nodes) for 30 days with mixed precision (bf16 compute) and the Adam optimizer, sharded across ranks.
Size. A checkpoint is the model weights: 70B × 2 bytes ≈ 140 GB.
Schedule. Every 2 hours, all ranks stop training and write their shards to one shared NFS server (about 5 GB/s of write bandwidth).
Commit. Rank 0 first updates the latest file to point at the new checkpoint directory, then every rank writes its shard there.
Restart. After a failure the job restarts from latest. The data loader restarts from the beginning of the current epoch (one epoch is about 6 days).
Retention. All checkpoints are kept for the life of the project.
Topology. Restoring requires the same 1,024-GPU layout, because each shard maps to one rank.
Validation. None; NFS writes are reliable.
What a strong answer covers
- Working the numbers the doc gives (model size, GPU count, bandwidth, interval) into how long a checkpoint takes, how much training time each one and each failure costs over 30 days, and what a restart actually restores.
- Each problem ranked by impact and likelihood, with numbers where the doc gives them, not a flat list of nits.
- A concrete change for each serious problem, and what it costs in latency, complexity or money.
- What the doc never mentions and must before it ships: how often nodes are expected to fail at this scale, how a corrupt or partial checkpoint is detected, and what it costs to store everything that is kept.
- A clear verdict at the end: approve, approve with changes, or send back, and the two or three changes that would flip it.
Follow-ups
- Hardware failures on this cluster average one every 8 hours. How does that change your choice of checkpoint interval?
- Half the run must move to a cluster with a different GPU count. What does the checkpoint format need for that to work?
- How would you make writing a checkpoint stall training for seconds instead of minutes?
Where it's asked
- Anthropic · System design55 min · Design discussion, often typed into a shared Google Doc rather than drawn; some rounds let you share any drawing tool · No AI
What it tests
design review · training infrastructure · checkpointing · distributed systems
Sign in to see the worked answer
The full answer, chapter by chapter, with what interviewers expect at each level. New accounts get 5 credits: each one unlocks a question for good.
What the labs asked this week
A weekly email of what OpenAI, Anthropic and the other top AI labs asked engineers, round by round.
