[GH-ISSUE #4090] [Engine] dsv41 on Linux/WSL2: engine wedges while "reading the prompt" ("lost step"); stable on 0.1.49.2, intermittent on 0.1.50, not OOM #1783

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

Originally created by @tdiz on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4090

Problem

Engine dsv41 wedges while "reading the prompt": the server keeps printing
heartbeats ("N tokens, X s so far") but the engine outputs nothing, and the
engine_silence watchdog ends the engine after 300-400 s (exit -9, "the engine
and the server lost step"). The server's message asked us to add logs to #481;
opening a new issue since #481 was closed in the Oct 13 housekeeping sweep.
This looks like the same lost-step class on Linux, with a difference: the
stall hits while reading the prompt, before any tokens are streamed.

Environment

  • Control 0.1.50, engine dsv41 0.1.50 (same on 0.1.49.2), cuda13 build
  • WSL2 on Windows, 2x RTX 5090 32 GB, 173 GB RAM usable, PCIe-5 NVMe
  • DeepSeek-V4.1-Flash IST-DAS 2.25bpw; all 6 pack files sha256-verified
    against HuggingFace LFS oids (274.15 GB total), so not a corrupt download
  • launch: --context 256k --gpu-roles 0=main,1=helper --tp 2 (layer split
    auto), --tune quick, --no-api-key
  • DSpark is auto-disabled in this layout (routed experts 149 GB >> 64 GB VRAM)

Reproduce

  1. Launch as above.
  2. Send any request larger than a trivial probe — an agent context, or let
    --tune quick run its measurement (the stall below is its 4,994-token
    request).

Expected

The prompt reads (prefill runs) and tokens stream.

Actual

  • The stall is intermittent: a 31-token probe (max_tokens=1) once answered
    (1 token in 1 s, 476 tok/s), and an identical retry of a stalled request
    sometimes passes.
  • When it wedges: disk I/O = 0, ~1 busy CPU core; one GPU sits at ~83 W with
    no transfers, the other idle.
  • Not OOM: at the freeze the engine had reached ~119 GB used (its self-sized
    RAM store, 110.4 GB, full-coverage mode: 9444 hot experts / 86.4 GB read in
    at load), while 53 GB stayed available and 0 KB of swap was used.

Evidence

engine.log (tail):
[strata] 2026-10-25 10:22:35 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.49.2-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway)
ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.4 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192)
ds4: RAM store: up to 4218 slots of 11.4 MB (48.0 GB), policy 0, 8 reader threads, unbuffered reads
ds4: RAM store: 3962 of the profile's hottest experts read in (36.2 GB) in 4.9 s
ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free
ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free
ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads
maya ds4 serve: GEN <max_new> [keys] ; GENI <max_new> [keys] ; STOP, QUIT
ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB)
[strata] 2026-10-25 10:28:02 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.49.2-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway)
ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.4 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192)
ds4: RAM store: up to 4218 slots of 11.4 MB (48.0 GB), policy 0, 8 reader threads, unbuffered reads
ds4: RAM store: 3962 of the profile's hottest experts read in (36.2 GB) in 4.6 s
ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free
ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free
ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads
maya ds4 serve: GEN <max_new> [keys] ; GENI <max_new> [keys] ; STOP, QUIT
ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB)
[strata] 2026-10-25 14:57:17 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.50-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway)
ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.5 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192)
ds4: RAM store: 149.4 GB of RAM free after the GPU's weights: store sized 110.4 GB, not 143.5
ds4: RAM store: up to 9700 slots of 11.4 MB (110.4 GB), policy 0, 8 reader threads, unbuffered reads
ds4: RAM store: 9444 of the profile's hottest experts read in (86.4 GB) in 12.1 s
ds4: prompt path: the chunked pass from 96 tokens, windows of 16 below
ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free
ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free
ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads
maya ds4 serve: GEN <max_new> [keys] ; GENI <max_new> [keys] ; STOP, QUIT
ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB)
maya ds4 serve: prompt 31 tokens = 0 reused + 31 read in 842 ms (36.8 tok/s), 1 generated in 2 ms (477.63 tok/s); CPU lane 45.4% of the experts
[strata] 2026-10-25 15:08:07 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.50-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto
ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers)
ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway)
ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.2 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192)
ds4: RAM store: 149.1 GB of RAM free after the GPU's weights: store sized 110.1 GB, not 143.2
ds4: RAM store: up to 9672 slots of 11.4 MB (110.1 GB), policy 0, 8 reader threads, unbuffered reads
ds4: RAM store: 9416 of the profile's hottest experts read in (86.1 GB) in 9.9 s
ds4: prompt path: the chunked pass from 96 tokens, windows of 16 below
ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free
ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free
ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads
maya ds4 serve: GEN <max_new> [keys] ; GENI <max_new> [keys] ; STOP, QUIT
ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB)

server.log (tail):
[strata] reading the prompt: 4,994 tokens, 60 s so far
[strata] reading the prompt: 4,994 tokens, 70 s so far
[strata] reading the prompt: 4,994 tokens, 80 s so far
[strata] the engine has said nothing for 90 s but is still working; it is not ended (the limit is engine_silence_s). If it is stuck, "engine_silence_s" can be set lower.
[strata] reading the prompt: 4,994 tokens, 90 s so far
[strata] reading the prompt: 4,994 tokens, 100 s so far
[strata] reading the prompt: 4,994 tokens, 110 s so far
[strata] reading the prompt: 4,994 tokens, 120 s so far
[strata] reading the prompt: 4,994 tokens, 130 s so far
[strata] reading the prompt: 4,994 tokens, 140 s so far
[strata] reading the prompt: 4,994 tokens, 150 s so far
[strata] reading the prompt: 4,994 tokens, 160 s so far
[strata] reading the prompt: 4,994 tokens, 170 s so far
[strata] reading the prompt: 4,994 tokens, 180 s so far
[strata] reading the prompt: 4,994 tokens, 190 s so far
[strata] reading the prompt: 4,994 tokens, 200 s so far
[strata] reading the prompt: 4,994 tokens, 210 s so far
[strata] reading the prompt: 4,994 tokens, 220 s so far
[strata] reading the prompt: 4,994 tokens, 230 s so far
[strata] reading the prompt: 4,994 tokens, 240 s so far
[strata] reading the prompt: 4,994 tokens, 250 s so far
[strata] reading the prompt: 4,994 tokens, 260 s so far
[strata] reading the prompt: 4,994 tokens, 270 s so far
[strata] reading the prompt: 4,994 tokens, 280 s so far
[strata] reading the prompt: 4,994 tokens, 290 s so far
[strata] reading the prompt: 4,994 tokens, 300 s so far
[strata] reading the prompt: 4,994 tokens, 310 s so far
[strata] reading the prompt: 4,994 tokens, 320 s so far
[strata] reading the prompt: 4,994 tokens, 330 s so far
[strata] reading the prompt: 4,994 tokens, 340 s so far
[strata] reading the prompt: 4,994 tokens, 350 s so far
[strata] reading the prompt: 4,994 tokens, 360 s so far
[strata] reading the prompt: 4,994 tokens, 370 s so far
[strata] reading the prompt: 4,994 tokens, 380 s so far
[strata] reading the prompt: 4,994 tokens, 390 s so far
[strata] the engine said nothing for 400 s during the request; the server ended the engine. The engine and the server lost step (issue #481; a very slow PC can raise "engine_silence_s" in the config, 0 = wait forever). If it happens again, please add the end of the engine log to github.com/Niko1221/Strata/issues/481. The next request starts the engine again. Its log: /home/user/.local/state/strata/launch/ist-das-2-25bpw-256k.engine.log
[strata] done: 0 tokens in 402 s (no speed) (error, cancel=False)

[strata] stopping (Ctrl+C again to end the engine at once) ...
[strata] stopped

Originally created by @tdiz on GitHub (Oct 25, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/4090 ## Problem Engine dsv41 wedges while "reading the prompt": the server keeps printing heartbeats ("N tokens, X s so far") but the engine outputs nothing, and the engine_silence watchdog ends the engine after 300-400 s (exit -9, "the engine and the server lost step"). The server's message asked us to add logs to #481; opening a new issue since #481 was closed in the Oct 13 housekeeping sweep. This looks like the same lost-step class on Linux, with a difference: the stall hits while reading the prompt, before any tokens are streamed. ## Environment - Control 0.1.50, engine dsv41 0.1.50 (same on 0.1.49.2), cuda13 build - WSL2 on Windows, 2x RTX 5090 32 GB, 173 GB RAM usable, PCIe-5 NVMe - DeepSeek-V4.1-Flash IST-DAS 2.25bpw; all 6 pack files sha256-verified against HuggingFace LFS oids (274.15 GB total), so not a corrupt download - launch: --context 256k --gpu-roles 0=main,1=helper --tp 2 (layer split auto), --tune quick, --no-api-key - DSpark is auto-disabled in this layout (routed experts 149 GB >> 64 GB VRAM) ## Reproduce 1. Launch as above. 2. Send any request larger than a trivial probe — an agent context, or let --tune quick run its measurement (the stall below is its 4,994-token request). ## Expected The prompt reads (prefill runs) and tokens stream. ## Actual - The stall is intermittent: a 31-token probe (max_tokens=1) once answered (1 token in 1 s, 476 tok/s), and an identical retry of a stalled request sometimes passes. - When it wedges: disk I/O = 0, ~1 busy CPU core; one GPU sits at ~83 W with no transfers, the other idle. - Not OOM: at the freeze the engine had reached ~119 GB used (its self-sized RAM store, 110.4 GB, full-coverage mode: 9444 hot experts / 86.4 GB read in at load), while 53 GB stayed available and 0 KB of swap was used. ## Evidence **engine.log (tail):** [strata] 2026-10-25 10:22:35 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.49.2-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway) ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.4 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192) ds4: RAM store: up to 4218 slots of 11.4 MB (48.0 GB), policy 0, 8 reader threads, unbuffered reads ds4: RAM store: 3962 of the profile's hottest experts read in (36.2 GB) in 4.9 s ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB) [strata] 2026-10-25 10:28:02 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.49.2-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway) ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.4 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192) ds4: RAM store: up to 4218 slots of 11.4 MB (48.0 GB), policy 0, 8 reader threads, unbuffered reads ds4: RAM store: 3962 of the profile's hottest experts read in (36.2 GB) in 4.6 s ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB) [strata] 2026-10-25 14:57:17 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.50-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway) ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.5 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192) ds4: RAM store: 149.4 GB of RAM free after the GPU's weights: store sized 110.4 GB, not 143.5 ds4: RAM store: up to 9700 slots of 11.4 MB (110.4 GB), policy 0, 8 reader threads, unbuffered reads ds4: RAM store: 9444 of the profile's hottest experts read in (86.4 GB) in 12.1 s ds4: prompt path: the chunked pass from 96 tokens, windows of 16 below ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB) maya ds4 serve: prompt 31 tokens = 0 reused + 31 read in 842 ms (36.8 tok/s), 1 generated in 2 ms (477.63 tok/s); CPU lane 45.4% of the experts [strata] 2026-10-25 15:08:07 engine started: /home/user/.local/share/strata/install/engine-dsv41/0.1.50-linux-x86_64-cuda-cuda13/strata-dsv41 --serve --pack /home/user/n8n-install/storage-models/strata/packs/deepseek-v4.1-flash-ist-das-2.25bpw --max-context 262144 --eos 1 --dspark auto --dspark-conf 0.65 --tp 2 --layer-split auto ds4: tensor parallel 2 -> 1: the experts' 256-value blocks split n_ff 2304 no other way (each GPU its own layers) ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (64 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway) ds4: the experts VRAM leaves over (~97.6 GB) are read in place from the model's files (--mmap-experts off copies them into RAM) (150.2 GB of RAM free to keep them: the most-routed 0.0 GB read ahead; prompts in chunks of 8192) ds4: RAM store: 149.1 GB of RAM free after the GPU's weights: store sized 110.1 GB, not 143.2 ds4: RAM store: up to 9672 slots of 11.4 MB (110.1 GB), policy 0, 8 reader threads, unbuffered reads ds4: RAM store: 9416 of the profile's hottest experts read in (86.1 GB) in 9.9 s ds4: prompt path: the chunked pass from 96 tokens, windows of 16 below ds4: CUDA0 layers [0, 19]: weights 2.81 GB, experts 25.91 GB (2703 of 7680 in VRAM), caches 0.15 GB, 582 MiB free ds4: CUDA1 layers [20, 39] + head: weights 3.05 GB, experts 25.89 GB (2585 of 7680 in VRAM), caches 0.10 GB, 586 MiB free ds4: 10072 routed experts on the CPU lane (98.0 GB, in place in the model's files), 12 threads maya ds4 serve: GEN <max_new> [keys] <ids>; GENI <max_new> [keys] <pictures> <ids>; STOP, QUIT ds4 slots: folder /home/user/.local/state/strata/launch/ds4-slots: 0 conversation(s) kept from earlier runs (0.00 GB) **server.log (tail):** [strata] reading the prompt: 4,994 tokens, 60 s so far [strata] reading the prompt: 4,994 tokens, 70 s so far [strata] reading the prompt: 4,994 tokens, 80 s so far [strata] the engine has said nothing for 90 s but is still working; it is not ended (the limit is engine_silence_s). If it is stuck, "engine_silence_s" can be set lower. [strata] reading the prompt: 4,994 tokens, 90 s so far [strata] reading the prompt: 4,994 tokens, 100 s so far [strata] reading the prompt: 4,994 tokens, 110 s so far [strata] reading the prompt: 4,994 tokens, 120 s so far [strata] reading the prompt: 4,994 tokens, 130 s so far [strata] reading the prompt: 4,994 tokens, 140 s so far [strata] reading the prompt: 4,994 tokens, 150 s so far [strata] reading the prompt: 4,994 tokens, 160 s so far [strata] reading the prompt: 4,994 tokens, 170 s so far [strata] reading the prompt: 4,994 tokens, 180 s so far [strata] reading the prompt: 4,994 tokens, 190 s so far [strata] reading the prompt: 4,994 tokens, 200 s so far [strata] reading the prompt: 4,994 tokens, 210 s so far [strata] reading the prompt: 4,994 tokens, 220 s so far [strata] reading the prompt: 4,994 tokens, 230 s so far [strata] reading the prompt: 4,994 tokens, 240 s so far [strata] reading the prompt: 4,994 tokens, 250 s so far [strata] reading the prompt: 4,994 tokens, 260 s so far [strata] reading the prompt: 4,994 tokens, 270 s so far [strata] reading the prompt: 4,994 tokens, 280 s so far [strata] reading the prompt: 4,994 tokens, 290 s so far [strata] reading the prompt: 4,994 tokens, 300 s so far [strata] reading the prompt: 4,994 tokens, 310 s so far [strata] reading the prompt: 4,994 tokens, 320 s so far [strata] reading the prompt: 4,994 tokens, 330 s so far [strata] reading the prompt: 4,994 tokens, 340 s so far [strata] reading the prompt: 4,994 tokens, 350 s so far [strata] reading the prompt: 4,994 tokens, 360 s so far [strata] reading the prompt: 4,994 tokens, 370 s so far [strata] reading the prompt: 4,994 tokens, 380 s so far [strata] reading the prompt: 4,994 tokens, 390 s so far [strata] the engine said nothing for 400 s during the request; the server ended the engine. The engine and the server lost step (issue #481; a very slow PC can raise "engine_silence_s" in the config, 0 = wait forever). If it happens again, please add the end of the engine log to github.com/Niko1221/Strata/issues/481. The next request starts the engine again. Its log: /home/user/.local/state/strata/launch/ist-das-2-25bpw-256k.engine.log [strata] done: 0 tokens in 402 s (no speed) (error, cancel=False) [strata] stopping (Ctrl+C again to end the engine at once) ... [strata] stopped
Author
Owner

@github-actions[bot] commented on GitHub (Oct 25, 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".

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:6397730165 --> @github-actions[bot] commented on GitHub (Oct 25, 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". 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 25, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6397768329 --> @github-actions[bot] commented on GitHub (Oct 25, 2026): Thanks, this follows the format now.
Author
Owner

@Anemone95 commented on GitHub (Oct 26, 2026):

The same stall reproduces on every chunked prompt here, on native Linux and with a different GPU:

  • 2x H100 80GB (NVLink), driver 580.126.09, CUDA 13.0, Ubuntu 24.04 (container). The engine is built from
    7dd5cf18e (0.1.49.2).
  • IST-DAS-2.25bpw, tensor parallel 2 -> 1 (layers 0-18 plus the drafter on GPU 0, 19-39 plus the head on
    GPU 1). Every expert is in VRAM except 274.
  • A fresh 243-token prompt already stalls. GPU 1 shows 100% at about 128 W (a spinning wait kernel), GPU 0 shows
    0%, and one engine thread is busy. A 102,045-token prompt was ended by the watchdog after 955 s.
    --prefill-chunk 0 (windows) works, at about 135 tok/s.

Temporary prints showed both device threads stopped inside their first cublasSgemm (hc_mix_chunk):

  • Device 1 had already queued xfer_get for the hand-off from device 0.
  • Device 0 had queued only layer 0's Engram work.

Why the cuBLAS call blocks behind the spinning kernel is inferred, not confirmed.

Polling the hand-off and acknowledgement flags on the host before queueing the device-side waits removed the
stall here. After that change:

  • Prompts read at 729-1,410 tok/s (1.6K to 35K tokens).
  • A 102,045-token needle-in-a-haystack read in 65.4 s, and a 916,468-token one in 707.8 s. Both answers were
    correct.
  • Decode is unchanged (66-105 tok/s).

Draft PR: #4211. It was not tested under WSL2 or on RTX 5090s.

<!-- gh-comment-id:6414405071 --> @Anemone95 commented on GitHub (Oct 26, 2026): The same stall reproduces on every chunked prompt here, on native Linux and with a different GPU: - 2x H100 80GB (NVLink), driver 580.126.09, CUDA 13.0, Ubuntu 24.04 (container). The engine is built from 7dd5cf18e (0.1.49.2). - IST-DAS-2.25bpw, `tensor parallel 2 -> 1` (layers 0-18 plus the drafter on GPU 0, 19-39 plus the head on GPU 1). Every expert is in VRAM except 274. - A fresh 243-token prompt already stalls. GPU 1 shows 100% at about 128 W (a spinning wait kernel), GPU 0 shows 0%, and one engine thread is busy. A 102,045-token prompt was ended by the watchdog after 955 s. `--prefill-chunk 0` (windows) works, at about 135 tok/s. Temporary prints showed both device threads stopped inside their first `cublasSgemm` (`hc_mix_chunk`): - Device 1 had already queued `xfer_get` for the hand-off from device 0. - Device 0 had queued only layer 0's Engram work. Why the cuBLAS call blocks behind the spinning kernel is inferred, not confirmed. Polling the hand-off and acknowledgement flags on the host before queueing the device-side waits removed the stall here. After that change: - Prompts read at 729-1,410 tok/s (1.6K to 35K tokens). - A 102,045-token needle-in-a-haystack read in 65.4 s, and a 916,468-token one in 707.8 s. Both answers were correct. - Decode is unchanged (66-105 tok/s). Draft PR: #4211. It was not tested under WSL2 or on RTX 5090s.
Author
Owner

@Niko1221 commented on GitHub (Oct 29, 2026):

Thank you. We ported the fix from PR #4211 with its author kept: the host now waits for the hand-off flag before it queues the device-side wait, so the kernel finds the flag up. It is in our branch for the next update (0.2.8), but we could not reproduce the deadlock: it needs an H100 or 5090 pair. On two A6000 over PCIe main does not stall, and the patch gives the same prompt speed within about 2% (1.5K, 8K, 35K) and the same answers.

One cost: the host wait has no timeout, so a flag that never comes is now a silent host spin instead of a silent device spin. This stays open until someone with an H100 or 5090 pair confirms.

<!-- gh-comment-id:6492066436 --> @Niko1221 commented on GitHub (Oct 29, 2026): Thank you. We ported the fix from PR #4211 with its author kept: the host now waits for the hand-off flag before it queues the device-side wait, so the kernel finds the flag up. It is in our branch for the next update (0.2.8), but we could not reproduce the deadlock: it needs an H100 or 5090 pair. On two A6000 over PCIe main does not stall, and the patch gives the same prompt speed within about 2% (1.5K, 8K, 35K) and the same answers. One cost: the host wait has no timeout, so a flag that never comes is now a silent host spin instead of a silent device spin. This stays open until someone with an H100 or 5090 pair confirms.
Author
Owner

@Niko1221 commented on GitHub (Nov 5, 2026):

Thanks for taking the time to report this.

Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6659970596 --> @Niko1221 commented on GitHub (Nov 5, 2026): Thanks for taking the time to report this. Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
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#1783
No description provided.