[GH-ISSUE #251] Long prompt hangs at the same verify-window position on Strata 0.1.29 #131

Closed
opened 2026-11-04 01:40:17 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @chemical12 on GitHub (Sep 30, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/251

Environment

Strata: 0.1.29

Model: Swift 1.5 / Qwen3.8-Flash-Next

Quantization: IQ3_XXS

Context: 131072

GPU: RTX 4070 Ti SUPER 16 GB

NVIDIA driver: 580.173.02

CUDA: 13.0.2

CPU: Xeon E5-2667 v4

System RAM: 128 GB

OS: TrueNAS SCALE / Linux

CPU does not have AVX-512; Strata uses AVX2 expert kernels.

Problem

Long prompts consistently hang during prompt processing.

A prompt of approximately 13,240 tokens gets stuck at:

strata serve: reading the prompt: 13,240 tokens

There is no progress for more than 100 seconds. The server then kills the engine with the watchdog:

strata serve: no progress for 60 s during a request (reading the prompt, from token 0) - stopping the engine so the server starts it again (issue #29)

The same behavior occurs after upgrading from 0.1.28 to 0.1.29.

###Relevant stall report

The 0.1.29 stall report consistently ends at:


expert pool: epoch 768, batch epoch 768: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0

expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 60147 ms

verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48

memory: 44941 MiB resident, 0 MiB in swap, 7443 MiB RAM available; 0 major page faults so far

Two seconds later the state is unchanged:
verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48

The important point is that the expert pool reports 24/24 jobs completed, all workers are sleeping, and the GPU reached layer 48. There is no RAM swap and no major page-fault activity at the time of the hang.

VRAM state

The model loads successfully:

loaded 39.97 GiB at 6.00 GiB/s
expert cache 4803 slots, 7.80 GiB of VRAM
strata serve: 439 MiB of VRAM free with everything loaded

The hang therefore does not appear to be caused by the model failing to load or an obvious VRAM exhaustion.

Reproducibility

The failure is highly reproducible.

The same test has repeatedly reached:

verify window: 4 tokens at position 139
host at layer step 48
GPU rang 48

and then remains there until the watchdog terminates the engine.

0.1.29 verification

I upgraded from 0.1.28 to 0.1.29 and confirmed that the engine was rebuilt:

ggml commit: d6708a4
engine compiled: /opt/strata/engine/strata

The failing request is running on:

session is up (engine 0.1.29)

The issue therefore still reproduces on 0.1.29.

strata serve: prompt 133 tokens = 0 reused + 133 read in 9275 ms (14.3 tok/s), 8 generated in 1306 ms (6.1 tok/s), drafts accepted 4 of 5, 1 checkpoints
strata serve: decode expert cache hit rate: 26.5% (1438 hits / 5434 lookups)
strata serve: KV streaming: 94.15% of 7380 block reads hit VRAM, 1.7 MiB read from RAM
strata serve: no progress for 60 s during a request (reading the prompt, from token 0) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report (engine 0.1.29): stage "reading the prompt, from token 0" for 60 s; 0 layers served since the last finished step (0 = stopped, more = slow)
  expert pool: epoch 768, batch epoch 768: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 60147 ms
  verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  memory: 44941 MiB resident, 0 MiB in swap, 7443 MiB RAM available; 5915 major page faults so far
  2 s later:
  expert pool: epoch 768, batch epoch 768: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0
  expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 62148 ms
  verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48
  memory: 44925 MiB resident, 0 MiB in swap, 7480 MiB RAM available; 5915 major page faults so far
Originally created by @chemical12 on GitHub (Sep 30, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/251 ### **Environment** Strata: 0.1.29 Model: Swift 1.5 / Qwen3.8-Flash-Next Quantization: IQ3_XXS Context: 131072 GPU: RTX 4070 Ti SUPER 16 GB NVIDIA driver: 580.173.02 CUDA: 13.0.2 CPU: Xeon E5-2667 v4 System RAM: 128 GB OS: TrueNAS SCALE / Linux CPU does not have AVX-512; Strata uses AVX2 expert kernels. ### **Problem** Long prompts consistently hang during prompt processing. A prompt of approximately 13,240 tokens gets stuck at: ``` strata serve: reading the prompt: 13,240 tokens There is no progress for more than 100 seconds. The server then kills the engine with the watchdog: strata serve: no progress for 60 s during a request (reading the prompt, from token 0) - stopping the engine so the server starts it again (issue #29) ``` The same behavior occurs after upgrading from 0.1.28 to 0.1.29. ###**Relevant stall report** The 0.1.29 stall report consistently ends at: ``` expert pool: epoch 768, batch epoch 768: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 60147 ms verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 44941 MiB resident, 0 MiB in swap, 7443 MiB RAM available; 0 major page faults so far ``` Two seconds later the state is unchanged: ` verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48` The important point is that the expert pool reports 24/24 jobs completed, all workers are sleeping, and the GPU reached layer 48. There is no RAM swap and no major page-fault activity at the time of the hang. ### **VRAM state** The model loads successfully: loaded 39.97 GiB at 6.00 GiB/s expert cache 4803 slots, 7.80 GiB of VRAM strata serve: 439 MiB of VRAM free with everything loaded The hang therefore does not appear to be caused by the model failing to load or an obvious VRAM exhaustion. ### **Reproducibility** The failure is highly reproducible. The same test has repeatedly reached: verify window: 4 tokens at position 139 host at layer step 48 GPU rang 48 and then remains there until the watchdog terminates the engine. ### **0.1.29 verification** I upgraded from 0.1.28 to 0.1.29 and confirmed that the engine was rebuilt: ggml commit: d6708a4 engine compiled: /opt/strata/engine/strata The failing request is running on: session is up (engine 0.1.29) The issue therefore still reproduces on 0.1.29. ``` strata serve: prompt 133 tokens = 0 reused + 133 read in 9275 ms (14.3 tok/s), 8 generated in 1306 ms (6.1 tok/s), drafts accepted 4 of 5, 1 checkpoints strata serve: decode expert cache hit rate: 26.5% (1438 hits / 5434 lookups) strata serve: KV streaming: 94.15% of 7380 block reads hit VRAM, 1.7 MiB read from RAM strata serve: no progress for 60 s during a request (reading the prompt, from token 0) - stopping the engine so the server starts it again (issue #29) strata serve: stall report (engine 0.1.29): stage "reading the prompt, from token 0" for 60 s; 0 layers served since the last finished step (0 = stopped, more = slow) expert pool: epoch 768, batch epoch 768: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 60147 ms verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 44941 MiB resident, 0 MiB in swap, 7443 MiB RAM available; 5915 major page faults so far 2 s later: expert pool: epoch 768, batch epoch 768: 24 of 24 jobs claimed, 24 done; 7 of 7 workers parked, 7 sleeping; mode 0 expert pool threads: w0=sleeping w1=sleeping w2=sleeping w3=sleeping w4=sleeping w5=sleeping w6=sleeping; host idle for 62148 ms verify window: 4 tokens at position 139, host at layer step 48; the GPU rang 48; flags: served 48, plan (A) 48, copies (B) 48 memory: 44925 MiB resident, 0 MiB in swap, 7480 MiB RAM available; 5915 major page faults so far ```
Author
Owner

@Niko1221 commented on GitHub (Sep 30, 2026):

The log points elsewhere than the title: the stage is "reading the prompt, from token 0", so it hangs at the start of the batched prompt read (13,240 tokens, 439 MiB of VRAM free), not in a verify window. The "verify window: 4 tokens at position 139" line is the previous request's last window; 0.1.31 labels it and reports the prompt chunk and layer while reading.

The prompt path changed in 0.1.30, so please retest on 0.1.30. If it still hangs, reopen with:

  1. gdb -p <engine pid> -batch -ex "thread apply all bt" taken during the hang;
  2. the full engine log from "reading the prompt" on;
  3. whether --vram-reserve-mib 1200 or a smaller --max-context avoids it.
<!-- gh-comment-id:5917495365 --> @Niko1221 commented on GitHub (Sep 30, 2026): The log points elsewhere than the title: the stage is "reading the prompt, from token 0", so it hangs at the start of the batched prompt read (13,240 tokens, 439 MiB of VRAM free), not in a verify window. The "verify window: 4 tokens at position 139" line is the previous request's last window; 0.1.31 labels it and reports the prompt chunk and layer while reading. The prompt path changed in 0.1.30, so please retest on 0.1.30. If it still hangs, reopen with: 1. `gdb -p <engine pid> -batch -ex "thread apply all bt"` taken during the hang; 2. the full engine log from "reading the prompt" on; 3. whether `--vram-reserve-mib 1200` or a smaller `--max-context` avoids it.
Author
Owner

@1593914054 commented on GitHub (Oct 1, 2026):

Retest: official engine 0.1.31 still leads to VIDEO_TDR_FAILURE, apparently before the 60-second watchdog can intervene

Thanks for the fix. Could you please reopen this issue, or advise whether this should be tracked separately?

I retested with the official 0.1.31 Windows engine. Both BUILD.json and the running engine's INFO/startup log confirm 0.1.31. The release ZIP's SHA-256 matched the published digest:
74be0337b4ac0616a47363a2dec811868068aa24d79ad1286156df993bad1f4b.

Same RTX 4080 SUPER 16 GB, Ryzen 9 7950X3D, 128 GB RAM, Windows 11 build 26200, NVIDIA driver 616.92, IQ3_S pack and PLE shard as the original report.

For transparency, this was an engine-only update: the Python HTTP frontend remained at 0.1.30 with four small diagnostic logging blocks at engine-ready, request-start, request-complete and stdout-closed boundaries. No C++/CUDA changes were made. The logs contain no prompt contents. STRATA_TEST_VERIFY_STALL was not enabled.

The inference configuration remained:

--expert-cache auto --expert-profile <profile>
--prefill auto --spec 4 --spec-min-p 0.5 --mtp <dir>
--max-context 262144 --kv int8 --kv-resident 32768
--vision --vram-reserve-mib 1800

The engine reported an effective 6-token verify window, 3,099 expert-cache slots (5.93 GiB), 1,383 MiB free VRAM after loading, a 46.84 GiB successfully registered expert arena, and 3.09 GiB of pinned KV.

Timeline (2026-10-01, UTC+08:00)

  • 13:29:52: engine ready, version 0.1.31.
  • 13:29:58: first request starts, 57 input tokens, max_new=200.
  • 13:30:20: Windows' reported boot time after the crash.
  • 13:30:29: System event 1001 reports:
The computer has rebooted from a bugcheck.
0x00000116
(0xffff830f2ea6f010, 0xfffff80169e0a3a0,
 0xffffffffc000009a, 0x0000000000000004)
Dump: C:\WINDOWS\Minidump\100126-9000-01.dmp

System event 1019 also names nvlddmkm.sys as the possibly related driver.

The engine log ends at:

strata serve: 1383 MiB of VRAM free with everything loaded
strata verify: captured the 6-token window (upload no error, sync no error)

There is no request-complete event, no watchdog stall report, and no "released the verify window's GPU waits" message. The request-to-reboot interval is about 22 seconds, shorter than the default 60-second watchdog. Thus this run does not demonstrate that the new flag-release routine failed after being invoked; it suggests Windows failed before the watchdog could intervene. I cannot determine the exact GPU kernel or whether it is the identical stall from these logs alone.

After the reboot, nvidia-smi works again. I have stopped further GPU reproductions for now.

Questions

  1. Is earlier detection/release needed for Windows TDR failures that occur before the 60-second watchdog, rather than only cleanup when the watchdog ends the process?
  2. Which single-variable diagnostic would you prefer next: --pcie-frac 0, a fixed STRATA_ARENA_PIN_GIB cap, or a diagnostic engine with GPU-stage progress markers? The whole-arena registration succeeded here, unlike #243; I understand that auto only caps the fallback sliced registration.
  3. In Verifier::release_gpu_waits, a cudaStreamQuery result other than cudaErrorNotReady ends the polling loop, including CUDA errors, and the function can return true. Could the release log distinguish cudaSuccess from an error? This is a separate observability concern, not a claimed cause of this crash.

Additional environment observations, not established causes: HwSchMode=2 is configured; the machine has a GameViewer virtual display adapter and AMD integrated graphics in addition to the NVIDIA card. No explicit TdrLevel, TdrDelay or TdrDdiDelay registry overrides were found.

Attached ZIP: engine log, request-boundary trace, exact test config, BUILD.json, and selected Windows System events. It contains no memory dumps. The kernel minidump exists according to Windows, but needs an elevated local copy to inspect; I have not analyzed it or uploaded it publicly.

strata-267-0.1.31-evidence.zip

<!-- gh-comment-id:5925841122 --> @1593914054 commented on GitHub (Oct 1, 2026): ### Retest: official engine 0.1.31 still leads to VIDEO_TDR_FAILURE, apparently before the 60-second watchdog can intervene Thanks for the fix. Could you please reopen this issue, or advise whether this should be tracked separately? I retested with the official **0.1.31 Windows engine**. Both `BUILD.json` and the running engine's `INFO`/startup log confirm 0.1.31. The release ZIP's SHA-256 matched the published digest: `74be0337b4ac0616a47363a2dec811868068aa24d79ad1286156df993bad1f4b`. Same RTX 4080 SUPER 16 GB, Ryzen 9 7950X3D, 128 GB RAM, Windows 11 build 26200, NVIDIA driver **616.92**, IQ3_S pack and PLE shard as the original report. For transparency, this was an **engine-only update**: the Python HTTP frontend remained at 0.1.30 with four small diagnostic logging blocks at engine-ready, request-start, request-complete and stdout-closed boundaries. No C++/CUDA changes were made. The logs contain no prompt contents. `STRATA_TEST_VERIFY_STALL` was not enabled. The inference configuration remained: ```text --expert-cache auto --expert-profile <profile> --prefill auto --spec 4 --spec-min-p 0.5 --mtp <dir> --max-context 262144 --kv int8 --kv-resident 32768 --vision --vram-reserve-mib 1800 ``` The engine reported an effective 6-token verify window, 3,099 expert-cache slots (5.93 GiB), **1,383 MiB free VRAM after loading**, a **46.84 GiB successfully registered expert arena**, and **3.09 GiB of pinned KV**. ### Timeline (2026-10-01, UTC+08:00) - **13:29:52**: engine ready, version 0.1.31. - **13:29:58**: first request starts, **57 input tokens, `max_new=200`**. - **13:30:20**: Windows' reported boot time after the crash. - **13:30:29**: System event 1001 reports: ```text The computer has rebooted from a bugcheck. 0x00000116 (0xffff830f2ea6f010, 0xfffff80169e0a3a0, 0xffffffffc000009a, 0x0000000000000004) Dump: C:\WINDOWS\Minidump\100126-9000-01.dmp ``` System event **1019** also names `nvlddmkm.sys` as the possibly related driver. The engine log ends at: ```text strata serve: 1383 MiB of VRAM free with everything loaded strata verify: captured the 6-token window (upload no error, sync no error) ``` There is **no request-complete event, no watchdog stall report, and no "released the verify window's GPU waits" message**. The request-to-reboot interval is about 22 seconds, shorter than the default 60-second watchdog. Thus this run does not demonstrate that the new flag-release routine failed after being invoked; it suggests Windows failed before the watchdog could intervene. I cannot determine the exact GPU kernel or whether it is the identical stall from these logs alone. After the reboot, `nvidia-smi` works again. I have stopped further GPU reproductions for now. ### Questions 1. Is earlier detection/release needed for Windows TDR failures that occur before the 60-second watchdog, rather than only cleanup when the watchdog ends the process? 2. Which single-variable diagnostic would you prefer next: `--pcie-frac 0`, a fixed `STRATA_ARENA_PIN_GIB` cap, or a diagnostic engine with GPU-stage progress markers? The whole-arena registration succeeded here, unlike #243; I understand that `auto` only caps the fallback sliced registration. 3. In `Verifier::release_gpu_waits`, a `cudaStreamQuery` result other than `cudaErrorNotReady` ends the polling loop, including CUDA errors, and the function can return true. Could the release log distinguish `cudaSuccess` from an error? This is a separate observability concern, not a claimed cause of this crash. Additional environment observations, not established causes: `HwSchMode=2` is configured; the machine has a GameViewer virtual display adapter and AMD integrated graphics in addition to the NVIDIA card. No explicit `TdrLevel`, `TdrDelay` or `TdrDdiDelay` registry overrides were found. Attached ZIP: engine log, request-boundary trace, exact test config, `BUILD.json`, and selected Windows System events. It contains **no memory dumps**. The kernel minidump exists according to Windows, but needs an elevated local copy to inspect; I have not analyzed it or uploaded it publicly. [strata-267-0.1.31-evidence.zip](https://github.com/user-attachments/files/32889629/strata-267-0.1.31-evidence.zip)
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#131
No description provided.