← Questions

Design review: checkpointing a large training run

0
AnthropicSystem design

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

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing