mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#1783
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @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
against HuggingFace LFS oids (274.15 GB total), so not a corrupt download
auto), --tune quick, --no-api-key
Reproduce
--tune quick run its measurement (the stall below is its 4,994-token
request).
Expected
The prompt reads (prefill runs) and tokens stream.
Actual
(1 token in 1 s, 476 tok/s), and an identical retry of a stalled request
sometimes passes.
no transfers, the other idle.
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
@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:
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
@github-actions[bot] commented on GitHub (Oct 25, 2026):
Thanks, this follows the format now.
@Anemone95 commented on GitHub (Oct 26, 2026):
The same stall reproduces on every chunked prompt here, on native Linux and with a different GPU:
7dd5cf18e(0.1.49.2).tensor parallel 2 -> 1(layers 0-18 plus the drafter on GPU 0, 19-39 plus the head onGPU 1). Every expert is in VRAM except 274.
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):xfer_getfor the hand-off from device 0.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:
correct.
Draft PR: #4211. It was not tested under WSL2 or on RTX 5090s.
@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.
@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.