Skip to content
← Home
Computing2 min read

Ai2 Updates Its AI Hardware Scheduler to Share GPUs Fairly

Ai2's infrastructure team replaced a priority-based GPU scheduler with time budgets, hierarchical fair-share allocation and a minimum-runtime contract. They report that the change cut repairs needing a human by 74% and moved arguments about GPU share into a budgeting process.

Reviewed by Updated on

Rows of server racks with colored bars showing shares of computing time
AI-generated illustration
Peer reviewed
No

Evidence level: Engineering case study with simulations and 30-day operational results

Why it matters: Large AI labs run on scarce GPUs, and who gets them decides which research moves. Ai2’s account shows a familiar shared-resource problem, and a way to price it, in a setting where demand is far larger than supply.

Budgets, a fair-share tree and a runtime contract Ai2 manages thousands of NVIDIA H100, B200 and B300 GPUs in clusters of 88 to 1024 GPUs for about 150 researchers, with outstanding requests for 2–3 times more GPUs than exist. Under the old scheduler, priority inflation pushed all workloads to HIGH priority and some users parked no-op jobs to squat on GPUs.

In the new design, managers split GPU time down a tree that mirrors the research programs. A fair-share scheduler tracks occupancy over a 7-day window, and each workload must declare a minimum runtime, protected from preemption, after which it can be requeued.

Owning GPUs versus owning GPU time Ai2 first tried giving important projects GPU monopolies, a form of privatizing the commons. It left GPUs idle because teams need compute at different times, so the group moved to allocating time instead of hardware.

Allocated work is charged to a budget and protected during its minimum runtime. Unallocated work is free, unprotected and preemptible, which keeps GPUs fully occupied and means no team ever declines free cycles.

Why the incentives shifted The Ai2 scheduler makes gaming the system cost something. A squatting workload now spends team budget on nothing, so the authors expect honest requests for a bigger budget to beat tricks, and budget decisions sit with the managers who know the trade-offs.

The algorithm is not new. Ai2 notes that hierarchical fair-share goes back to the Hadoop Fair Scheduler in 2009 and is used in SLURM and YARN, while the novelty is in the inputs: a tree that mirrors the research programs and weights set by managers.

At Ai2, the minimum-runtime contract also let unhealthy GPU hosts drain as workloads finished their protected time, which automated repairs and reduced repairs requiring a human in the loop by 74%. A user, Chris Clark, says the scheduler feels like an extra 30% compute because idle slots can be reclaimed by bursting later.

What this engineering account does not show The Ai2 post is a team’s own description of its tool, with a user quote and several quantified results. It reports 98% GPU occupancy before and after the change, 98% delivery of owed GPU hours over a 30-day period, and a reduction in human-needed repairs of 74%.

It also reports that debug-workload p90 queue wait time fell from 2 hours to 30 seconds, median queue wait on the largest H100 cluster fell from 5 minutes to 24 seconds, and p90 wait fell by about a third, from 2.8 hours to 1.8 hours.

However, the evidence is the team’s own description, with no independent evaluation. The authors warn that policy changes can have unintended consequences in a zero-sum setting, since users who lose tend to find new workarounds.

How well the fair-share design holds up at another lab, with different workloads, is untested here.

What the scheduler does and does not change It may seem that Ai2 invented a new scheduling algorithm. In fact: hierarchical fair-share dates to the Hadoop Fair Scheduler in 2009, and the new part is the budgeted inputs.

It may seem that the new system gives every team its own GPUs. In fact: teams receive shares of GPU time, and unallocated work still fills idle GPUs.

It may seem that the system eliminates squatting entirely. In fact: it reduces the value of squatting by charging budgets and enabling fast debug starts, but does not claim complete elimination.

It may seem that the 74% reduction in human-needed repairs is the only quantified result. In fact: there are also delivery, occupancy, queue-latency and debug-wait results.

It may seem that the results generalize to other labs. In fact: the evaluation is internal to Ai2, with no independent validation.

Verdict: Ai2 reports that GPU time budgets, fair-share and a minimum-runtime contract reduced the value of squatting and cut repairs needing a human by 74%. The evidence is the team’s own description, with multiple quantified operational results but no independent evaluation.


Based on reporting from Hugging Face Blog. This is an independent explainer, written in our own words with AI assistance; Hugging Face Blog has not reviewed or endorsed it. Read the original for the full details.

Share