KatInterview

Rolling Out a 500 GB Checkpoint to a 2,000-Node GPU Fleet

System DesignModel answer
HardModel answerSystem Designsystem-designmodel-deploymentp2p-distribution

Last updated

Design a rack-aware pipeline that ships a 500 GB model to 2,000 GPU hosts within 20 minutes, with integrity checks, zero-downtime cutover, and automatic rollback.

Problem

Your team runs an LLM inference service on 2,000 GPU hosts (8 GPUs each, H100-class). A new release consists of a 500 GB bundle: sharded safetensors weights, tokenizer files, and configs. Releases happen often, and each one must reach every host and go live in 20 minutes or less, end to end.

Hosts sit in racks of 16 to 32 machines behind a top-of-rack (ToR) switch. Bandwidth inside a rack is very high (400 to 800 Gbps per host), but links between racks across the spine are oversubscribed. Pulling straight from object storage (S3/GCS) on every host overloads both the egress path and the spine.

Design the system that distributes the bundle, validates it, switches traffic to the new version, and recovers if something goes wrong.

Requirements

Functional

  • Copy the artifact from staging storage to all 2,000 hosts.
  • Verify integrity of individual chunks while they are in transit, and of the whole artifact before it is loaded.
  • Switch from the old version to the new one without dropping requests and without any model-parallel group serving mixed versions.
  • Roll back quickly if validation fails, stragglers stall the rollout, or post-deploy health metrics regress.

Non-functional

  • Total budget of 20 minutes covering download, verification, load, warm-up, and cutover.
  • Hosts have local NVMe and 1 to 2 TB of RAM. An 8-GPU host cannot hold two full copies of the weights in VRAM.

What to cover

  1. Distribution topology. Compare central fan-out, a pipelined chain/ring, tree broadcast, and BitTorrent-style P2P. Pick one and justify it using the network layout.
  2. Chunking and integrity. Chunk sizing, indexing, checksums, and reuse of unchanged data across versions.
  3. Topology awareness. How to use intra-rack bandwidth heavily while capping spine usage.
  4. Orchestration and atomic cutover. NVMe staging, preloading into host RAM or VRAM, and zero-downtime switching for tensor/pipeline-parallel groups.
  5. Failure handling. Stragglers, nodes dying mid-transfer, corrupt chunks, and fast rollback.

Back your choices with rough numbers.

Hints

Hint 1

Start with arithmetic: total bytes delivered (nodes x artifact size) versus what one origin or the spine can push. This quickly rules out central fan-out and shows how much a one-copy-per-rack scheme saves.

Hint 2

Combine approaches in layers: a small tree over the spine to get one copy into each rack, then a pipelined peer swarm inside each rack. Forward chunks as soon as they are verified so stages overlap instead of running sequentially.

Hint 3

Treat a model-parallel group as the unit of cutover. Think about prepare, drain, swap, and commit steps with a version epoch, canary first, then waves limited by spare serving capacity and gated by health checks.

Hint 4

VRAM cannot hold both versions, so decide where the new weights wait (host RAM) and how the old version stays available for rollback (NVMe, ideally RAM too).