Eval bug: --spec-type draft-mtp + --split-mode tensor still freezes generation on b12441 (Qwen3.8-27B, 2x RTX 5060 Ti, Windows); LLAMA_GRAPH_REUSE_DISABLE=1 does not prevent it
Follow-up to #27122 (closed as stale on 2026-10-26 without a fix): the same freeze still happens on b12441, with a stress test that reproduces it about once every 30 generations, and data showing it needs both --split-mode tensor and --spec-type draft-mtp.
Name and Version
version: 1.0.0-dev (build 12441, commit 164ab018f)
built with Clang 20.1.8 for Windows x86_64 (official release asset llama-b12441-bin-win-cuda-13.5-x64)
Operating systems
Windows 11 Pro (10.0.26300)
GGML backends
CUDA (13.5 runtime from the release's cudart package; driver 621.14)
Hardware
2× NVIDIA GeForce RTX 5060 Ti 16 GB (Blackwell), PCIe, no NVLink / no P2P. Intel Core Ultra 7 270K Plus, 64 GB RAM.
Models
Qwen3.8-27B Q4_K_M with its built-in MTP head (qwen35.nextn_predict_layers = 1).
Problem description & steps to reproduce
Same symptom as #27122: during decoding the generation stops producing tokens, one GPU goes to 100 % and stays there, nothing is logged, the request never completes. The server also ignores its child-protocol exit command (cmd_router_to_child:exit); the process has to be terminated.
Command line that freezes:
llama-server -m Qwen3.8-27B-Q4_K_M.gguf --mmproj mmproj.gguf -c 262144 -np 1 -ngl 99 -fa on -ctk q8_0 -ctv q8_0 --jinja
-ub 512 -sm tensor --spec-type draft-mtp --spec-draft-n-max 2 --load-mode none
--cache-ram 0 --ctx-checkpoints 4 --slot-save-path <dir> --temp 1 --top-k 20 --top-p 0.95 --min-p 0 --slots
env: CUDA_VISIBLE_DEVICES=<the two GPUs>, LLAMA_SERVER_ROUTER_PORT set (run as a router child)
Workload: a stress loop of mixed chat requests (short Thai / English prose, thinking on and off, a math question, a ~20k-token document summary), one at a time, 180 s client timeout.
Results (same machine, same model file, same prompts):
| Setup | Generations | Freezes |
|---|---|---|
-sm tensor + draft-mtp n-max 2, 256k, -ub 512 |
150 | 5 (at generations 12, 87, ~133, ~146, 147) |
same + LLAMA_GRAPH_REUSE_DISABLE=1 (the workaround suggested in #27122) |
19 | 1 (froze at generation 19) |
-sm layer + draft-mtp n-max 2, 128k, -ub 512 |
300 | 0 |
-sm tensor, no speculative decoding, 256k, -ub 512 |
live serving since + stress runs | 0 |
-sm tensor + draft-dflash (a different 30B model with a DFlash drafter), 64k |
150 | 0 |
So in our runs the freeze needs the combination of tensor split and MTP: layer split + MTP is fine, tensor split without speculation is fine, and tensor split with a DFlash drafter is fine. LLAMA_GRAPH_REUSE_DISABLE=1 does not prevent it.
Each freeze looks the same in the log: the previous task completes normally, the next one is launched, then nothing:
slot print_timing: id 0 | task 2070 | draft acceptance = 0.53125 ( 68 accepted / 128 generated), mean len = 2.06
slot launch_slot_: id 0 | task 2137 | processing task, is_child = 0
(no further output; GPU at 100 %; /slots still answers but its counters never move again)
No GPU driver fault in the Windows System log at those times (no nvlddmkm / TDR events). It also happened on the very first request of a freshly started server once.
First Bad Commit
Unknown (first tried on b12441; #27122 reports the same from b10428, and a comment there reports it on ROCm too).
Relevant log output
The tail above is all there is: no error or warning precedes the freeze. Happy to run a debug build or add tracing if that helps.
Two inexpensive checks would split this into one of three very different bugs, and none of them needs the 30-generation stress run:
-
Bounded request against the same config. Send the same prompt with
max_tokens(or the server'sn_predict) at 64. If it returns promptly, you are not looking at a deadlock: generation is running and never reaches a stop, and a GPU at 100% is work, not a spin. If it hangs even at 64, the freeze is in the graph/scheduling path and the output-side explanation below does not apply. -
Log the accept rate per decode batch. With
--spec-type draft-mtp, "no more tokens, nothing logged, GPU busy" is also the signature of MTP drafting that stops being accepted while verification keeps running — throughput collapses without a crash. #30075 on the same combination (P100,--split-mode tensor, draft-mtp) reports exactly that: acceptance dropped to 0 and decode fell to ~36 t/s; the text it produced there was a repetition loop (//////…,??????…), not nothing. If you see accept 0 here too, the difference between your report and that one may only be whether the loop text reached the client before the timeout. -
Sample the shared slot state while it is stuck. If
--slotsreports the same generated-token count across two polls 10 s apart, it is stuck; if it advances, it is looping and the request will never end because nothing stops it.
Why this matters for the fix: (1) is a scheduler/graph bug, (3) is a missing stop condition. The last one is worth a guard regardless of backend, because on a looping completion the client usually cannot tell it apart from a slow model — it just sees a request that never completes. A cheap abort is a period-p tail test on the raw text, p in 1..160, tail[-p:] == tail[-2p:-p]; it fires on ///////… at p = 1, on ABAB content at p = pair length, and returns the offset where the loop starts so the prefix can be salvaged instead of discarded. Reference implementation (Python + JS, MIT) here: https://agent-mcocdaa.github.io/agent-output-check/repeat.html
Not claiming your freeze is the same bug as #30075 — just that the two look identical from the outside, and the accept-rate counter is what tells them apart in your own logs.