[GH-ISSUE #3801] [Engine] --pipeline-windows 2 stalls long-context requests on RTX 3080 Ti + V100 #1603

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

Originally created by @MarsLuay on GitHub (Oct 23, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3801

Area

Engine

Desktop app, Terminal or source?

Desktop app/local server launching the CUDA engine. The reproduction uses the supplied benchmark harness; source review was used only to narrow the relevant pipeline paths.

Reproduction status

Reproduced repeatedly before the V100 failed: two --pipeline-windows 2 --expert-cache 2500 two-run suites passed, but a three-run suite failed twice in the long-context coding-agent phase after the chat/4K/16K sections. The matched no-pipeline controls completed.

The original two-GPU reproduction is currently blocked. After the failures, the Tesla V100 entered Windows Device Manager Code 10 (STATUS_INSUFFICIENT_RESOURCES), has no assigned BAR resources in the collected PCI evidence, and is absent from nvidia-smi; the RTX 3080 Ti remains healthy. Correlated nvlddmkm events include IDs 13, 14, and 153. Therefore I cannot currently separate an engine defect from a driver/device/resource failure, and have not applied a configuration workaround or submitted a source patch.

Strata version

Engine 0.1.40, engine-cuda12 (CUDA 12.9 release build).

Graphics card, memory and system

  • RTX 3080 Ti 12 GiB (CUDA0) + Tesla V100 PCIe 32 GiB (CUDA1)
  • 63.82 GiB system RAM; Intel Core i7-12700KF; ASUS TUF GAMING Z690-PLUS WIFI D4, BIOS 4601
  • Windows 11 IoT Enterprise LTSC 24H2 (build 26100), WDDM; NVIDIA driver 581.80

What happened

On Windows/WDDM, the CUDA engine's opt-in --pipeline-windows 2 path was not repeatably stable on an RTX 3080 Ti + Tesla V100 PCIe split. The same model and 32 GiB resident-RAM configuration completed non-pipelined control runs.

Configuration:

  • SC117 Qwen3.8 Flash Next IQ3_S native pack; 262144 context; --layer-split 22
  • --mmap-experts --resident-budget-gib 32 --kv-resident 32768 --kv int8 --spec 4 --prefill auto --vram-reserve-mib 350
  • learned 24576-pair expert profile; no --remote-expert-opt

With an explicit --expert-cache 2500 (about 1.6 GiB free on CUDA0), pipeline mode completed two complete two-run benchmark suites. A repeated three-run suite then failed in the agent section: no client response for 300 seconds and watchdog restart. The key log lines were:

strata serve: no progress for 60 s during a request (reading the prompt (batched), done up to token 8724) - stopping the engine so the server starts it again (issue #29)
strata serve: stall report ... last window: 4 tokens at position 5349; ... 0 layers served since the last finished step

The run reported 1603 MiB free with everything loaded. The default-cache pipeline configuration was worse: after short chats, a 4K prompt repeatedly stalled near token 4012; a restart followed by a 16K prompt stalled near token 16051 and later reported prefill mmq: gather_native_group: unknown error. Those later CUDA/MMQ errors are treated as secondary because they followed a watchdog stall.

Matched controls passed: no-pipeline --prefill 4096, and no-pipeline --expert-cache 2500. Their measured 4K/16K/agent rates were 564.1 / 978.5 / 52.75 tok/s. The matching pipeline run reached 576.2 / 972.2 / 66.4 tok/s before later agent-phase stalls, so the short benchmark gain is not enough to enable it.

A request-time STRATA_PIPELINE_SWITCH control with pw=0 was not an equivalent non-pipeline control: startup still allocated pipeline state, two verifiers, and GDN snapshots. In that arm the earliest narrowed hang was after all 22 CUDA0 layers in the final stage-0 D2H hand-off followed by cudaStreamSynchronize(m.cs), before later MMQ errors appeared.

Relevant upstream history (not a confirmed fix)

This installed 0.1.40 binary predates multiple relevant changes: v0.1.41 fb58e0db made default pinned stage buffers opt-in after IQ3_S corruption from recycling a host buffer before an async copy completed; v0.1.42 #1741 removed idle cudaSetDevice calls from the pipelined decode poll loop after a Windows multi-GPU deadlock. It also predates later pipeline/MTP safety work. None can be claimed to fix this report without a healthy two-GPU rerun, especially because this box now has the independent V100/WDDM failure described above.

Expected behavior

Repeated long-context and coding-agent requests should complete or surface the first CUDA error. The opt-in pipeline should not wedge a prompt/decode path and require a watchdog restart.

Engine log

The key excerpts are above. The full sanitized benchmark reports, log excerpts, and the engine watchdog minidump are available on request. Pipelining remains disabled in the intended production configuration.

Originally created by @MarsLuay on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3801 ## Area Engine ## Desktop app, Terminal or source? Desktop app/local server launching the CUDA engine. The reproduction uses the supplied benchmark harness; source review was used only to narrow the relevant pipeline paths. ## Reproduction status Reproduced repeatedly before the V100 failed: two `--pipeline-windows 2 --expert-cache 2500` two-run suites passed, but a three-run suite failed twice in the long-context coding-agent phase after the chat/4K/16K sections. The matched no-pipeline controls completed. The original two-GPU reproduction is currently blocked. After the failures, the Tesla V100 entered Windows Device Manager Code 10 (`STATUS_INSUFFICIENT_RESOURCES`), has no assigned BAR resources in the collected PCI evidence, and is absent from `nvidia-smi`; the RTX 3080 Ti remains healthy. Correlated `nvlddmkm` events include IDs 13, 14, and 153. Therefore I cannot currently separate an engine defect from a driver/device/resource failure, and have not applied a configuration workaround or submitted a source patch. ## Strata version Engine 0.1.40, `engine-cuda12` (CUDA 12.9 release build). ## Graphics card, memory and system - RTX 3080 Ti 12 GiB (CUDA0) + Tesla V100 PCIe 32 GiB (CUDA1) - 63.82 GiB system RAM; Intel Core i7-12700KF; ASUS TUF GAMING Z690-PLUS WIFI D4, BIOS 4601 - Windows 11 IoT Enterprise LTSC 24H2 (build 26100), WDDM; NVIDIA driver 581.80 ## What happened On Windows/WDDM, the CUDA engine's opt-in `--pipeline-windows 2` path was not repeatably stable on an RTX 3080 Ti + Tesla V100 PCIe split. The same model and 32 GiB resident-RAM configuration completed non-pipelined control runs. Configuration: - SC117 Qwen3.8 Flash Next IQ3_S native pack; 262144 context; `--layer-split 22` - `--mmap-experts --resident-budget-gib 32 --kv-resident 32768 --kv int8 --spec 4 --prefill auto --vram-reserve-mib 350` - learned 24576-pair expert profile; no `--remote-expert-opt` With an explicit `--expert-cache 2500` (about 1.6 GiB free on CUDA0), pipeline mode completed two complete two-run benchmark suites. A repeated three-run suite then failed in the agent section: no client response for 300 seconds and watchdog restart. The key log lines were: ``` strata serve: no progress for 60 s during a request (reading the prompt (batched), done up to token 8724) - stopping the engine so the server starts it again (issue #29) strata serve: stall report ... last window: 4 tokens at position 5349; ... 0 layers served since the last finished step ``` The run reported 1603 MiB free with everything loaded. The default-cache pipeline configuration was worse: after short chats, a 4K prompt repeatedly stalled near token 4012; a restart followed by a 16K prompt stalled near token 16051 and later reported `prefill mmq: gather_native_group: unknown error`. Those later CUDA/MMQ errors are treated as secondary because they followed a watchdog stall. Matched controls passed: no-pipeline `--prefill 4096`, and no-pipeline `--expert-cache 2500`. Their measured 4K/16K/agent rates were 564.1 / 978.5 / 52.75 tok/s. The matching pipeline run reached 576.2 / 972.2 / 66.4 tok/s before later agent-phase stalls, so the short benchmark gain is not enough to enable it. A request-time `STRATA_PIPELINE_SWITCH` control with `pw=0` was not an equivalent non-pipeline control: startup still allocated pipeline state, two verifiers, and GDN snapshots. In that arm the earliest narrowed hang was after all 22 CUDA0 layers in the final stage-0 D2H hand-off followed by `cudaStreamSynchronize(m.cs)`, before later MMQ errors appeared. ## Relevant upstream history (not a confirmed fix) This installed 0.1.40 binary predates multiple relevant changes: v0.1.41 `fb58e0db` made default pinned stage buffers opt-in after IQ3_S corruption from recycling a host buffer before an async copy completed; v0.1.42 #1741 removed idle `cudaSetDevice` calls from the pipelined decode poll loop after a Windows multi-GPU deadlock. It also predates later pipeline/MTP safety work. None can be claimed to fix this report without a healthy two-GPU rerun, especially because this box now has the independent V100/WDDM failure described above. ## Expected behavior Repeated long-context and coding-agent requests should complete or surface the first CUDA error. The opt-in pipeline should not wedge a prompt/decode path and require a watchdog restart. ## Engine log The key excerpts are above. The full sanitized benchmark reports, log excerpts, and the engine watchdog minidump are available on request. Pipelining remains disabled in the intended production configuration.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes".
  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6359964947 --> @github-actions[bot] commented on GitHub (Oct 23, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other], then a short description. Example: "[Engine] decode stops after 2 minutes". - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 23, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6361625937 --> @github-actions[bot] commented on GitHub (Oct 23, 2026): Thanks, this follows the format now.
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#1603
No description provided.