mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2192] Crash sometimes serving IQ3_S #876
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#876
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 @GarryLai on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2192
Crash during output when serving IQ3_S
dumps:
strata-stall-21128.dmp
strata-stall-28072.dmp
logs:
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks @GarryLai, the two dumps were enough to see where it stops. Your engine is the 0.1.43 release zip (the exe's build stamp matches it).
Both dumps show the same stack. The host thread is inside the CUDA launch of a batch window graph (
Verifier::run_slot_rows, called from the--batchstep), before its per-layer wait. That is why the stall report says stage "idle". All 17 pool workers are asleep, and the watchdog ends the engine after 60 s. Both times it is the first batch window right aftercaptured the batch window over slots 0.The log points at VRAM on the second card:
--vram-reserve-mib 1212).Under WDDM a full card does not fail an allocation, it pages. A page-in while the other card's graph spins on a host flag can stall the request for good, which matches both dumps.
What to change now: give both cards more room, for example
--vram-reserve-mib 1300(the reserve applies to both cards unless--vram-reserve-later-mibsets the second one). Or lower--max-context(262144 with--batch 4costs a lot of VRAM on 22 GB cards). With--visionalso on the first card, 700 MiB is too little.In 0.1.44 (out now) the start-up check covers each card of a layer split. A card below 512 MiB gets its own LOW line with a
--vram-reserve-later-mibvalue. If it still stalls with ~1 GB free on both cards, please attach the new dumps and the engine log.@ylzbj1-stack commented on GitHub (Oct 14, 2026):
The new per-card check fired on a different rig, and the suggested value is exact
Same shape as the 2080 Ti case, different machine. Qwen3.8-Flash-Next GSQ-RCO abliterated IQ3_S, 2x RTX 3080 20 GB, layer split
auto(K=25: CUDA0 layers 0-24, CUDA1 25-47, one hand-off per window), Xeon E5-2696 v3 (18C/36T, AVX-2), 128 GB RAM, Windows 10 19045 / WDDM, engine 0.1.44."parallel": 1,--batch-groups auto(no--batch),--max-context 262144 --kv int8 --kv-resident 32768 --prefill auto --spec 4 --spec-min-p 0.5 --expert-cache auto --vram-reserve-mib 700 --vision.What 0.1.44 printed
CUDA0 passes, the new per-card line fires on CUDA1:
Two things that may be useful:
reserve + 512 - free=700 + 512 - 528= 684, below the 700 already set. So CUDA0 correctly stayed quiet at 528 MiB.700 + 768 - 337 = 1131, and after setting it CUDA1 reads 769 MiB — the one-for-one assumption (one MiB more reserve, one MiB more free) held to the MiB.What taking the suggestion costs
python tools/strata_bench.pyagainst the same running engine, medians of 3 runs (9 for chat).This is not a clean A/B: the "before" run is 0.1.43.1, the "after" is 0.1.44 plus the reserve. The 0.1.44 notes claim no speed change for this config, and the direction matches the smaller cache, but I cannot separate the two.
The prefill rows are the only ones with ranges tight enough to read: both days' ranges are disjoint and all four move the same way, so ~1.5-2% on prefill is real, and it is what 431 MiB (209 slots) leaving the VRAM tier should cost.
Decode moves in opposite directions on the two tests (+8.4% chat, -5.8% agent) with heavily overlapping ranges, so I make no claim about decode either way. My earlier expectation of a 1.5-2% decode cost is not supported by these numbers.
Routing quality did not move at all (98.4% of the routed mass either way), so the 209 slots that left are the least-routed ones.
What I have not proven
I have not reproduced a stall since, so I am not claiming this config is fixed. My stall reports are #1603 (2x RTX 3080 20 GB, WDDM,
parallel: 1andparallel: 2, two long-context sessions, on 0.1.41/0.1.42) — a different path from the--batchwindow in the two dumps here, though the mechanism you describe fits its shape (request never returns,running: 0 / queued: 0, watchdog never sees it).What I can say: this rig sat inside the band the check guards (337 MiB on the later card, below the 512 threshold), the reserve is applied, the warning is gone, and the cost is the ~1.6% above. If it hangs again I will attach the engine log and the dump here.
@jds1-ai commented on GitHub (Oct 14, 2026):
Linux repro of the per-card check on a two-card NVIDIA pair, at the reporter's quant and flags, with a 0.1.43.1 control and a
--visionarm. It adds to ylzbj1-stack's 3080 result above: same one-for-one rule, smaller cards, no WDDM. 2x RTX 5060 Ti 16 GB (both Gen3 x8), CUDA 13.3, driver 595.91.07, IQ3_S,--layer-split auto --max-context 262144 --kv int8 --kv-resident 32768 --vram-reserve-mib 700 --batch 4, MTP spec 4. Freshsetup.sh --buildper version. Requests sent 4 at a time (one batch at concurrency 4), plus a long prompt per start. Five starts, all rc=0, no Xid, every request returned tokens, no watchdog, no stall, no allocation error.--vram-reserve-mib 896)--vram-reserve-later-mib 1268--vram-reserve-later-mib 1268--vision(GPU encoder)--vision+--vram-reserve-later-mib 1269Observations.
The pre-fix build hides the later card. On 0.1.43.1 CUDA1 sat at 124 MiB through the window captures and nothing was printed about it. 0.1.44 prints the CUDA1 line and flags it at 200 MiB.
The suggested value lands to the MiB, twice.
later_reserve + 768 - freegives 700 + 768 - 200 = 1268 and 700 + 768 - 199 = 1269; the green starts then read 768 and 769 MiB on CUDA1.No stall on Linux with CUDA1 at 122 MiB. Both the 0.1.43.1 and 0.1.44 batch windows finished with CUDA1 that low. This is one start per version and four requests each; it is consistent with the WDDM paging reading in the commit message but does not test it.
The suggested reserve has a cost on a 16 GB card. CUDA1 loses 276 and 279 expert slots in the two green starts (about 8.5%), and aggregate throughput read 7.3% and 4.1% lower, one start each, so the throughput figure is not resolved beyond "lower".
The CUDA0 line is a separate knob.
--vram-reserve-later-mibleaves the first card alone; CUDA0 stayed at 324 MiB with its own LOW line asking for--vram-reserve-mib 896on every start. A user following the new line fixes CUDA1 only.--visionwith the GPU encoder does not move the CUDA1 reading. The encoder held 1268 MiB on CUDA0 and a 128 MiB context on CUDA1 before the engine loaded; the planner moved one layer off CUDA0 (K 23 to 22) and the CUDA1 line and suggestion changed by 1 MiB. The expert cache is carved from what is free after the encoder is resident, so the LOW figure measures the headroom the carve left, not the encoder. A text-only workload with the encoder resident read 10% lower aggregate than without it. No image request was sent, so an allocation during an actual encode is untested here.Not tested: Windows, a 2080 Ti pair, and an encode at 1024 image tokens.
@Niko1221 commented on GitHub (Oct 19, 2026):
Thanks for the report. This is fixed in 0.2.0-beta (or an earlier release), and we're closing it as part of the tracker reset for 0.2.0-beta.
If it still happens on 0.2.0-beta, add the area prefix to the title ([Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]), put the Strata version and your hardware in the issue form fields, and comment
/reopen. A check runs and reopens it.--adapt-async 1beside slots) #3576