Design a GPU Cluster Scheduler for Customer Fine-Tuning Jobs
Last updated: November 29, 2026
Quick Overview
Design a scheduler that runs thousands of customer fine-tuning jobs of very different sizes on a shared GPU fleet, maximizing utilization while keeping queue times fair and predictable.
OpenAI
November 29, 20260
0
0 solved
Design a scheduler that runs thousands of customer fine-tuning jobs of very different sizes on a shared GPU fleet, maximizing utilization while keeping queue times fair and predictable.
OpenAI runs fine-tuning for API customers on GPUs that are also wanted for research and inference. Interviewers assess whether you understand gang scheduling, topology, preemption with checkpoints, and fairness, beyond simply putting jobs in a queue.
What the Interviewer Expects
- Gang-schedule multi-GPU jobs so all workers start together
- Place jobs with network topology in mind (same node or same rack for tensor parallel work)
- Use preemption plus checkpoints to let high-priority work in without losing progress
- Prevent fragmentation and large-job starvation with backfill and reservations
- Enforce per-customer fairness and quotas
- Provide queue time estimates and job status
Key Topics to Cover
How to Approach This
- Start by clarifying functional and non-functional requirements with the interviewer.
- Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
- Draw a high-level architecture first, then deep dive into 1-2 critical components.
- Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
- Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
- How do you schedule a 64-GPU job when the cluster never has 64 free at once?
- How often should jobs checkpoint, and who pays the checkpoint overhead?
- How would you handle a bad node that keeps crashing jobs?
- What changes if inference wants to borrow GPUs during a traffic spike?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Practice System Design ProblemsSample Answer
Requirements
- Jobs specify model base, dataset, hyperparameters; the platform maps each to a GPU shape (1, 8, 32, 64 GPUs).
- Thousands of jobs per day, most small (single node), a few large.
- Fair share among c...
High-Level Design
- Job API validates and stores jobs; planner maps to a resource shape and estimated GPU-hours.
- Scheduler (a central loop over a priority queue) knows cluster topology: GPUs per node, nod...