DEV Community

AI Predictions Dev
AI Predictions Dev

Posted on

vLLM on DGX Spark kept crashing with Xid 31 and 43. It was MTP speculative decoding

In July, the 27B model we serve on one of our NVIDIA GB10 machines (the DGX Spark class of box) kept dying. The GPU fault counter in our minute-by-minute record showed between 14 and 59 GPU errors in every 24 hours from 8 to 20 July. Every crash took vLLM down for a cold restart of about six minutes, so the endpoint was unavailable for 16 to 40% of the day.

One flag fixed it. Since we removed it on 19 July, the same record has counted zero GPU errors for 121 days in a row.

The setup

  • A Qwen3.6-27B build quantised to NVFP4, served by vLLM on one GB10 machine, with an fp8 KV cache and FlashInfer.
  • The model is a hybrid: 48 linear-attention (Gated DeltaNet) layers and 16 full-attention layers.
  • Speculative decoding with the model's own MTP head:
--speculative-config '{"method":"qwen3_5_mtp","num_speculative_tokens":3}'
Enter fullscreen mode Exit fullscreen mode

What the crashes looked like

Every time, the kernel log showed Xid 31, a GPU memory-management fault, followed by Xid 43, the GPU channel being torn down, and the process was always vLLM's EngineCore. The Xid 31 lines said FAULT_PDE on a read: the GPU tried to read an address that was reserved but not mapped.

Four suspects we ruled out, each with a number

It is easy to blame the obvious things on a machine that runs several models. We measured each one before dropping it.

  1. Memory pressure. At the crashes there were still more than 5 GB free. Kernel memory settings improved the memory numbers; the Xid errors went on.
  2. The image model on the same GPU. 18 of 23 crashes happened while the image model was unloaded, and the rate even went up.
  3. The other language model server on the same box. A llama.cpp server under the same pressure had zero restarts in 17.5 hours.
  4. Overload. vLLM's queue was empty 98.9% of the time, with 1.44 of 4 slots busy on average.

The tell: the faults were deterministic

Eight fault events hit only three distinct virtual addresses. Random memory pressure or a hardware problem would scatter. The same few addresses, read while reserved and unmapped, point at a software bug in one code path.

That code path was speculative decoding. The symptoms match the open vLLM issue #40756, MTP speculative decoding crash with illegal memory access on long sequences (Qwen3.6-27B-FP8, v0.19.1), with relatives in #34948 (illegal memory access in the GDN kernel) and #36613 (illegal memory access with MTP under high concurrency).

The fix, and what it cost

We removed --speculative-config and kept everything else.

  • Under load for 35 minutes right after the change: zero Xid errors and zero restarts, against the crash rate of the days before.
  • Since then: 121 days without a single GPU error in the record.

The price is real. MTP was accepting 2.5 to 3.65 tokens per step with 3 draft tokens, so decoding was about two to three times faster with it. We gave that speed up for the 16 to 40% of the day the endpoint used to spend restarting. On a box that serves real work, uptime won.

The compose file now carries a comment block that starts with DO NOT RE-ADD --speculative-config, so the next person to tune it for speed knows why the flag is gone.

The lesson that made it findable: count per minute of serving

We first counted crashes per hour of calendar time, and the numbers looked bad but not absurd. Counted per minute of actual serving, leaving out the six-minute restarts, the median run between crashes was 1.7 minutes. A restart that takes longer than the time between crashes hides how sick the server is.

Two other things helped:

  • A health check that does not queue. A check that sends a test request waits behind real work on a busy server, times out, and restarts a healthy model. Ours reads vLLM's own counters instead: vllm-health, free under the MIT licence.
  • A record that survives the machine. On the same box, hard power-offs from heat were a separate problem with a separate signature. The per-minute recorder that told the two apart is gb10-blackbox.

If you see Xid 31 and 43 on a GB10 machine

  1. Look at the process name in the Xid lines. If it is vLLM's EngineCore, suspect vLLM before the hardware.
  2. Count the distinct fault addresses. A handful of repeated addresses means a code path, not pressure.
  3. Turn off speculative decoding and measure per minute of serving. If the errors stop, keep it off until the upstream issue is fixed for your model and version.

We run this machine, and the rest of our local-AI boxes, with Factory Floor: model serving behind a proxy, health checks that leave a busy server alone, heat and memory guards, and one email when a person is needed.

Top comments (0)