A training job doesn't usually die with a clean error message. It dies with a line in dmesg that reads NVRM: Xid (PCI:0000:65:00): 79, pid=48213 and then nothing else, while the loss curve just stops updating. GPU hardware failure detection training starts right there, at that cryptic line, because an XID code isn't a bug in your script. It's the NVIDIA driver reporting a fault on the GPU itself, and most teams only learn to read XID numbers after a multi-day run has already died on one.
TL;DR: What Do NVIDIA XID Codes Mean for GPU Hardware Failure Detection Training?
XID codes are the GPU driver's own fault log, and four of them, 79, 48, 94, and 13, are the ones a training team should treat as predictors of an imminent crash rather than application bugs.
- Signal: XID 79 ("GPU Has Fallen Off the Bus") means the driver lost contact with the GPU over PCIe entirely, per NVIDIA's GPU Debug Guidelines.
- Scale: on Meta's 16,384-H100 Llama 3 405B pretraining run (a 54-day window), GPU-related issues caused 58.7% of 419 unplanned interruptions, with HBM3 memory failures alone behind 72 of them.
- Reliability: H100 shows a 3.2x lower mean time between memory errors than A100, measured across 11.7 million GPU-hours on 1,056 GPUs on the Delta supercomputer.
- Detection: DCGM's
DCGM_FR_XID_ERRORcheck flags bus, fabric, memory, thermal, power, and NVLink faults from retained telemetry, with no workload required, per NVIDIA's DCGM documentation. - The move: once XID 79, 48, 94, or 13 shows up mid-run, Spheron's on-demand rental model lets a team drop the flagged node and deploy a fresh one instead of opening a hardware RMA. Check current GPU pricing for what a replacement costs.
What an XID Error Actually Is (A Hardware Signal, Not a Software Bug)
An XID is a number the NVIDIA kernel driver writes to the system log, not to your training framework's stdout. It shows up in dmesg or syslog as a line like the one above, tagged with the GPU's PCI address, and it fires independently of whatever PyTorch, JAX, or your orchestrator happens to be doing at the time. That's the whole point of the mechanism: the driver is reporting a condition on the GPU or its interconnect, not an exception inside your code.
NVIDIA's own GPU Debug Guidelines group XIDs by the subsystem they come from, and NVIDIA's DCGM health monitoring documentation makes the same split explicit: a dedicated DCGM_FR_XID_ERROR check watches for XIDs tied to the bus, the fabric, memory, thermal limits, power, or NVLink. Some of those subsystems are things you can also misconfigure, not just break. A GPU can report clean health and still deliver far less throughput than its listing promises if the topology between GPUs is wrong, the same way a spec sheet never tells you what a workload will actually achieve. An XID is a narrower, sharper signal than either of those: it means the driver detected a specific hardware condition, logged a specific number for it, and in several cases is already telling you what to do next.
Not every XID means the GPU is dying. Plenty of XID codes are informational, tied to a specific CUDA context or a driver-level event that resolves itself. The codes worth building a response around are the ones NVIDIA's own guidelines treat as hardware-severity: the GPU is either unreachable right now, has already corrupted memory, or is on a trajectory that ends the same way if nothing changes.
The XID Codes That Predict an Imminent Crash: 79, 48, 94, 13
Four XID codes account for most of the "my GPU is dying mid-run" reports a training team actually needs to act on. NVIDIA's GPU Debug Guidelines and Google Cloud's GPU troubleshooting documentation define each one and prescribe the first response:
| XID | Name | What It Means | Immediate Action |
|---|---|---|---|
| 79 | GPU Has Fallen Off the Bus | The driver can no longer communicate with the GPU over PCIe at all. | Drain the node and file a GPU issue report; on Google Cloud, the prescribed step is to request emergency maintenance or wait for automated maintenance, not a reboot, since the fault needs a host repair. |
| 48 | Double Bit ECC Error | Uncorrectable corruption in the GPU's own DRAM. | If followed by XID 63 or 64, let the running job finish, then drain, cordon, and reset the GPU. |
| 94 | Contained ECC Error (A100 only) | A memory error stayed contained to the page that hit it. | |
| 13 | Graphics Engine Exception | Often an application fault by default, not necessarily hardware. | Run DCGM and field diagnostics to rule out a hardware cause before assuming it's your code. |
Two things separate this list from a generic "my computer is crashing" checklist. First, severity isn't uniform across these four codes: XID 94 is explicitly a "keep working" signal on A100, while XID 79 is explicitly a "stop and drain" signal on any GPU. Treating them the same wastes a healthy node or, worse, keeps feeding work to a dead one. Second, XID 94 and its sibling XID 95 (Uncontained ECC Error) apply specifically to A100's memory architecture; if you're running an A100 fleet, that's worth knowing alongside the SXM-versus-PCIe and MIG trade-offs that shape how ECC events on that GPU get isolated in the first place.
Catching It Mid-Run: GPU Hardware Failure Detection Training Hooks That Alert Before the Job Dies
GPU hardware failure detection training that waits for the training process to crash has already lost the part that matters most: the warning. XID 79, 48, and 94 all leave a trace in the kernel log the moment they happen, usually well before (or instead of) a Python-level stack trace. Two monitoring paths catch that trace, and running both costs almost nothing against a multi-day job.
Tail the log directly. A long-running job can pipe its node's kernel log through a filter that watches specifically for the codes you care about:
dmesg -T --follow | grep --line-buffered -oP 'Xid.*?: \K[0-9]+' | while read -r xid; do
case "$xid" in
79|48|94|13) echo "$(date -u) ALERT: XID $xid on $(hostname), paging on-call" ;;
esac
doneThat's a dependency-free trip wire: no DCGM install required, and it fires the instant the driver writes the line, not on the next health-check interval.
Run DCGM's health module alongside it. Its dedicated checks, DCGM_FR_FALLEN_OFF_BUS for a bus-level dropout and DCGM_FR_XID_ERROR for the broader set of bus, fabric, memory, thermal, power, and NVLink faults, give you a structured severity instead of a raw log line.
The two signals catch different failure shapes. A dmesg tail catches the exact moment XID 79 fires, even between DCGM's polling intervals. DCGM's health check catches a GPU that's degrading without having thrown a fresh XID yet, since it reads retained state rather than waiting on an event. Run both, and alert the same on-call channel either way.
How often this actually matters at scale is documented, not anecdotal. Meta's Llama 3 405B pretraining run on 16,384 H100 GPUs logged 466 total job interruptions across a 54-day snapshot period, 419 of them unexpected. GPU-related issues, including HBM3 memory failures, accounted for 58.7% of those unplanned interruptions, and HBM3 memory failures alone made up 72 of them, 30.1% of the total. Meta still held effective training time above 90% across the run, which is the outcome of exactly this kind of detect-and-replace loop, not the absence of hardware problems.
What to Do Next: Request a Replacement Node, Don't Debug Your Code
Once an XID in the 79/48/94/13 family shows up, the next hour of debugging effort has an easy way to go to waste. These codes don't describe a race condition in your data loader or a bad learning-rate schedule; that failure mode looks completely different and is worth ruling out separately, the way a stalled run that turns out to be a dataloader bottleneck is a software problem wearing a hardware costume. An XID is the opposite case: hardware wearing no disguise at all.
What that replacement actually costs depends entirely on whether you own the box or rent it. On owned hardware, an XID 79 or an uncontained ECC event starts an RMA process measured in days: a support ticket, a diagnostic back-and-forth, a shipped replacement part, and a training run sitting idle the entire time. On rented GPU cloud capacity, the same fault should mean the node gets replaced in minutes, not days, because nothing about the hardware is yours to fix.
That's the gap a no-contract rental model is built to close. Spheron describes on-demand access with no long-term commitment and no penalty for switching, which means a flagged instance can be stopped and a fresh one deployed in the time it takes to redeploy your container, not the time it takes to process an RMA. For a run you can't afford to have stall mid-training, reserved capacity is described the same way as "guaranteed availability, ready to deploy," which matters more than the on-demand price once a job spans multiple days across Spheron's H100 instances or similar hardware. Custom clusters scale from 8 to 512 or more GPUs on request, for teams sizing a fleet large enough that the Delta study's 5% overprovisioning math actually applies.
Be clear about what that buys and what it doesn't. Spheron doesn't publish a formal SLA or a documented node-replacement guarantee on its pricing or docs pages; one customer testimonial describes resolving operational issues by messaging the team directly rather than through a published support contract. And spot capacity is explicitly reclaimable without notice, so a job on spot that hits a hardware XID has no stronger guarantee than any other spot workload, only whatever the dedicated or reserved tier would have offered instead. The decision an XID forces isn't "fix the hardware." It's "how fast can I get a healthy node back," and that answer depends on the contract you signed before the fault ever showed up.
A dying GPU announces itself through dmesg long before your training job notices. If you're already watching for XID 79, 48, 94, or 13, pair that with a rental model where swapping the node takes minutes instead of an RMA ticket.
Frequently Asked Questions
XID 79 is 'GPU Has Fallen Off the Bus': the NVIDIA driver can no longer communicate with the GPU over PCIe at all. NVIDIA's own GPU Debug Guidelines treat this as a hardware fault requiring the node to be drained, not a software error to patch around. Google Cloud's troubleshooting guide prescribes requesting emergency maintenance or waiting for automated maintenance for this code, since Google's own response is to detect the fault and send the host to repair, not to reboot the VM.
Check dmesg or syslog for lines containing 'Xid' while your job is running or right after it dies. A GPU that's actually failing logs a specific XID number (79, 48, 94, 13, and a handful of others) alongside the PCI address of the device, independent of anything your training script did. Pair that with `dcgmi health --check`, which reads passive GPU telemetry and reports an overall severity of Warning or Failure without needing a workload running at all.
A double bit ECC error is XID 48: an uncorrectable memory fault in the GPU's own DRAM that error-correcting code couldn't fix. NVIDIA's guidance splits the response in two. If XID 48 is followed by XID 63 or 64, let the current job finish, then drain, cordon, and reset the GPU.
Run NVIDIA DCGM's health monitoring module alongside the job. Its dedicated checks, DCGM_FR_FALLEN_OFF_BUS and DCGM_FR_XID_ERROR, watch for bus, fabric, memory, thermal, power, and NVLink faults using telemetry DCGM already retains, so they don't need the GPU doing any work to catch a problem. Tail dmesg for the same XID numbers as a second, lower-overhead signal, and alert on both rather than waiting for the training process itself to crash.







