Software Engineer • Senior-Level
Software Engineer • Senior-Level
High QualityPrep Other System Design Questions Asked by Anthropic
Continue with targeted system design prep from Anthropic's system design questions.
Interview Summary
The system design round asked me to design a GPU inference scheduler for a cluster containing only eight GPUs. The scheduler needed to serve two very different workloads: small-model requests that consume one GPU each and large-model requests that require exclusive access to all eight GPUs at the same time.
The main challenge was balancing utilization and small-model throughput against the latency of large-model requests. The interviewer pushed on gang scheduling, admission control, starvation prevention, preemption, fairness, GPU fragmentation, workload prediction, and the impact of checkpointing or batching on scheduling policy.
Interview Details
System Design — Design a GPU inference scheduler
The system has only 8 GPUs and must serve two types of model requests.
-
A small-model request needs exactly one GPU and can execute independently of other small requests.
-
A large-model request must acquire all eight GPUs simultaneously:
- Small request -> 1 GPU
- Large request -> 8 GPUs exclusively
A large request cannot begin with fewer than eight GPUs and cannot share any of those GPUs with another request while it is running. Requests from both workload classes arrive continuously. The goal is to design a scheduler that preserves these resource-isolation requirements while balancing small-model throughput against large-model latency.
Follow-Up — Gang Scheduling and Starvation Prevention
The interviewer first asked how the scheduler should represent the large model's requirement to obtain all eight GPUs atomically. A major follow-up was what happens when all GPUs are continuously occupied by small-model requests while a
Unlock Full Details
Create a free account to unlock this interview experience report.