Fast Fan-Out of a 500 GB Checkpoint Across a GPU Fleet
System DesignModel answerLast updated
Work out the minimum time to push a 500 GB model checkpoint to 100-1,000 machines with 10 Gbps shared links, then design a chunked peer-to-peer rollout that approaches it.
A freshly trained model has 500 GB of weights. Before a fleet of 100 to 1,000 GPU machines can serve it, every machine must hold a full copy. One machine holds the weights at the start. Every machine, including that one, has a 10 Gbps network interface whose capacity is shared between sending and receiving. Assume no particular network topology and that links can run at full speed.
Answer in three parts.
Part 1: Lower bound. Derive the minimum possible distribution time for 100 and for 1,000 machines. Show where each limit comes from. Also show how the answer changes if "shared" is read as "10 Gbps in each direction" instead.
Part 2: Design. Begin with the simplest approach and state its completion time. Then evolve it into a design that comes close to your bound. Cover:
- how the weights are split up
- how a machine decides where to fetch each piece
- what the coordinator does, if you use one
- how you verify that every copy is correct
Part 3: Operating it. Explain how you handle:
- slow or failed machines mid-transfer
- machines that join late
- a corrupted piece of data
- switching from the old model to the new one without downtime, including rollback
Also name the metrics you would watch while a distribution is running.
State your assumptions about anything the problem leaves open.
Hints
Hint 1
Convert carefully: 500 GB is 4,000 gigabits. Compute the time for one machine to receive it, then ask what extra constraint appears when every byte must be both sent by someone and received by someone, and sending and receiving draw on the same 10 Gbps.
Hint 2
A naive source-to-everyone copy takes time proportional to the number of machines. Break the file into chunks so that a machine can start forwarding a chunk the moment it has it, and consider what limits a chain, a tree and a swarm when upload and download compete.
Hint 3
For operations, think per chunk rather than per file: a per-chunk hash from a signed manifest, per-chunk retries from other peers, and a persisted bitmap of finished chunks for resume. Separate downloading from activating, so the old model keeps serving until the new one is verified and loaded.
Model answer
Medium Try it yourself first — then compare your approach, complexity and edge cases.
Part 1: Lower bound
Units. 500 GB = 4,000 Gb. One full copy over one 10 Gbps link takes 4,000 / 10 = 400 s (about 6.7 min), ignoring protocol overhead.
Limits that hold under either reading of "shared":
- Receive limit. Every worker must take in 4,000 Gb, so T ≥ 400 s.
- Source limit. The source must send every byte at least once, which is another 4,000 Gb, so T ≥ 400 s.
Interpretation A: 10 Gbps in each direction (full duplex). The fleet's upload capacity is (N+1) × 10 Gbps. Total bits to deliver are N × 4,000, so T ≥ 400·N/(N+1), which is just under 400 s. The per-machine receive limit dominates, and the bound is about 400 s for both 100 and 1,000 machines.
Interpretation B: sending plus receiving ≤ 10 Gbps (the stated case). Every delivered bit consumes capacity twice, once at the sender and once at the receiver. Total demand is 2 × N × 4,000 Gb. Total capacity is (N+1) × 10 Gbps, including the source. So:
T ≥ 800·N/(N+1)
- N = 100: about 792 s (roughly 13 min)
- N = 1,000: about 799 s (roughly 13.3 min)
Why the bound barely depends on N: peers forward data, so the work spreads across the fleet. Each worker must receive 4,000 Gb and, on average, send about one copy's worth. That gives roughly 8,000 Gb of interface work per machine, which is 800 s. A larger fleet adds both demand and capacity in equal proportion. Under B, the shared interface doubles the best case compared with A.
Part 2: Design
Baseline: the source sends to each worker. The source's uplink serves N × 4,000 Gb, so T = 400·N s. That is about 11 hours for 100 machines and about 4.6 days for 1,000. It scales linearly with N and is unusable.
Step 1: chunk and pipeline. Split the checkpoint into fixed chunks of 32-128 MB. A machine forwards a chunk as soon as it has verified it, instead of waiting for the whole file. This is the foundation for everything below.
Step 2: shape the distribution.
- Chain. Source → w1 → w2 → … Each middle node receives and sends at the same rate r, so 2r ≤ 10 and r = 5 Gbps. Steady state is 800 s, which matches bound B. Add a pipeline fill of about N × (chunk time). With 64 MB chunks (about 0.1 s per hop at 5 Gbps), 1,000 hops adds about 100 s, so roughly 900 s total. The weakness is that one slow or dead node stalls everything behind it.
- Binary tree. An interior node receives at r and sends two copies, so 3r ≤ 10, r ≈ 3.3 Gbps, and T ≈ 1,200 s. This is worse under B. Under interpretation A, a tree with the data split into two halves, where each node is interior in one tree and a leaf in the other (SplitStream style), approaches 400 s.
- Swarm (BitTorrent style). Each worker fetches chunks from any peer that has them, preferring rare chunks first, and uploads chunks it already holds. Total work is balanced automatically, and slow or dead nodes are routed around. With 5-10% protocol overhead it finishes in roughly 850-900 s under B. This is the recommended design.
Seeding detail. The source should send each chunk to only a few peers first, in rarest-first or staggered order, so it uploads about one copy in total. Otherwise it spends its capacity on duplicates. Extra seeds (an object store or a few pre-warmed machines) reduce the load on the source.
Coordinator (tracker).
- It publishes a signed manifest: the model version, chunk list, a SHA-256 hash per chunk, and a root hash.
- Workers report their chunk bitmaps by heartbeat. The tracker returns a small random set of peers, preferring same-rack peers to keep cross-rack traffic low.
- Chunk selection happens at the worker (rarest-first). The tracker only introduces peers, so it carries control traffic, not data, and is never the bottleneck. A few replicas or a gossip fallback remove it as a single point of failure.
Integrity. Verify every chunk against the manifest before storing or forwarding it. After the last chunk, verify the root hash and file sizes. Check the manifest signature so that a bad peer cannot inject data.
Disk. 10 Gbps is about 1.25 GB/s, which NVMe handles. On slower disks, disk write throughput becomes the real bound, so check it.
Cheaper alternative: if each GPU group only needs its tensor-parallel shard, ship only those shards. This reduces both the data volume and the bound.
Part 3: Operating it
- Stragglers. Use per-chunk timeouts and re-request from a different peer. In the final few percent ("endgame"), request the remaining chunks from several peers at once. Deprioritize slow uploaders, and never restart from zero.
- Failures and resume. Persist the chunk bitmap on disk. A restarted worker re-verifies its chunks (or trusts per-chunk markers) and continues. Peers that disappear are dropped after missed heartbeats.
- Late joiners. They simply enter the swarm, since completed workers keep seeding. Keep seeders alive until the rollout is declared done.
- Corrupted chunk. Discard it on hash mismatch and fetch it again from another peer. Count failures per peer, and ban a peer after repeated bad chunks.
- Cutover. Download into a versioned directory without touching the live model. Then verify, load into GPU memory, and run a warm-up request. Workers report "ready". The controller activates in waves (a canary first, then the rest), or once a threshold such as 99% is ready. Switching is an atomic pointer or traffic flip. Keep the old version on disk and in memory long enough for instant rollback.
- Metrics.
- per-worker percent complete and throughput
- p50/p99 completion time
- source egress
- chunk replication counts (the rarest chunk's count is the key health signal)
- hash-failure and retry rates
- number of workers ready
Common mistakes
- Mixing up bits and bytes (500 GB over 10 Gbps is 400 s, not 50 s).
- Ignoring the shared-bandwidth constraint and quoting 400 s as achievable.
- Claiming the bound grows with the number of workers.
- Making the coordinator carry data.
- Verifying only at the end, so one bad chunk costs a full re-download.
- Replacing the live model before the new one is verified.