Setup: 2× GB10 (ASUS Ascent GX10), vLLM TP=2 over RoCE, GLM-5.3-Flash EXL3 4bpw + DFlash2 k=7, fp8_ds_mla KV, 524k context, community image (entrpi/glm-5.3-flash-exl3-2x-spark:v2-glmnext). Kernel 6.17.0-1031-nvidia, driver 580.173.02, CX-7 FW 28.45.4028.
The problem
A 24k-token prefill takes a rock-steady 14.6 s on a freshly started engine — 18 consecutive runs landed in 14.61–14.88 s. After the engine has served a mixed-shape workload (several different prompts decoding + a concurrency sweep at c=1/2/4 + some prefix-cache-hitting requests), the same request starts alternating:
19.45 14.67 22.01 14.71 24.44 14.67 25.67 14.64 ← strictly every other run
The slow runs escalate; the fast ones never move. Restarting the container clears it completely. Decode is untouched — token/s stayed within ±3 % across four prompt types whether or not the engine was in this state. Only prefill is hit, and there is no error, warning, or anomalous metric anywhere.
Clean engine vs. degraded engine — full prefill sweep
Same config (production default, --max-num-seqs 4), same script, same prompts. The only difference is whether the engine had served the mixed-shape workload first. Median of 3, full range in brackets:
| prompt tokens | clean engine | degraded engine | median delta |
|---|---|---|---|
| 773 | 0.72 s [0.71–0.76] |
0.70 s [0.70–0.71] |
— |
| 6,105 | 3.64 s [3.63–3.76] |
3.68 s [3.68–9.22] |
— |
| 24,364 | 14.63 s [14.62–14.74] |
27.28 s [14.73–27.78] |
+86 % |
| 76,072 | 48.17 s [46.39–48.39] |
58.05 s [57.64–66.94] |
+21 % |
Two things to note. First, the range is as diagnostic as the median: at 24k the clean engine spans 0.8 %, the degraded one spans 89 %, and its minimum (14.73 s) still equals the clean median — the fast runs are never slower, some runs are just much slower. Second, short prompts are unaffected; the effect grows with prefill length and only shows up once a chunked prefill is long enough to span several scheduler steps.
Decode over the same two states, four prompt types:
| count | struct | code | prose | |
|---|---|---|---|---|
| clean | 68.23 | 56.47 | 42.09 | 20.75 |
| degraded | 68.70 | 55.24 | 41.32 | 19.08 |
Unchanged. Whatever the stall is, it does not touch the decode path.
If you benchmark on these boxes, this matters more than any knob I tuned. The largest parameter effect I measured all session was +40 % (concurrency ceiling from --max-num-seqs). Engine state alone moves 24k TTFT by +86 %. I initially attributed a config comparison to --max-num-seqs that turned out to be this — each config had been measured on a progressively dirtier engine. Restart between configs, and record cumulative vllm:prompt_tokens_total alongside every number so you can tell afterwards which state it was taken in.
Isolation
Same trigger sequence, then the same 8-run probe:
| Config | 8× 24k prefill TTFT | |
|---|---|---|
| DFlash2 k=7, CUDA graphs (default) | 19.45 / 14.67 / 22.01 / 14.71 / 24.44 / 14.67 / 25.67 / 14.64 | alternating, escalating |
DFlash2 k=7, --enforce-eager |
14.66 / 18.79 / 14.64 / 18.47 / 14.68 / 18.38 / 14.70 / 18.57 | alternating, flat penalty |
| MTP k=4 | 18.83 / 17.31 / 18.72 / 14.75 / 18.55 / 19.07 / 17.34 / 18.90 | 7 of 8 degraded |
SPEC=none (drafterless) |
14.63 / 14.70 / 14.69 / 14.73 / 14.67 / 14.68 / 14.66 / 14.81 | clean, 1.2 % spread |
So: speculative decoding is necessary, it is not one drafter’s bug (MTP, the in-model path, reproduces too), and it is not CUDA graphs (eager still alternates; graphs only add the escalation). Running only the c=4 step does not trigger it — the multi-shape combination does.
Best guess is the interaction between speculative state and the hybrid KDA+MLA cache: on this stack spec decode reserves [k+1 slots] × [3 mamba cache groups] of full 4608-token blocks per request. A pure-MLA model on the same two boxes (DeepSeek-V4-Flash, DSpark k=5) shows ≤ ±2 % prefill variance across 10 configs and has never done this.
During a stall (1 Hz, both nodes)
| fast | slow | |
|---|---|---|
utilization.gpu |
96 % | 96 % |
| GPU power | ~75 W | ~28 W |
RDMA port_xmit_data |
~1250 MB/s | ~220 MB/s |
| Host memcpy bandwidth (separate process) | 10.6 GB/s | 17.7 GB/s |
Both GPUs drop to ~28 W together while a kernel stays resident — a spin-wait, not a compute/memory/network bound phase.
What it is NOT — in case it saves someone else the time
Zero delta during stalls on every one of these: major faults (1,143 in 11 min), thermal/power-cap counters, host CPU, compact_stall/allocstall, RoCE ECN/CNP, RDMA retransmit and ACK-timeout counters, PCIe link (all four CX-7 functions at Gen5 x4, AER zero).
And the link is fine: ib_write_bw -x 3 measured 109.24 Gb/s worker→head and 109.29 Gb/s head→worker. Posting that number because this forum has a lot of “capped at 13 Gb/s” threads — on kernel 6.17.0-1031 / driver 580.173.02 / FW 28.45.4028, after a cabled-then-rebooted install, the rail is healthy in both directions. Stall-phase traffic is 1.6 % of that, so low RDMA throughput during the stall is a symptom, not the cause. I initially chased it as a link problem; measuring the ceiling first would have saved hours.
Three knobs that did help (clean protocol: restart + 5–9 min settle per config, medians of 3, all rounds reported)
| Change | Effect |
|---|---|
--mixed-prefill-token-cap -1 |
decode during a 76k cold prefill: 2.24 → 12.44 tok/s (5.6×), prefill wall unchanged (72.3 → 69.6 s) |
--max-num-seqs 4 → 8 |
peak concurrent aggregate +37.7 % (code) / +40.2 % (count); KV pool −10.2 %; single-stream unchanged |
--max-num-batched-tokens 8192 → 4096 |
short-request TTFT while a long prefill is in flight 8.08 → 5.65 s (−30 %); prefix-cache warm-up 3 requests → 2; costs ~6 % solo TTFT and ~11 % peak aggregate |
Two measurement warnings
Synthetic concurrency numbers are wildly optimistic. With ~20-token prompts I measured 180 tok/s aggregate at c4. With realistic 8.6k-token summarization prompts the same server does 30–33 tok/s aggregate at accept length 2.5/8. Plan capacity from the latter.
Memory floors age. The recipe warns floors degrade 1.5–2 GiB per day of workload; my daily sampler shows MemAvailable floor 14.10 → 12.52 GiB between two consecutive days (−1.58 GiB), which matches almost exactly. Fresh-boot floors really are optimistic.
Ask
Has anyone else seen intermittent prefill degradation (not a crash) with speculative decoding on a hybrid mamba/linear-attention model? Upstream vLLM has open issues for hybrid prefix caching (#26201 tracking, #45238) and for spec-decode + mamba prefix caching crashing (#39809, #52317), but I could not find this particular symptom — silent, intermittent, ~2× on prefill only — described anywhere. Happy to run more instrumentation; GPU-side profiling is currently blocked because a second CUDA context cannot initialize while the model is resident (32 MB allocation fails — unified memory fully committed).