mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1577] Strata 0.1.40 on a Tesla T4 (sm_75): every request stalls in the first verify window, the watchdog stops the engine #631
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#631
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Madingdang on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1577
strata-iq2_xs.log
strata-stall-22088.dmp
Summary
On a Tesla T4 (Turing, compute capability 7.5, driver 616.92) the engine loads the model and the server reports
loaded: true, but the first request never produces a token: the host waits in a verify window, the 60 swatchdog stops the engine (issue #29 behaviour) and the server answers
HTTP 503. Reproduced with two differentmodels (IQ3_XXS and IQ2_XS), on two different drives, with 15 GB RAM still free, and with 11 different
configurations/engines settings. The GPU is idle (0% utilisation) while the host waits, and a stall report +
strata-stall-<pid>.dmpis written every time.Environment
archs [75, 86, 89, 120],ptx: true(engine/BUILD.json)M2, 2.46 GiB/s during load)Models used for reproduction (both are the plain community shards, both load fine in llama.cpp b11457):
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001/00002-of-00002.gguf(76 GB)Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001/00002-of-00002.gguf(68 GB)What happens
run-iq2_xs.bat(engine 0.1.40). Startup is fine:/health→{"status": "ok", ..., "model": "qwen3.8-flash-next-iq2_xs", "loaded": true}./v1/chat/completions, 17-token prompt,reasoning_effort: none). Nothing comes back.After 60 s the server prints:
The last line looks like the key: the GPU work is done in ~65–68 ms once the waits are force-released, so the
host was waiting for a signal/handshake that never arrives in the normal path. The engine then exits with
0xC0000409and the server returns503; the next request starts the engine again and it stalls identically.layer step 1, with6 tokens at position 0.Ruled out
itself from 3.8 GB to 7.5 GB.
(build 11457) on the same PC/GPU: prompt 11–16 tok/s, decode ~10 tok/s, two back-to-back long generations
(783 + 398 tokens) with no stall.
another volume.
nvidia-smishows 0% utilisation while the host waits; 474 MiB VRAM free witheverything loaded.
nvlddmkm/TDR events in the Windows event log (last 3 days).Configurations/engine flags tried (all stall the same way)
--kv int8,--expert-cache auto,--prefill auto,--spec 4, MTP)--host-core last(Windows sends GPU interrupts to one logical processor; default puts the host thread on 0)STRATA_HC_SPLIT=0(the non-staged hyper-connection read)--short-read 0— changes where it stops: the prompt is then processed via the batched path and the stallmoves to the first decode window (
1 tokens at position 14, host at layer step 1), same signature--no-hit-poke--expert-cache 0(the engine still auto-sized a 5618-slot cache from the profile)STRATA_TOPK_STREAM=0(the 0.1.40 Turing escape hatch from TROUBLESHOOTING.md)--pcie-mode dma(the pre-0.1.14 expert-copy path from issue #31)--no-token-graph→ refused by--serve:needs --spec T and --prefill CHUNK (and a fillable --expert-cache; the graphed hit path additionally needs --expert-profile P)--spec 1→ refused:--spec T (T >= 2)--kv-resident 32768)Also seen at startup in every run (probably unrelated, but mentioning it):
strata-stall-21656.dmp
Attachments
strata-iq2_xs.log(20 KB) — the IQ2_XS run, includes the stall report abovestrata-iq3_xxs.log(57 KB) — the IQ3_XXS run, same stallstrata-stall-*.dmp— 13 files, 0.31–0.33 MB each (thread stacks; pick any one or two)Guess at the cause (for what it is worth)
host at layer step 1+the GPU rang 1+ "the GPU finished in 65 ms after the waits were released" points at theGPU handshake in the verify-window path, i.e. the host waits forever for a completion. Engine 0.1.14 fixed a
similar "host waits forever inside the NVIDIA driver" case for IQ packs (#31); this looks like another instance of
it on Turing + driver 616.92. Please tell me if a debug build, a
--sync-every-layerrun, or an older/newerengine build would give you more useful data — I can rerun and send whatever you need.
@greedyepsilon-coder commented on GitHub (Oct 8, 2026):
Reproducing the same first-verify-window stall on different old-arch hardware, and I found the cause on my machine:
CUDA_LAUNCH_BLOCKING=1set in the user environment.My case (engine 0.1.39, Windows 11): Tesla V100-PCIE-32GB (sm_70) + RTX 5060 Ti (sm_120), 32 GB RAM. Every request died exactly like the report above —
stage "reading the prompt (verify windows), from token 0", then the #29 watchdog withverify window: 6 tokens at position 0, host at layer step 1; the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0, engine exit, server 503. It reproduced on the shipped CUDA-12 engine on the V100 alone, and again on a locally built CUDA 12.9 engine (archs70;120) running a dual-GPU layer split — so, not a build-specific or split-specific path.After removing the variable (
CUDA_LAUNCH_BLOCKING=1→ unset, persisted user env), the same engine, config and machine ran with no stall: 78–83 tok/s decode at 32k context, MTP drafts accepted 34/41, 97 % experts resident across the V100 (layers 0–40) + 5060 Ti (layers 41–47 + draft).Your own commit
a018180("generate: say thatCUDA_LAUNCH_BLOCKING=1hangs the verify windows (#1341 #964)") documents this. Two small suggestions, since the current failure mode costs days of config permutations (11 tried above) before anyone thinks to look at the environment:CUDA_LAUNCH_BLOCKING(and maybeCUDA_DEVICE_WAITS_ON_EXCEPTION) is set to a non-empty value — a single line in the startup output ("this will hang the verify windows, unset it") would have pointed straight at it.CUDA_LAUNCH_BLOCKINGand the twoCUDA_DEVICE_*variables. A report that contains it is self-diagnosing.Worth checking for the reporter of this issue too — the stall signature is identical, and the variable can be set machine-wide from an earlier debugging session without any memory of it.
(Side note for other Volta users, unrelated to the stall: the shipped CUDA-12 engine has no sm_120 and the CUDA-13 one no sm_70, so a V100 + RTX-50 pair needs
-DCMAKE_CUDA_ARCHITECTURES="70;120"and a CUDA 12.9 toolkit with host MSVC ≤ 14.44 — e.g. VS2022; 14.5x is rejected bycrt/host_config.h. The engine built this way has run stably under testing so far.)@Madingdang commented on GitHub (Oct 9, 2026):
Thanks, this is very helpful.
@Madingdang commented on GitHub (Oct 9, 2026):
RESOLVED — the cause was
CUDA_LAUNCH_BLOCKING=1in the machine environmentThanks to the comment on the tracker: on this machine the variable was set machine-wide
(
HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\CUDA_LAUNCH_BLOCKING = 1, so every processinherited it), probably left over from an earlier debugging session. After removing it, the same engine (0.1.40,
CUDA 13.0), the same
strata-iq2_xs.jsonand the same IQ2_XS pack ran with no stall at all:Hardware: Tesla T4 16 GB (sm_75), driver 616.92, 60 GB RAM, Windows 11 22621, model on NVMe.
Reply to post on the issue (English, ready to paste):
Summary
On a Tesla T4 (Turing, compute capability 7.5, driver 616.92) the engine loads the model and the server reports
loaded: true, but the first request never produces a token: the host waits in a verify window, the 60 swatchdog stops the engine (issue #29 behaviour) and the server answers
HTTP 503. Reproduced with two differentmodels (IQ3_XXS and IQ2_XS), on two different drives, with 15 GB RAM still free, and with 11 different
configurations/engines settings. The GPU is idle (0% utilisation) while the host waits, and a stall report +
strata-stall-<pid>.dmpis written every time.Environment
archs [75, 86, 89, 120],ptx: true(engine/BUILD.json)M2, 2.46 GiB/s during load)Models used for reproduction (both are the plain community shards, both load fine in llama.cpp b11457):
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001/00002-of-00002.gguf(76 GB)Qwen3.8-Flash-Next-GSQ-RCO-IQ2_XS-00001/00002-of-00002.gguf(68 GB)What happens
run-iq2_xs.bat(engine 0.1.40). Startup is fine:/health→{"status": "ok", ..., "model": "qwen3.8-flash-next-iq2_xs", "loaded": true}./v1/chat/completions, 17-token prompt,reasoning_effort: none). Nothing comes back.After 60 s the server prints:
The last line looks like the key: the GPU work is done in ~65–68 ms once the waits are force-released, so the
host was waiting for a signal/handshake that never arrives in the normal path. The engine then exits with
0xC0000409and the server returns503; the next request starts the engine again and it stalls identically.layer step 1, with6 tokens at position 0.Ruled out
itself from 3.8 GB to 7.5 GB.
(build 11457) on the same PC/GPU: prompt 11–16 tok/s, decode ~10 tok/s, two back-to-back long generations
(783 + 398 tokens) with no stall.
another volume.
nvidia-smishows 0% utilisation while the host waits; 474 MiB VRAM free witheverything loaded.
nvlddmkm/TDR events in the Windows event log (last 3 days).Configurations/engine flags tried (all stall the same way)
--kv int8,--expert-cache auto,--prefill auto,--spec 4, MTP)--host-core last(Windows sends GPU interrupts to one logical processor; default puts the host thread on 0)STRATA_HC_SPLIT=0(the non-staged hyper-connection read)--short-read 0— changes where it stops: the prompt is then processed via the batched path and the stallmoves to the first decode window (
1 tokens at position 14, host at layer step 1), same signature--no-hit-poke--expert-cache 0(the engine still auto-sized a 5618-slot cache from the profile)STRATA_TOPK_STREAM=0(the 0.1.40 Turing escape hatch from TROUBLESHOOTING.md)--pcie-mode dma(the pre-0.1.14 expert-copy path from issue #31)--no-token-graph→ refused by--serve:needs --spec T and --prefill CHUNK (and a fillable --expert-cache; the graphed hit path additionally needs --expert-profile P)--spec 1→ refused:--spec T (T >= 2)--kv-resident 32768)Also seen at startup in every run (probably unrelated, but mentioning it):
Attachments
strata-iq2_xs.log(20 KB) — the IQ2_XS run, includes the stall report abovestrata-iq3_xxs.log(57 KB) — the IQ3_XXS run, same stallstrata-stall-*.dmp— 13 files, 0.31–0.33 MB each (thread stacks; pick any one or two)Guess at the cause (for what it is worth)
host at layer step 1+the GPU rang 1+ "the GPU finished in 65 ms after the waits were released" points at theGPU handshake in the verify-window path, i.e. the host waits forever for a completion. Engine 0.1.14 fixed a
similar "host waits forever inside the NVIDIA driver" case for IQ packs (#31); this looks like another instance of
it on Turing + driver 616.92. Please tell me if a debug build, a
--sync-every-layerrun, or an older/newerengine build would give you more useful data — I can rerun and send whatever you need.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.
@rtakamat commented on GitHub (Nov 4, 2026):
@greedyepsilon-coder Thanks for posting this. Your report is the only one I have found of a Tesla V100 and an RTX 5060 Ti running together on Windows with Strata, and I am planning a similar setup (V100s + RTX 5060 Ti).
Since NVIDIA does not seem to ship one Windows driver package that lists both a V100 (Data Center) and GeForce cards, could you share how you got both GPUs visible to CUDA?
nvidia-smishow for the Driver Model of each card (TCC / WDDM)? Is the 5060 Ti driving the display?Any detail helps, and no problem if you cannot share everything. Thank you!