NVIDIAAlon LavianExplainer
Support New AI Frameworks Faster Using NVIDIA Workload Map
Summary
NVIDIA Workload Map addresses the repeated adapter work required when Kubernetes platforms interpret distributed workloads such as JobSet, LeaderWorkerSet, PyTorchJob, and RayCluster. Each framework encodes pod templates, replica counts, hierarchy, and status differently, so schedulers and platforms often need framework-specific parsing code. Workload Map ships as a Kubernetes CRD and Go library, with declarative YAML definitions that locate those fields and map native conditions into shared running, completed, and failed states. A JobSet definition uses jq expressions over replicatedJobsStatus and computes pods per replicated Job as replicas times parallelism. The same definition supports workload inspection, KAI Scheduler gang scheduling, and NVIDIA Run:ai visibility; the project is Apache 2.0 licensed and used in production within Run:ai.
Context
On Kubernetes, a distributed training job or multi-node inference server is a tree of resources with roles, replica counts, pod templates, and status. JobSet, LeaderWorkerSet, and other custom resources encode that structure differently, so schedulers, controllers, dashboards, and cost tools need per-CRD adapters. The NVIDIA Run:ai team encountered this while building its platform; each new framework became a roadmap item, delaying support until a release.
Approach / What changed
Workload Map (formerly Karta; the CRD kind remains Karta) is a Kubernetes CRD plus a Go library that resolves live objects into a uniform structural view. Declarative YAML definitions specify root and child components, podTemplateSpecPath, scaleDefinition replicasPath and instanceIdPath, and statusDefinition mappings. A catalog covers JobSet, PyTorchJob, RayCluster, RayJob, RayService, KServe, Knative, MPIJob, NVIDIA NIM, LeaderWorkerSet, Milvus, Grove PodCliqueSet, and NVIDIA Dynamo. Optional optimizationInstructions provide gang-scheduling pod groups. Consumers include KAI Scheduler, NVIDIA Run:ai, and Elotl Nova.
Takeaways
Workload Map moves workload knowledge from compiled adapters into YAML definitions that can be written, reviewed, and applied like other Kubernetes manifests; the catalog includes JobSet, PyTorchJob, RayCluster, KServe, MPIJob, LeaderWorkerSet, Milvus, Grove PodCliqueSet, and NVIDIA Dynamo.
For JobSet, the definition derives Running with a jq expression over replicatedJobsStatus (any ready and active, none failed), maps native Completed and Failed conditions, and calculates pods per replicated Job as replicas times parallelism.
KAI Scheduler uses Workload Map as a fallback pod grouper for workload types without a native plugin, while native plugins retain precedence; NVIDIA Run:ai registers a workload type with one API call using the same catalog definition.
FAQ
How does Workload Map interpret a JobSet's status when JobSet has no plain Running condition?
The JobSet definition uses a jq expression over .status.replicatedJobsStatus: Running is true when any replicated Job is ready and active and none have failed. It also maps the native Completed and Failed conditions onto the shared status vocabulary.
What does a workload definition need to describe a JobSet's child Jobs?
It defines a child component for batch/v1 Job with an ownerRef to JobSet. podTemplateSpecPath points to each Job's pod template, scaleDefinition uses replicas times parallelism for pod count, and instanceIdPath takes each role name from .spec.replicatedJobs[].name.
Does KAI Scheduler replace its native plugins with Workload Map?
No. KAI Scheduler uses Workload Map as a fallback in its pod grouper for workload types without a native plugin, and native plugins retain precedence. A matching definition supplies structure and grouping without a new framework-specific plugin.
Source and freshness
- Source
- developer.nvidia.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.