Validating AI Factory Software Stacks Before Hardware Arrival
Teams can validate GPU stacks without physical hardware using NVIDIA Mokka to simulate GPUs on CPU nodes. By running Mokka on the NVIDIA DSX Air platform, operations teams rehearse failures, find scale limits, and test Day 2 changes before production deployment.
Tags
Quick summary
Teams can validate GPU stacks without physical hardware using NVIDIA Mokka to simulate GPUs on CPU nodes. By running Mokka on the NVIDIA DSX Air platform, operations teams rehearse failures, find scale limits, and test Day 2 changes before production deployment.
Validating AI Factory Software Stacks Before Hardware Arrival
Building an AI factory requires integrating advanced infrastructure, but the complexity of the software stack often outpaces the availability of physical hardware. Platform teams must ensure that GPUs are not only brought up but are fully ready to run workloads before clusters go into operation. NVIDIA addresses this challenge by enabling teams to validate their Kubernetes GPU stack, failure handling, and configurations using simulation tools prior to physical deployment.
According to NVIDIA, the primary method for this validation involves using NVIDIA Mokka to simulate GPU infrastructure on CPU nodes, followed by running these simulations on the NVIDIA DSX Air platform to add realistic network topology and scale. This approach allows operations teams to answer critical questions regarding driver compatibility, NVLink domain reporting, and error handling without waiting for hardware delivery.
What is NVIDIA Mokka?
NVIDIA Mokka is an open-source project designed to simulate NVIDIA GPUs, SuperNICs, and switch fabrics on ordinary CPU nodes within a Kubernetes environment. As NVIDIA explains, the project serves NVML, sysfs, device nodes, and kernel-module state from GPU profiles. This capability allows unmodified tools such as nvidia-smi, the device plugin, DRA driver, DCGM, and the GPU Operator to interact with simulated GPUs as if they were physical hardware.
It is important to distinguish Mokka from a GPU emulator. NVIDIA clarifies that Mokka does not run CUDA kernels or move data. Instead, it simulates the interfaces between GPUs and higher-level software. By providing a mock libnvidia-ml.so that answers NVML calls from a GPU profile, Mokka ensures that the same software stack can run on a CPU node and react to simulated GPU state.
The simulation covers various system footprints, including driver and kernel-module states under /proc and /sys, CDI specs, device nodes, NVLink and Fabric Manager state, and InfiniBand devices. For instance, the real, unmodified nvidia-smi can run on a CPU node and report four NVIDIA GB300 NVL72 Blackwell GPUs, representing one compute tray of a GB300 NVL72 rack, with matching NVLink topology and rack position.
Eight GPU profiles ship with the Helm chart, including a100, b200, gb200, gb300, h100, l40s, t4, and vrnvl72. This variety allows teams to test different hardware configurations without physical access. The nvml-mock-ctl tool further enhances this capability by allowing users to change GPU state on a running node without requiring a redeployment.
Running Mokka on NVIDIA DSX Air
While Mokka can turn a laptop or CI runner into a small simulated GPU cluster, many failures worth catching require a network fabric, realistic topology, and more hosts than fit on a desk. This is where the NVIDIA DSX Air platform comes in.
DSX Air logically simulates a complete AI factory ecosystem, modeling NVIDIA Spectrum-X network topology, ecosystem software, and server images. Running Mokka inside DSX Air adds GPUs to the simulation. DSX Air maps servers to switches, while Mokka assigns each node's GPUs to NVLink domains and cliques, driving IMEX and DRA ComputeDomains. When both describe the same racks, schedulers see realistic placement distances.
According to NVIDIA, teams can utilize two DSX Air demo marketplace environments to launch these simulations. Each user needs the Air User or Air Org Admin role in the organization. After launching a demo, the simulation's Topology tab must show "Active" before proceeding to the console of the node named in the lab instructions to learn and build the digital twin.
This integration supports file-based, API-driven simulations that can be checkpointed before destructive tests, shared by link, scaled through topology edits, and managed by CI. It also allows SREs and new team members to practice remediation without production access.
Example Use Cases for Validation
NVIDIA outlines several specific use cases for running Mokka on DSX Air, including rehearsing failures, finding scale limits early, testing Day 2 changes in a pipeline, and comparing designs.
Rehearsing Failures
Teams can set a GPU to states such as lost, fallen_off_bus, or ecc_uncorrectable and queue an Xid error. They can then verify that remediation controllers cordon, drain, or page appropriately. Tools like DCGM, dcgm-exporter, Prometheus, and Grafana run unmodified, testing alerts and dashboards alongside the controller. For example, injecting an Xid 79 error allows teams to verify that the correct GPU is flagged on the correct node.
Finding Scale Limits Early
Every stack component has a scale limit. By expanding a simulated fleet from 36 nodes to 288, 1,152, and 2,304, teams can reveal which processes grow with the scale. NVIDIA notes that the bottleneck is often not Kubernetes itself, but a single-replica labeler, MongoDB memory limit, or conntrack table.
Testing Day 2 Changes
Remediation policies, configuration changes, and topology edits affect running clusters, so teams often batch them into maintenance windows. Because every simulation step is an API call, changes can instead move through a pipeline. A pull request might propose a change, such as an NVSentinel policy or a device plugin setting. DSX Air builds the fleet from the committed topology, Mokka stages GPUs on every node, and the current production stack is installed. The pipeline applies the change and verifies that health monitoring catches injected faults and that nodes carry expected labels.
Comparing Designs
Rack layouts and NVLink domain boundaries are expensive to change after cabling. Comparing simulated topologies reveals scheduler placement and rack-failure impact while changes remain simple file edits.
How to Get Started with NVIDIA Mokka
The following steps walk through how to validate the stack locally and then move to the DSX Air simulation.
Step 1: Install Mokka on a Local Cluster
To create a local cluster, you need Helm 3.8 or later, kubectl, Docker, and Kind. The following command creates a cluster and installs the mock:
kind create cluster --name mokka
helm install nvml-mock oci://ghcr.io/nvidia/k8s-test-infra/chart/nvml-mock --namespace mokka --create-namespaceAny cluster whose nodes run containerd 1.7 or later under systemd works as well.
Step 2: Check the Simulated GPUs
Once installed, you can verify the simulated hardware. The output should show GPUs matching the profile, such as:
GPU 0: NVIDIA GB300 NVL (UUID: GPU-...)
GPU 1: NVIDIA GB300 NVL (UUID: GPU-...)
GPU 2: NVIDIA GB300 NVL (UUID: GPU-...)
GPU 3: NVIDIA GB300 NVL (UUID: GPU-...)Step 3: Inject a Failure
The nvml-mock-ctl tool allows you to change GPU state without redeployment. To mark GPU 0 with an uncorrectable ECC error and deliver Xid 79, run:
kubectl exec -n mokka ds/nvml-mock -- nvml-mock-ctl fail --gpu 0 --mode ecc_uncorrectable --xid 79The device plugin marks the GPU unhealthy, DCGM exports the Xid, and nvidia-smi shows the error. With Prometheus and Grafana installed, the fault appears on the same dashboards used in production.
Step 4: Move to DSX Air
The DSX Air integration is delivered through demo marketplace environments. Sign in with your NGC account and ensure you have the necessary roles. After launching a demo, wait until the simulation's Topology tab shows Active. Then open the console of the node named in the lab instructions to learn and build the digital twin.
Conclusion
Validating an AI factory software stack before hardware arrives is critical for reducing risk and ensuring operational readiness. By combining NVIDIA Mokka with the NVIDIA DSX Air platform, teams can test the GPU software stack, network topology, failure handling, and Day 2 changes in a realistic simulated environment. This approach allows organizations to answer complex operational questions, rehearse remediation workflows, and identify scale limits long before physical infrastructure is available.
For teams building or operating software that discovers, schedules on, or monitors GPUs, running against simulated GPUs in CI or a shared lab provides a robust path to validation. As NVIDIA states, this process involves answering questions such as whether the GPU Operator installs correctly against a specific driver version, if nodes report the correct NVLink domain, and if errors are flagged accurately. These capabilities ensure that when the hardware finally arrives, the software stack is already proven and ready for production.



