mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4458] [Engine] q36 on 0.1.52: 4.40 GiB of weights placed in VRAM at load; a 12 GB card cannot start 64K without STRATA_EMBED_VRAM=0 #1991
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#1991
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 @jianqiangcui996-arch on GitHub (Oct 28, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4458
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Terminal (strata launch, 0.2.7 / Terminal 0.1.53, engine 0.1.52-windows-x86_64-cuda-cuda13)
What happened
Same model, same --max-context 65536 --mtp 2, same PC (RTX 3060 12 GB, 64 GB DDR4):
0.1.44.1 loads 2.62 GiB on the GPU, starts fine, 3.23 GiB of VRAM free, hybrid mode puts 18 of 256 experts per layer in VRAM (1.32 GiB) + 1.10 GiB staging.
0.1.52 loads 4.40 GiB on the GPU and refuses to start:
strata-q36: context 65536 cells, prompt chunk 2048, MTP block loaded, 1.21 GiB of VRAM free
strata-q36: not enough VRAM left for the hybrid experts' buffers and slots
(1256 MiB needed, 1240 MiB free after the weights, the context and the sessions):
use fewer slots ("parallel" / --batch), a shorter --max-context
The suggested knobs do not help: --parallel 1 leaves the 1256 MiB need unchanged, --set batch=64 is not applied at all (identical numbers), and --kv q4_0 / STRATA_KV_GROW=1 change nothing for q36 — consistent with #3303 (--kv/--kv-resident not parsed on this architecture).
What does start it: STRATA_EMBED_VRAM=0 (found by string-scanning the binary; not in the docs I could find). It frees only ~0.08 GiB — just enough to clear the 1256 MiB bar — and the engine then runs with 0 of 256 experts in VRAM (old build: 18). Decode is still usable (50.9 tok/s greedy, 56.9 with drafting restored per #3354), but the expert cache the 0.2.7 router affinity wants to exploit is starved by the weight placement itself.
Questions:
Is the 2.62 → 4.40 GiB shift intended for q36 (embeddings/head/what exactly), and is it supposed to be conditional on free VRAM?
Should STRATA_EMBED_VRAM be documented, or the 12 GB budget path fall back automatically instead of exiting?
Reproduce
strata launch --model-path
--model UD-Q4_K_XL --family qwen36 --context 64k --vision off
--port 8091 --access local --yes --no-tui
on a 12 GB card + 64 GB RAM. Engine log: .../Strata/launch/.engine.log.
Not tested: whether the same shift happens with Q6/Q8 (Q6 at 64K presumably worse — more pinned RAM, same weight shift), other 12 GB cards, CUDA 12 package.
@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.