Explore the research collection
1 entry · Follow this search
- Post
Impactful scheduling for GPU clusters
Ai2's AI Infrastructure team replaced their priority-based GPU scheduler with a budget-based system: GPU time budgets allocated hierarchically by managers (lead researcher / PI / lead program manager / CEO), a hierarchical fair-share scheduler tracking occupancy over a 7-day sliding lookback window (lineage: Hadoop Fair Scheduler, SLURM Fair Tree, YARN Fair Scheduler), and a 'scheduling contract' time-slicing mechanism. The contract: every workload declares a minimum runtime (protected from preemption, charged to its budget, max 8 hours) or sets it to zero (unallocated, always preemptible but free). Allocated occupancy draws from the owner's budget and is protected during minimum runtime; unallocated occupancy keeps GPUs full when allocations don't match demand and can be preempted by any allocated request. This killed three pathologies of the old system: GPU 'squatting' (no-op workloads parked for later), priority inflation (100% of jobs at HIGH priority), and on-call toil negotiating shutdowns of non-preemptible jobs on failing hosts. Rollout results (30-day test period, cluster-by-cluster from end of July): teams received 98% of owed GPU hours (13 of 15 teams got 95%+, worst case 90%); occupancy held at 98% with 2-3x demand over capacity; median queue wait on the largest H100 cluster fell from 5 minutes to 24 seconds, p90 from 2.8 hours to 1.8 hours; debug-workload p90 wait fell from 2 hours to 30 seconds; repairs requiring a human-in-the-loop fell 74% via automatic draining of unhealthy hosts at minimum-runtime boundaries. Challenges recorded: interactive dev sessions now face an 8-hour protected-runtime cap (preemption wipes volatile state), so Ai2 is investing in a CPU-only cluster for data-prep sessions and restorable sessions; possible capacity fragmentation for the largest workloads is under investigation with the simulator. One user quote: the new system 'makes it feel like we have an extra 30% compute' via bursting beyond allocation limits when others underuse their share.