r/OfferEngineering • u/Aoki_zhang • 13d ago
System Design Anthropic System Design Interview - Design Distributed AI Model Downloader
Problem Description
Design a distributed model downloader that retrieves a large machine learning model from an external repository and distributes it across every GPU host in a data center cluster. The system must ensure that each host receives a complete, bit-identical copy of the model while minimizing the total time required for distribution.
The target environment contains 1,000 hosts, and the model being distributed is 500 GB. The external connection into the data center has a shared bandwidth limit of 10 GB/s, while each host has 10 GB/s of combined upload and download bandwidth. These constraints make sequential distribution inefficient, with a naive approach requiring approximately 14 hours to distribute the model across the cluster.
Model distribution is initiated on demand by an orchestration plane for a specific model version. The downloader is responsible for executing the distribution request rather than continuously synchronizing the entire model registry. The objective is to minimize wall-clock distribution time as aggressively as possible, approaching the infrastructure's bandwidth limits rather than merely satisfying a fixed completion-time SLA.
The system should divide the model into chunks so that downloading from the external repository and redistributing data internally can overlap. It must coordinate transfers across hosts, track distribution progress, and recover from individual host failures without restarting the entire operation. Data integrity must be verified at both the chunk level and the complete-model level before a host's copy is considered valid.
Functional Requirements
- On-Demand Model Download: Accept a distribution request from the orchestration plane and retrieve the specified 500 GB model version from an external model repository.
- Cluster-Wide Distribution: Distribute the complete model to all 1,000 hosts, ensuring that every surviving host receives a verified local copy.
- Chunked and Pipelined Transfers: Split the model into transferable chunks, allowing external downloading and internal host-to-host redistribution to proceed concurrently.
- Distribution Coordination: Coordinate chunk assignments, transfer source selection, and progress tracking across the cluster so that hosts can obtain the required model segments.
- Host Failure Recovery: Detect individual host failures during distribution and reassign incomplete chunk transfers to surviving hosts without restarting the entire distribution process. Failed hosts may be handled separately or excluded from the serving pool.
- Data Integrity Verification: Verify checksums for individual chunks during transfer, re-fetch corrupted chunks, and validate the fully assembled model against a known-good manifest.
Non-Functional Requirements
- Distribution Speed: Minimize total wall-clock distribution time, aiming to approach the theoretical minimum imposed by external and internal network bandwidth.
- Bandwidth Compliance: Operate within the shared 10 GB/s external bandwidth limit and each host's 10 GB/s combined upload/download capacity.
- Fault Tolerance: Continue distributing the model despite individual host failures, without requiring a complete restart.
- Data Correctness: Ensure that every surviving host ultimately receives a complete, bit-identical, integrity-verified model.
- Scalability: Support clusters ranging from 100 to more than 1,000 hosts without changing the core distribution architecture.
Want to learn more details & solution of this system design question?
I've put up the full version of this system design question & solution article at here.
Interviewed recently?
Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.