[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

Closed
opened 2026-11-04 01:44:39 +07:00 by bsakaguchi · 5 comments
Owner

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 s
watchdog stops the engine (issue #29 behaviour) and the server answers HTTP 503. Reproduced with two different
models (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>.dmp is written every time.

Environment

OS Windows 11 专业版, 10.0.22621
GPU NVIDIA Tesla T4, 16 GB VRAM, compute capability 7.5, driver 616.92
CPU AMD Ryzen 7 5700G (AVX2, no AVX-512)
RAM 60 GB
Engine 0.1.40 ready-made, CUDA 13.0, archs [75, 86, 89, 120], ptx: true (engine/BUILD.json)
Storage model on NVMe (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

  1. Start: run-iq2_xs.bat (engine 0.1.40). Startup is fine:
strata generate: loaded 33.02 GiB at 2.46 GiB/s
strata generate: expert cache 7525 slots, 10.08 GiB of VRAM; policy is PROFILE, ranked by routing frequency
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
strata verify: captured the 4-token window (upload no error, sync no error)
strata serve: 474 MiB of VRAM free with everything loaded

/health → {"status": "ok", ..., "model": "qwen3.8-flash-next-iq2_xs", "loaded": true}.

  1. Send one request (/v1/chat/completions, 17-token prompt, reasoning_effort: none). Nothing comes back.
    After 60 s the server prints:
strata serve: no progress for 60 s during a request (reading the prompt (verify windows), from token 0)
              - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.40): stage "reading the prompt (verify windows), from token 0" for 60 s
  expert pool: epoch 0, batch epoch 0: 0 of 0 jobs claimed, 0 done; 7 of 7 workers parked, 7 sleeping; mode 0
  expert pool threads: w0=sleeping ... w6=sleeping; host idle for 198437 ms
  verify window (last window, not the current stage): 6 tokens at position 0, host at layer step 1;
                  the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0
  memory: 36612 MiB resident, 37063 MiB committed, 14896 MiB RAM available; 10220761 page faults so far
  wrote the thread stacks to C:\Strata-0.1.40.1\strata-stall-13584.dmp (attach it to the issue)
strata: released the verify window's GPU waits (#267): the GPU finished in 65 ms

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
0xC0000409 and the server returns 503; the next request starts the engine again and it stalls identically.

  1. Deterministic: reproduced on every start, always at layer step 1, with 6 tokens at position 0.

Ruled out

  • Not RAM: 14.9 GB RAM free during the IQ2_XS stall (8.6–10.4 GB during the IQ3_XXS runs); page file grew
    itself from 3.8 GB to 7.5 GB.
  • Not the model: identical behaviour with IQ3_XXS and IQ2_XS; the same IQ2_XS shards run in llama.cpp
    (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.
  • Not the disk: model and pack on NVMe (33 GiB loaded at 2.46 GiB/s); also reproduced with the model on
    another volume.
  • Not the GPU being busy: nvidia-smi shows 0% utilisation while the host waits; 474 MiB VRAM free with
    everything loaded.
  • Not a driver reset: no nvlddmkm/TDR events in the Windows event log (last 3 days).

Configurations/engine flags tried (all stall the same way)

  1. setup default config (64K context, --kv int8, --expert-cache auto, --prefill auto, --spec 4, MTP)
  2. --host-core last (Windows sends GPU interrupts to one logical processor; default puts the host thread on 0)
  3. STRATA_HC_SPLIT=0 (the non-staged hyper-connection read)
  4. --short-read 0 — changes where it stops: the prompt is then processed via the batched path and the stall
    moves to the first decode window (1 tokens at position 14, host at layer step 1), same signature
  5. --no-hit-poke
  6. --expert-cache 0 (the engine still auto-sized a 5618-slot cache from the profile)
  7. STRATA_TOPK_STREAM=0 (the 0.1.40 Turing escape hatch from TROUBLESHOOTING.md)
  8. --pcie-mode dma (the pre-0.1.14 expert-copy path from issue #31)
  9. --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)
  10. --spec 1 → refused: --spec T (T >= 2)
  11. IQ2_XS instead of IQ3_XXS (this run also had --kv-resident 32768)

Also seen at startup in every run (probably unrelated, but mentioning it):

strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 35456548864 B
                 (GetLargePageMinimum=2097152, VirtualAlloc error 1450); using 4 KB pages

strata-stall-21656.dmp

Attachments

  • strata-iq2_xs.log (20 KB) — the IQ2_XS run, includes the stall report above
  • strata-iq3_xxs.log (57 KB) — the IQ3_XXS run, same stall
  • strata-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 the
GPU 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-layer run, or an older/newer
engine build would give you more useful data — I can rerun and send whatever you need.

Originally created by @Madingdang on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/1577 [strata-iq2_xs.log](https://github.com/user-attachments/files/33210361/strata-iq2_xs.log) [strata-stall-22088.dmp](https://github.com/user-attachments/files/33210374/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 s watchdog stops the engine (issue #29 behaviour) and the server answers `HTTP 503`. Reproduced with two different models (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>.dmp` is written every time. ## Environment | | | | --- | --- | | OS | Windows 11 专业版, 10.0.22621 | | GPU | NVIDIA Tesla T4, 16 GB VRAM, compute capability 7.5, driver 616.92 | | CPU | AMD Ryzen 7 5700G (AVX2, no AVX-512) | | RAM | 60 GB | | Engine | 0.1.40 ready-made, CUDA 13.0, `archs [75, 86, 89, 120]`, `ptx: true` (`engine/BUILD.json`) | | Storage | model on NVMe (`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 1. Start: `run-iq2_xs.bat` (engine 0.1.40). Startup is fine: ``` strata generate: loaded 33.02 GiB at 2.46 GiB/s strata generate: expert cache 7525 slots, 10.08 GiB of VRAM; policy is PROFILE, ranked by routing frequency strata generate: R4 hit path ON - resident experts are computed on the GPU strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring strata verify: captured the 4-token window (upload no error, sync no error) strata serve: 474 MiB of VRAM free with everything loaded ``` `/health` → `{"status": "ok", ..., "model": "qwen3.8-flash-next-iq2_xs", "loaded": true}`. 2. Send one request (`/v1/chat/completions`, 17-token prompt, `reasoning_effort: none`). Nothing comes back. After 60 s the server prints: ``` strata serve: no progress for 60 s during a request (reading the prompt (verify windows), from token 0) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.40): stage "reading the prompt (verify windows), from token 0" for 60 s expert pool: epoch 0, batch epoch 0: 0 of 0 jobs claimed, 0 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping ... w6=sleeping; host idle for 198437 ms verify window (last window, not the current stage): 6 tokens at position 0, host at layer step 1; the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0 memory: 36612 MiB resident, 37063 MiB committed, 14896 MiB RAM available; 10220761 page faults so far wrote the thread stacks to C:\Strata-0.1.40.1\strata-stall-13584.dmp (attach it to the issue) strata: released the verify window's GPU waits (#267): the GPU finished in 65 ms ``` 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 `0xC0000409` and the server returns `503`; the next request starts the engine again and it stalls identically. 3. Deterministic: reproduced on every start, always at `layer step 1`, with `6 tokens at position 0`. ## Ruled out * **Not RAM**: 14.9 GB RAM free during the IQ2_XS stall (8.6–10.4 GB during the IQ3_XXS runs); page file grew itself from 3.8 GB to 7.5 GB. * **Not the model**: identical behaviour with IQ3_XXS and IQ2_XS; the *same* IQ2_XS shards run in llama.cpp (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. * **Not the disk**: model and pack on NVMe (33 GiB loaded at 2.46 GiB/s); also reproduced with the model on another volume. * **Not the GPU being busy**: `nvidia-smi` shows 0% utilisation while the host waits; 474 MiB VRAM free with everything loaded. * **Not a driver reset**: no `nvlddmkm`/TDR events in the Windows event log (last 3 days). ## Configurations/engine flags tried (all stall the same way) 1. setup default config (64K context, `--kv int8`, `--expert-cache auto`, `--prefill auto`, `--spec 4`, MTP) 2. `--host-core last` (Windows sends GPU interrupts to one logical processor; default puts the host thread on 0) 3. `STRATA_HC_SPLIT=0` (the non-staged hyper-connection read) 4. `--short-read 0` — **changes where it stops**: the prompt is then processed via the batched path and the stall moves to the first *decode* window (`1 tokens at position 14, host at layer step 1`), same signature 5. `--no-hit-poke` 6. `--expert-cache 0` (the engine still auto-sized a 5618-slot cache from the profile) 7. `STRATA_TOPK_STREAM=0` (the 0.1.40 Turing escape hatch from TROUBLESHOOTING.md) 8. `--pcie-mode dma` (the pre-0.1.14 expert-copy path from issue #31) 9. `--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)` 10. `--spec 1` → refused: `--spec T (T >= 2)` 11. IQ2_XS instead of IQ3_XXS (this run also had `--kv-resident 32768`) Also seen at startup in every run (probably unrelated, but mentioning it): ``` strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 35456548864 B (GetLargePageMinimum=2097152, VirtualAlloc error 1450); using 4 KB pages ``` [strata-stall-21656.dmp](https://github.com/user-attachments/files/33210397/strata-stall-21656.dmp) ## Attachments * `strata-iq2_xs.log` (20 KB) — the IQ2_XS run, includes the stall report above * `strata-iq3_xxs.log` (57 KB) — the IQ3_XXS run, same stall * `strata-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 the GPU 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-layer` run, or an older/newer engine build would give you more useful data — I can rerun and send whatever you need.
Author
Owner

@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=1 set 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 with verify 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 (archs 70;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 that CUDA_LAUNCH_BLOCKING=1 hangs 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:

  1. Warn or refuse at startup when CUDA_LAUNCH_BLOCKING (and maybe CUDA_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.
  2. Carry the environment into the stall report (next to the memory/page-fault lines): the value of CUDA_LAUNCH_BLOCKING and the two CUDA_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 by crt/host_config.h. The engine built this way has run stably under testing so far.)

<!-- gh-comment-id:6067871133 --> @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=1` set 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 with `verify 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 (archs `70;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 that `CUDA_LAUNCH_BLOCKING=1` hangs 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: 1. **Warn or refuse at startup** when `CUDA_LAUNCH_BLOCKING` (and maybe `CUDA_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. 2. **Carry the environment into the stall report** (next to the memory/page-fault lines): the value of `CUDA_LAUNCH_BLOCKING` and the two `CUDA_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 by `crt/host_config.h`. The engine built this way has run stably under testing so far.)
Author
Owner

@Madingdang commented on GitHub (Oct 9, 2026):

Thanks, this is very helpful.

<!-- gh-comment-id:6081932108 --> @Madingdang commented on GitHub (Oct 9, 2026): Thanks, this is very helpful.
Author
Owner

@Madingdang commented on GitHub (Oct 9, 2026):

RESOLVED — the cause was CUDA_LAUNCH_BLOCKING=1 in the machine environment

Thanks 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 process
inherited 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.json and the same IQ2_XS pack ran with no stall at all:

before (variable set) after (variable removed)
first request stall in the verify window, engine stopped, HTTP 503 works
prompt — (never reached) 24 tokens in 0.54 s = 44.8 tok/s
decode — 772 tokens in 21.6 s = 35.7 tok/s
MTP drafts — 347 of 595 accepted
expert cache — 94.4 % hit rate (5159 of 490080 routed read over PCIe)
KV streaming — 99.81 % of block reads hit VRAM

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):

Confirmed on my machine as well — this was exactly it, thank you.

CUDA_LAUNCH_BLOCKING=1 was set machine-wide on this box
(HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment), so every process inherited it; almost
certainly left over from some earlier debugging session. The stall signature was identical to what you describe:
stage reading the prompt (verify windows), from token 0, verify window ... 6 tokens at position 0, host at layer step 1; the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0, then the #29 watchdog, engine exit
0xC0000409, HTTP 503 — on both IQ3_XXS and IQ2_XS, over several days, across 11 configuration permutations
(--host-core last, STRATA_HC_SPLIT=0, --short-read 0, --no-hit-poke, --expert-cache 0,
STRATA_TOPK_STREAM=0, --pcie-mode dma, …).

After removing the variable (new processes only — it is read from the environment at CUDA init), the same engine
0.1.40 / config / pack runs with no stall: prompt 44.8 tok/s, decode 35.7 tok/s, MTP drafts 347/595 accepted,
expert cache 94.4 % hit, KV streaming 99.8 % in VRAM, 772-token answer in 22.6 s (Tesla T4 16 GB, sm_75, driver
616.92).

+1 to both suggestions: a one-line warning at startup when CUDA_LAUNCH_BLOCKING (and
CUDA_DEVICE_WAITS_ON_EXCEPTION) is non-empty, and carrying those variables into the stall report next to the
memory/page-fault lines. A machine-wide variable from an old debugging session is very hard to suspect from the
outside, and the failure mode looks exactly like an engine bug.


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 s
watchdog stops the engine (issue #29 behaviour) and the server answers HTTP 503. Reproduced with two different
models (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>.dmp is written every time.

Environment

OS Windows 11 专业版, 10.0.22621
GPU NVIDIA Tesla T4, 16 GB VRAM, compute capability 7.5, driver 616.92
CPU AMD Ryzen 7 5700G (AVX2, no AVX-512)
RAM 60 GB
Engine 0.1.40 ready-made, CUDA 13.0, archs [75, 86, 89, 120], ptx: true (engine/BUILD.json)
Storage model on NVMe (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

  1. Start: run-iq2_xs.bat (engine 0.1.40). Startup is fine:
strata generate: loaded 33.02 GiB at 2.46 GiB/s
strata generate: expert cache 7525 slots, 10.08 GiB of VRAM; policy is PROFILE, ranked by routing frequency
strata generate: R4 hit path ON - resident experts are computed on the GPU
strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring
strata verify: captured the 4-token window (upload no error, sync no error)
strata serve: 474 MiB of VRAM free with everything loaded

/health → {"status": "ok", ..., "model": "qwen3.8-flash-next-iq2_xs", "loaded": true}.

  1. Send one request (/v1/chat/completions, 17-token prompt, reasoning_effort: none). Nothing comes back.
    After 60 s the server prints:
strata serve: no progress for 60 s during a request (reading the prompt (verify windows), from token 0)
              - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.40): stage "reading the prompt (verify windows), from token 0" for 60 s
  expert pool: epoch 0, batch epoch 0: 0 of 0 jobs claimed, 0 done; 7 of 7 workers parked, 7 sleeping; mode 0
  expert pool threads: w0=sleeping ... w6=sleeping; host idle for 198437 ms
  verify window (last window, not the current stage): 6 tokens at position 0, host at layer step 1;
                  the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0
  memory: 36612 MiB resident, 37063 MiB committed, 14896 MiB RAM available; 10220761 page faults so far
  wrote the thread stacks to C:\Strata-0.1.40.1\strata-stall-13584.dmp (attach it to the issue)
strata: released the verify window's GPU waits (#267): the GPU finished in 65 ms

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
0xC0000409 and the server returns 503; the next request starts the engine again and it stalls identically.

  1. Deterministic: reproduced on every start, always at layer step 1, with 6 tokens at position 0.

Ruled out

  • Not RAM: 14.9 GB RAM free during the IQ2_XS stall (8.6–10.4 GB during the IQ3_XXS runs); page file grew
    itself from 3.8 GB to 7.5 GB.
  • Not the model: identical behaviour with IQ3_XXS and IQ2_XS; the same IQ2_XS shards run in llama.cpp
    (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.
  • Not the disk: model and pack on NVMe (33 GiB loaded at 2.46 GiB/s); also reproduced with the model on
    another volume.
  • Not the GPU being busy: nvidia-smi shows 0% utilisation while the host waits; 474 MiB VRAM free with
    everything loaded.
  • Not a driver reset: no nvlddmkm/TDR events in the Windows event log (last 3 days).

Configurations/engine flags tried (all stall the same way)

  1. setup default config (64K context, --kv int8, --expert-cache auto, --prefill auto, --spec 4, MTP)
  2. --host-core last (Windows sends GPU interrupts to one logical processor; default puts the host thread on 0)
  3. STRATA_HC_SPLIT=0 (the non-staged hyper-connection read)
  4. --short-read 0 — changes where it stops: the prompt is then processed via the batched path and the stall
    moves to the first decode window (1 tokens at position 14, host at layer step 1), same signature
  5. --no-hit-poke
  6. --expert-cache 0 (the engine still auto-sized a 5618-slot cache from the profile)
  7. STRATA_TOPK_STREAM=0 (the 0.1.40 Turing escape hatch from TROUBLESHOOTING.md)
  8. --pcie-mode dma (the pre-0.1.14 expert-copy path from issue #31)
  9. --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)
  10. --spec 1 → refused: --spec T (T >= 2)
  11. IQ2_XS instead of IQ3_XXS (this run also had --kv-resident 32768)

Also seen at startup in every run (probably unrelated, but mentioning it):

strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 35456548864 B
                 (GetLargePageMinimum=2097152, VirtualAlloc error 1450); using 4 KB pages

Attachments

  • strata-iq2_xs.log (20 KB) — the IQ2_XS run, includes the stall report above
  • strata-iq3_xxs.log (57 KB) — the IQ3_XXS run, same stall
  • strata-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 the
GPU 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-layer run, or an older/newer
engine build would give you more useful data — I can rerun and send whatever you need.

<!-- gh-comment-id:6081945077 --> @Madingdang commented on GitHub (Oct 9, 2026): ## RESOLVED — the cause was `CUDA_LAUNCH_BLOCKING=1` in the machine environment Thanks 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 process inherited 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.json` and the same IQ2_XS pack ran with no stall at all: | | before (variable set) | after (variable removed) | | --- | --- | --- | | first request | stall in the verify window, engine stopped, HTTP 503 | works | | prompt | — (never reached) | 24 tokens in 0.54 s = **44.8 tok/s** | | decode | — | 772 tokens in 21.6 s = **35.7 tok/s** | | MTP drafts | — | 347 of 595 accepted | | expert cache | — | **94.4 %** hit rate (5159 of 490080 routed read over PCIe) | | KV streaming | — | 99.81 % of block reads hit VRAM | 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):** > Confirmed on my machine as well — this was exactly it, thank you. > > `CUDA_LAUNCH_BLOCKING=1` was set **machine-wide** on this box > (`HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment`), so every process inherited it; almost > certainly left over from some earlier debugging session. The stall signature was identical to what you describe: > stage `reading the prompt (verify windows), from token 0`, `verify window ... 6 tokens at position 0, host at > layer step 1; the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0`, then the #29 watchdog, engine exit > `0xC0000409`, HTTP 503 — on both IQ3_XXS and IQ2_XS, over several days, across 11 configuration permutations > (`--host-core last`, `STRATA_HC_SPLIT=0`, `--short-read 0`, `--no-hit-poke`, `--expert-cache 0`, > `STRATA_TOPK_STREAM=0`, `--pcie-mode dma`, …). > > After removing the variable (new processes only — it is read from the environment at CUDA init), the same engine > 0.1.40 / config / pack runs with no stall: prompt 44.8 tok/s, decode 35.7 tok/s, MTP drafts 347/595 accepted, > expert cache 94.4 % hit, KV streaming 99.8 % in VRAM, 772-token answer in 22.6 s (Tesla T4 16 GB, sm_75, driver > 616.92). > > +1 to both suggestions: a one-line warning at startup when `CUDA_LAUNCH_BLOCKING` (and > `CUDA_DEVICE_WAITS_ON_EXCEPTION`) is non-empty, and carrying those variables into the stall report next to the > memory/page-fault lines. A machine-wide variable from an old debugging session is very hard to suspect from the > outside, and the failure mode looks exactly like an engine bug. --- ## 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 s watchdog stops the engine (issue #29 behaviour) and the server answers `HTTP 503`. Reproduced with two different models (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>.dmp` is written every time. ## Environment | | | | --- | --- | | OS | Windows 11 专业版, 10.0.22621 | | GPU | NVIDIA Tesla T4, 16 GB VRAM, compute capability 7.5, driver 616.92 | | CPU | AMD Ryzen 7 5700G (AVX2, no AVX-512) | | RAM | 60 GB | | Engine | 0.1.40 ready-made, CUDA 13.0, `archs [75, 86, 89, 120]`, `ptx: true` (`engine/BUILD.json`) | | Storage | model on NVMe (`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 1. Start: `run-iq2_xs.bat` (engine 0.1.40). Startup is fine: ``` strata generate: loaded 33.02 GiB at 2.46 GiB/s strata generate: expert cache 7525 slots, 10.08 GiB of VRAM; policy is PROFILE, ranked by routing frequency strata generate: R4 hit path ON - resident experts are computed on the GPU strata serve: prompt chunk auto: 8192 tokens, a 384-slot ring strata verify: captured the 4-token window (upload no error, sync no error) strata serve: 474 MiB of VRAM free with everything loaded ``` `/health` → `{"status": "ok", ..., "model": "qwen3.8-flash-next-iq2_xs", "loaded": true}`. 2. Send one request (`/v1/chat/completions`, 17-token prompt, `reasoning_effort: none`). Nothing comes back. After 60 s the server prints: ``` strata serve: no progress for 60 s during a request (reading the prompt (verify windows), from token 0) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.40): stage "reading the prompt (verify windows), from token 0" for 60 s expert pool: epoch 0, batch epoch 0: 0 of 0 jobs claimed, 0 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping ... w6=sleeping; host idle for 198437 ms verify window (last window, not the current stage): 6 tokens at position 0, host at layer step 1; the GPU rang 1; flags: served 0, plan (A) 0, copies (B) 0 memory: 36612 MiB resident, 37063 MiB committed, 14896 MiB RAM available; 10220761 page faults so far wrote the thread stacks to C:\Strata-0.1.40.1\strata-stall-13584.dmp (attach it to the issue) strata: released the verify window's GPU waits (#267): the GPU finished in 65 ms ``` 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 `0xC0000409` and the server returns `503`; the next request starts the engine again and it stalls identically. 3. Deterministic: reproduced on every start, always at `layer step 1`, with `6 tokens at position 0`. ## Ruled out * **Not RAM**: 14.9 GB RAM free during the IQ2_XS stall (8.6–10.4 GB during the IQ3_XXS runs); page file grew itself from 3.8 GB to 7.5 GB. * **Not the model**: identical behaviour with IQ3_XXS and IQ2_XS; the *same* IQ2_XS shards run in llama.cpp (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. * **Not the disk**: model and pack on NVMe (33 GiB loaded at 2.46 GiB/s); also reproduced with the model on another volume. * **Not the GPU being busy**: `nvidia-smi` shows 0% utilisation while the host waits; 474 MiB VRAM free with everything loaded. * **Not a driver reset**: no `nvlddmkm`/TDR events in the Windows event log (last 3 days). ## Configurations/engine flags tried (all stall the same way) 1. setup default config (64K context, `--kv int8`, `--expert-cache auto`, `--prefill auto`, `--spec 4`, MTP) 2. `--host-core last` (Windows sends GPU interrupts to one logical processor; default puts the host thread on 0) 3. `STRATA_HC_SPLIT=0` (the non-staged hyper-connection read) 4. `--short-read 0` — **changes where it stops**: the prompt is then processed via the batched path and the stall moves to the first *decode* window (`1 tokens at position 14, host at layer step 1`), same signature 5. `--no-hit-poke` 6. `--expert-cache 0` (the engine still auto-sized a 5618-slot cache from the profile) 7. `STRATA_TOPK_STREAM=0` (the 0.1.40 Turing escape hatch from TROUBLESHOOTING.md) 8. `--pcie-mode dma` (the pre-0.1.14 expert-copy path from issue #31) 9. `--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)` 10. `--spec 1` → refused: `--spec T (T >= 2)` 11. IQ2_XS instead of IQ3_XXS (this run also had `--kv-resident 32768`) Also seen at startup in every run (probably unrelated, but mentioning it): ``` strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 35456548864 B (GetLargePageMinimum=2097152, VirtualAlloc error 1450); using 4 KB pages ``` ## Attachments * `strata-iq2_xs.log` (20 KB) — the IQ2_XS run, includes the stall report above * `strata-iq3_xxs.log` (57 KB) — the IQ3_XXS run, same stall * `strata-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 the GPU 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-layer` run, or an older/newer engine build would give you more useful data — I can rerun and send whatever you need.
Author
Owner

@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.

<!-- gh-comment-id:6156141841 --> @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](https://github.com/Niko1221/Strata/releases/tag/v0.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.
Author
Owner

@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?

  1. Which driver package and version did you install (GeForce / Studio / Data Center / RTX Enterprise)? Did you modify the INF or use test signing mode?
  2. What does nvidia-smi show for the Driver Model of each card (TCC / WDDM)? Is the 5060 Ti driving the display?
  3. Did you run into any problem with both cards appearing at the same time (Code 10, one card missing, enumeration order)?
  4. Did a Windows Update or a driver update ever break the setup?

Any detail helps, and no problem if you cannot share everything. Thank you!

<!-- gh-comment-id:6645347861 --> @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? 1. Which driver package and version did you install (GeForce / Studio / Data Center / RTX Enterprise)? Did you modify the INF or use test signing mode? 2. What does `nvidia-smi` show for the Driver Model of each card (TCC / WDDM)? Is the 5060 Ti driving the display? 3. Did you run into any problem with both cards appearing at the same time (Code 10, one card missing, enumeration order)? 4. Did a Windows Update or a driver update ever break the setup? Any detail helps, and no problem if you cannot share everything. Thank you!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#631
No description provided.