[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

Closed
opened 2026-11-04 01:55:50 +07:00 by bsakaguchi · 1 comment
Owner

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.

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 <folder with Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf> \ --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/<preset>.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.
Author
Owner

@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:

  1. Re-test on 0.2.11. It may already be fixed. Write down what you see.
  2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other].
  3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system.
  4. Comment /reopen. A check runs and either reopens the issue or lists what is still missing.

The rules are in CONTRIBUTING.md.

<!-- gh-comment-id:6660473182 --> @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: 1. Re-test on 0.2.11. It may already be fixed. Write down what you see. 2. Start the title with its area: [Engine], [GUI], [TUI], [Benchmark], [Docs] or [Other]. 3. Fill in the parts of the issue form: what happened, the Strata version, your graphics card, memory and system. 4. Comment `/reopen`. A check runs and either reopens the issue or lists what is still missing. The rules are in [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#1991
No description provided.