mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #620] IQ3_S: "native head upload: out of memory" at startup when the desktop runs on a second GPU (more free VRAM on the card) #293
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#293
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 @gu-feng on GitHub (Oct 3, 2026).
<html>Original GitHub issue: https://github.com/Niko1221/Strata/issues/620
Environment
BUILD.json: version 0.1.38, source "release", cuda 13.0, archs include 120), Windows 11 Pro build 26200Model and args
IQ3_S (GSQ-RCO):
Notably without
--kv-resident— a config regeneration had dropped it, so the full 131072-cell KV lived in VRAM.Symptom
Startup dies right after the arena load:
The
experimental native Q5_K head, 521472000 bytesline never prints — the cudaMalloc of the head (521 MB) fails, and the process exits before ready.The strange part
It reproduces when the card has more free VRAM, not less:
With
--kv-resident 32768added (the KV streamed to pinned RAM, ~2 GB of VRAM freed), the same start with the display on the iGPU succeeds:So the head's allocation OOMs only in the combination with more free VRAM and no KV streaming — which reads like the ~521 MiB head is not accounted for by the expert-cache sizing in this configuration ("THE HEAD BEFORE THE CACHE" from 0.1.36's notes says the head is loaded before the sizing, but on this card it OOMs anyway).
Happy to attach the full
</html>strata-iq3_s.logof the failing start or test any candidate fix.@Niko1221 commented on GitHub (Oct 4, 2026):
Fixed in 0.1.39. WDDM refused the head's allocation after the expert arena registered its ~45 GiB of host pages, even with GiBs of VRAM free. The native head (and the logits buffer) are now allocated before that registration, as the draft layer already was. They are still allocated before the expert cache is sized, so the slots are unchanged. A failure there now prints the free and total VRAM. About the lost
--kv-resident: setup turns KV streaming on from a 64K context only when the RAM holds the model plus the KV cache's RAM (with IQ3_S at 128K that is ~65 GB, just above a 64 GB PC), and it did that without a word. It now says so and points to--kv-streaming on. If 0.1.39 still fails with the display on the iGPU, please attach the fullstrata-iq3_s.logof that start.