Enable Gang Scheduling and Workload Prioritization in Ray with NVIDIA KAI Scheduler

AI-generated summary of reporting by NVIDIA Developer Blog. Read the original for the full story.

Why it matters

Teams running Ray on Kubernetes can now get gang scheduling, preemption and hierarchical queuing from KAI Scheduler without building their own coordination logic.

Read this as

NVIDIA's KAI Scheduler, the software that coordinates GPU jobs in its Run:ai platform, now works directly with Ray, a popular open-source system for running AI workloads. It ensures all parts of a distributed job start together or not at all, avoiding wasted GPU time. Higher-priority jobs like serving chatbots can automatically push aside lower-priority ones like model training. Teams running AI infrastructure on Kubernetes are the ones affected.

NVIDIA has natively integrated its KAI Scheduler (from Run:ai) with KubeRay, so training and inference jobs can coexist on shared GPUs without over-provisioning. High-priority inference preempts lower-priority training, and idle GPU capacity can be borrowed across teams via hierarchical queues with quota controls. The main gain is higher GPU utilisation on limited clusters; the demo used a single A10G GPU, and model-loading speed for production needs NVIDIA Run:ai Model Streamer.

KAI Scheduler integrates with KubeRay: labelling workloads with kai.scheduler/queue is the only required config, with optional priorityClassName for preemption. Distributed Ray pods are gang-scheduled (all-or-nothing startup and preemption). Hierarchical queues expose quota, limit and over-quota weight fields for fairness across teams. The demo preempts a RayCluster training job to run a RayService serving Qwen2.5-7B-Instruct via vLLM on one A10G GPU; the KAI team appears at KubeCon NA in Atlanta this November.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

KAI Scheduler KubeRay NVIDIA Run:ai Ray vLLM Qwen2.5-7B-Instruct NVIDIA A10G

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading