Remix.run Logo
▲ Grace Blackwell needs a new scheduler: 27% more usable GPUs from the same racks(skypilot.ai)
114 points by wondersky 7 hours ago | 20 comments
▲jhgg 6 hours ago | parent | next [-]

This blog post spends a lot of time telling why gang scheduling is needed here (a fact obvious to anyone using the nvl72s), but doesn't actually go into detail about how their scheduler works.

At work, we have built something very similar, a custom topology aware scheduler for workloads, and the most interesting things about such a project are entirely absent from this article, making it more of a fluff/marketing piece than an actually interesting technical blog in this area.

Our next iteration of this scheduler aims to scale to O(millions) of GPUs, with a scheduling cycle time measured in the milliseconds.

▲ismailmaj 6 hours ago | parent | next [-]

Feels AI-generated, so much text real estate is spent explaining the basics in sufficient detail then just two paragraphs on their scheduler with a lot of hand-waving.

▲zhwu 5 hours ago | parent | prev | next [-]

This blog's goal is to introduce the problem around the new NVL72 system with GPU failures in production, which not all people outside of xAI are aware of. We have more blogs coming up for what we built to handle topology-aware scheduling, defragmentation and hot swapping during failures. The short version of the scheduling piece: jobs are decomposed into 16-node slices placed atomically on a single rack, with two spares per rack reserved for hot swaps.

Seems very relevant to what you are building. Quoting what Ali said: "Quick PoC?"

▲covi 3 hours ago | parent | prev | next [-]

Why do you target millisecond-level cycle time? Are you looking at very fine-grained tasks like elastic sandboxes, in addition to beefy pre- and post-training jobs?

▲zamalek 4 hours ago | parent | prev | next [-]

> O(millions)

Big-O doesn't include constant factors for a reason (never mind just being a constant entirely), but maybe I am misunderstanding what you are trying to say?

▲nextaccountic 3 minutes ago | parent | next [-]

It means ~millions

▲arjie 3 hours ago | parent | prev | next [-]

It's not Big-O complexity notation. It means "a few millions". It's sort of how the word "sanction" can mean one thing or a different thing. The textual glyph sequence means a different thing based on context in English. Pretty normal.

I like to call it Big-O Magnitude Notation.

▲alienbaby 4 minutes ago | parent [-]

why not just say 'millions'

"Our next iteration of this scheduler aims to scale to millions of GPUs"

▲jhgg 3 hours ago | parent | prev [-]

"Order of millions of GPUs being scheduled on" - which is to say when a workload is submitted to the scheduler, it makes a scheduling decision and the individual compute nodes are being programmed within milliseconds.

This means that if say a job requesting GPUs is submitted with a given topology constraint, we would already computed the physical nodes that satisfy the topology requirement, and begun preemption / begun spinning up processes on the target machines within a few milliseconds of the job being submitted. If there were no preemptions required (which means we need to first wait for graceful termination), the job is fully scheduled in the blink of an eye, whether it's on tens or hundreds of thousands of GPUs.

▲deadnomore 3 hours ago | parent [-]

You are abusing big O which is worst case time complexity scaling. If I simplify your notation, then you just wrote O(1)

▲jhgg 3 hours ago | parent [-]

Should have said "order of"

▲jeffinhat 2 hours ago | parent | prev | next [-]

open source the scheduler

▲retiredpapaya 2 hours ago | parent [-]

jhgg and jlf PLEASE OPEN SOURCE THE SCHEDULER

i suspect you also have some great 60Hz cluster observability software ;)

its good for the world if you do it

▲porridgeraisin 5 hours ago | parent | prev [-]

> making it more of a fluff/marketing piece than an actually interesting technical blog in this area.

/genuine do you recommend any other blog?

▲asaiacai 3 hours ago | parent | prev | next [-]

There’s been some prior art in this space I feel that should be mentioned from k8s SIG batch in the Kueue project https://kueue.sigs.k8s.io/docs/concepts/topology_aware_sched...

▲zhwu 3 hours ago | parent [-]

Yes, SkyPilot Platform built the scheduler on top of Kueue. There is some shortcoming of Kueue's TAS that you have to resolve, e.g., you cannot do TAS with a Elastic job, which makes the hot swapping not possible for large-scale jobs on NVL72 racks: https://kueue.sigs.k8s.io/docs/concepts/elastic_workload/#li...

"No Topology-Aware Scheduling (TAS) support."

There is another blog talking about this coming soon.

▲timzaman 3 hours ago | parent | prev | next [-]

Who has nvl72s that this isnt absolutely plainly obvious to - and has been for years. Not just that - topology has -always- been relevant to scheduling, and hpc schedulers have always been aware. What a weird blogpost.

▲zan2215 5 hours ago | parent | prev | next [-]

"Not all high-speed interconnects are created equal" I think he's a red rising fan

▲novalite 5 hours ago | parent | prev [-]

This reads a bit disingenuous and click-baity. There's no "new" scheduler. Gang scheduling and rack-aware scheduling have been around since the days of HTCondor, and are put in practice at almost every large GPU deployment I've seen. The net new information added by this blog is close to zero, and feels like shilling for SkyPilot.

▲hinkley 5 hours ago | parent [-]

The danger of being excited about old techniques is giving the impression that you are years behind everyone else.

A coworker once said of a particular breed of manager who is an emphatic late adopter: it’s as if every time he goes to the dentist he reads an old trade journal in the waiting room and comes back to work with a “new” idea that everyone else is already busy replacing.

Are there any actual newer techniques? For instance, putting 11% of your hardware on reserve for hardware failures seems a bit generous to me for such an expensive cluster. Even if it’s down from some much larger number. One solution to this I’ve seen for handling cpu and memory variability with bin packing is to pool the spare capacity between tasks. For instance a data center with four zones might have 7 backup generators, instead of eight or twelve, counting on clusters of generator failures not to happen frequently.

And of course there’s always running low priority tasks on the spare hardware and evicting them on a fault. However those low priority tasks tend to develop their own shadow priorities when they are in house. But that’s a management problem not a technical one.