mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1553] IQ3_XXS tier: engine + server exit silently on ~161k-token prompts at --max-context 262144 (IQ3_S / UD-IQ4_XS unaffected on the same box) #619
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#619
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 @noahark on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1553
Summary
The IQ3_XXS tier dies silently — the engine process and the
serve.serverwrapper both exit with no diagnostic anywhere — when a request arrives with a ~161k-token prompt, with--max-context 262144(inside the model's trained range, no rope scaling). Reproduced 2/2 with full engine restarts between attempts. The other two tiers on the same box, same--max-context, same request bodies, are unaffected — including one that shares the pack + 2-shard GSQ-RCO layout.Environment
strata-windows-x64-cuda12.zip--model IQ3_XXS --family qwen --vision gpu --context 131072); for this test only--max-contextwas raised to 262144 in the tier args. Full engine args:Repro
/v1/modelsreportsn_ctx: 262144; load is normal (experts 39.97 GiB into RAM, GPU expert cache 14,504 experts / 23.54 GiB — VRAM sits at ~31.7 of 32 GB after load).strata.exeand theserve.serverwrapper process are gone.Threshold bracket
Ascending ladder on a fresh instance — all of these pass: 47,975 / 96,545 / 129,119 / 151,478 prompt tokens (decode 53.4 / 69.4 / 73.3 / 61.2 tok/s). The failure lands between 151,478 and 161,633.
Diagnostics — there are none
Isolation on the same box (same
--max-context 262144, same request bodies)experts.bin+ 2-shard GSQ-RCO (--native+--ple-gguf)experts.bin+ 2-shard GSQ-RCO (--native+--ple-gguf)--nativeonly)So it is not the pack path per se (IQ3_S packs and runs 258k fine), not the 2-shard GSQ-RCO mechanism (IQ3_S uses the same layout), and not the prompt size per se (UD/S serve the identical body). What remains specific to the failing tier from the outside: the oldest pack build (2026-10-03, created by the then-current setup version — the other two packs are two days newer), and/or the XXS tier's VRAM headroom at 262144 (it sits closest to the 32 GB ceiling; a prompt-scaled buffer could tip it over without an OOM message reaching the logs).
Happy to rerun with an instrumented build, a freshly rebuilt IQ3_XXS pack,
--kv q4_0, or a capped--expert-cacheif any of those would discriminate.(Bench protocol: the synthetic-doc summary workload from the community bench kit — 400-token generation,
reasoning_budget_tokens400, seed 42, server-side timings. Raw runs available on request.)@noahark commented on GitHub (Oct 8, 2026):
Root cause found — request-time VRAM exhaustion, and the engine's own startup warning points straight at it.
The tier's engine log (
strata-iq3_xxs.log— the per-tier stderr log the wrapper keeps) from the crash sessions shows the whole picture at load:The dying request leaves zero lines in the engine log — the process exits before any per-request output, with nothing on stderr and no WER record.
Minimal knob repro on the failing tier (every other arg unchanged; single cold ~161k-token request fired right after load):
--vram-reserve-mib--vision gpuwrites)So
--vram-reserve-mib 2000(or a smaller--prefillchunk) is a working workaround for this tier at 262144.Two things look fix-worthy from the outside:
--expert-cache autoat--max-context 262144fills the card to ~450 MiB free, which the deep-prompt path then needs back. Notably, IQ3_S and UD-IQ4_XS on this same box also sit at 444–451 MiB free and survive 258k prompts, so the floor is not conservative enough specifically for this tier's prompt-path demand (XXS here: 14,504-slot cache, prompt-path borrow 2,619 slots / 4.25 GiB). Sizing the auto reserve by the prompt-path borrow, or scaling it with--max-context, would prevent the class rather than warn about it.(The wrapper side stays equally silent, for what it's worth — the client just gets ECONNRESET and the port is gone.)
Happy to test any candidate fix against this repro (2/2 on the default config, passes with the reserve raised).
@noahark commented on GitHub (Oct 8, 2026):
Correction + follow-up: the "root cause" in my previous comment over-claimed, and the crash has since stopped reproducing. Status below.
What still stands:
--vram-reserve-mib 700the ~161k prompt killed the tier 2/2 (two full restarts, 18:55 and 19:07 local); at--vram-reserve-mib 2000a 162,632-token prompt passes. So the failure is strongly correlated with how full the card is —--vram-reserve-mib 2000remains a verified-safe configuration for IQ3_XXS @ 262144 on this box.--max-context.What I have to walk back: the previous comment asserted the mechanism (request-time VRAM exhaustion inside the engine). The failing allocation and the death order (engine vs python wrapper — the wrapper ties the engine to a kill-on-close job object, so either dying first looks the same from the client) were never actually pinned, and tonight the crash refuses to reproduce:
The 21:02/21:10 runs are byte-identical to the crash runs where it matters: the load banner prints the same numbers (auto 24.41 GiB free → 14,504 slots / 23.54 GiB, prompt path borrows 2,619 slots / 4.25 GiB, 451 MiB free), the request body is the same 161,633 tokens, the ordering is the same. The crash condition existed in a ~13-minute window and is gone.
For the next occurrence I now have a rig ready: a monitor holding pre-opened handles on wrapper/engine/vision to record the death order and exit codes,
STRATA_TRACE=1, client wall-clock, and the per-tier engine stderr log (which is where a per-request trace lands). For the record, the trace of a healthy 161,633-token request on this tier:Two questions for anyone who knows the codebase better than I do:
Not changing the report's practical takeaway: 131072 (the shipped default) never showed this, and 262144 on this tier is safe with the reserve raised.
@noahark commented on GitHub (Oct 8, 2026):
Follow-up on the workaround sample size: with
--vram-reserve-mib 2000(all other args unchanged,--max-context 262144), the IQ3_XXS tier has now passed the full ascending ladder on a fresh instance, withSTRATA_TRACE=1on and a pre-held-handle monitor watching wrapper/engine/vision (no deaths recorded):So the reserve-2000 configuration now has: one isolated 162,632-token pass (earlier) plus this full-depth ladder — zero failures, zero decay through 258k. At 2000 the load banner reads 13,697 cache slots / 22.27 GiB (vs 14,504 / 23.54 at 700), the prompt-path borrow is unchanged (2,591 slots / 4.25 GiB), and free VRAM after load is 1,754 MiB (vs 451).
The open question from my last comment stands unchanged (what made 700 fail 2/2 in that 18:55-19:07 window and pass 4/4 later — still not reproduced since, monitor-ready if it returns). This just upgrades the practical guidance from "passed once" to "passed a full 258k ladder" for anyone hitting the same shape on a 32 GB card.
@noahark commented on GitHub (Oct 8, 2026):
One more pass at reproduction, this time attacking the precondition space — result: still zero reproductions, but the card's margin is now measured.
All rounds at
--vram-reserve-mib 700(the historically failing value) +--max-context 262144,STRATA_TRACE=1, pre-held-handle monitor on wrapper/engine/vision, 1 Hznvidia-smisampling, per-round log archival:The UD-predecessor hypothesis is now excluded: that exact sequence completes the full 258k ladder. Tonight's totals at reserve 700: the 2 historical crashes (18:55/19:07) followed by 9 consecutive passes at the 161k class and two complete full-depth ladders — under every protocol variant (direct, after-warm, ascending) and every predecessor state we could reconstruct.
The VRAM margin at the default reserve, for what it's worth: with everything loaded the engine reports 451 MiB free, and the 1 Hz sampler caught deep-prompt peaks at 32,373 MiB of 32,768 used (~395 MiB free). So at 700 the tier routinely operates within ~400 MiB of the cliff during deep prompts and normally does not step over — whatever pushed it over twice in that early window is still unidentified (and not any precondition we could reconstruct).
Practical reading stands: at 131072 (the shipped default) this has never been seen; at 262144 the default reserve leaves ~400 MiB of headroom at peak and works in practice, but
--vram-reserve-mib 2000moves the margin to ~2.9 GiB for a ~5% smaller expert cache (13,697 vs 14,504 slots) — a reasonable belt-and-suspenders for anyone running 32 GB cards at full context. The capture rig stays armed locally; if it ever fires, the death order and exit codes will land in this issue same day.@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.