[GH-ISSUE #3719] [Engine] expert-cache auto leaves 0 slots on a 61 GB unified-memory APU (Linux, gfx1150): the default install cannot start #1549

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

Originally created by @Bunkmil on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3719

Area

[Engine] (speed, kernels, models, the server and API)

Desktop app, Terminal or source?

Source (START-HERE.bat, setup.sh or a build)

What happened

On a unified-memory AMD APU, --expert-cache auto as written by setup.py sizes the cache from zero bytes and the engine then refuses to start, so a default install of Qwen3.8-Flash-Next IQ3_XXS cannot be started at all without editing the config by hand. Measured today on 0.2.2 / engine 0.1.47.

The 61 GB box, IQ3_XXS (43 GB of experts), 32768 context, from strata-iq3_xxs.json exactly as setup.py wrote it:

strata generate: loaded 39.97 GiB at 1.16 GiB/s
strata generate: expert cache auto: this GPU shares system RAM: 13.30 GiB free on the GPU, but the OS has
  7.10 GiB available; 8.00 GiB stay for the desktop, so the cache is sized from 0.00 GiB
strata generate: expert cache auto: 0 slots
strata generate: no VRAM is left for the expert cache: it needs at least 277 slots (615 MiB)
strata serve: verify: needs the profile-filled VRAM expert tier (--expert-cache N): with --expert-cache auto,
  no VRAM was left for it

The engine dies with exit 1. The UMA reserve (include/strata/core/uma_cache.hpp, uma_desktop_reserve_bytes() = 8 GiB or 8% of RAM) is doing what it says — the arena has already taken the host memory the sizer then reads as "the OS has 7.10 GiB available" — but the result is a default configuration that cannot run, whereas the same code on a discrete card (where the cache lives in VRAM and the arena in RAM) is fine. Refusing instead of being OOM-killed is an improvement over issue #2701's engine; being unable to start is not.

Smallest fix that would have worked for me: a floor on the auto size — the engine's own minimum is 277 slots (615 MiB) here — or setup.py writing that floor instead of auto for a UMA card whose RAM is close to the model's requirement.

Smallest steps or command that reproduce it

STRATA_EXPERIMENTAL_GFX1150=1 ./setup.sh --yes --family qwen --model IQ3_XXS \
  --context 32768 --vision cpu --data-dir <dir> --port 8081 --no-browser
# then start it, e.g. ./run-iq3_xxs.sh

Reproduction status

Reproduced locally

Strata version

Strata 0.2.2 · engine 0.1.47 (both built from source at 011c9e60, HIP, gfx1150)

Graphics card, memory and system

AMD Radeon 890M (gfx1150, Strix Point, Ryzen AI 9 HX 370) · 1.0 GB BIOS carve-out + 30.7 GB GTT out of 61 GB of RAM shared with the CPU · CachyOS, Linux 7.2 · system ROCm 10.1, hipBLASLt 1.4.1 (table tools/hip/gfx1150-hipblaslt-100401.txt)

Model, size and settings

Qwen3.8-Flash-Next IQ3_XXS (47.0 GB requirement, 43 GB of experts) · 32768 context · --kv int8 · --prefill auto --spec 4 --spec-min-p 0.5 · --vision with the CPU reader · --expert-cache auto as setup wrote it

Logs

The lines above are the whole failure. For comparison, the same install with --expert-cache 1536 set by hand (the only change to the config):

strata generate: expert cache: 2027 slots, 3.33 GiB of VRAM
strata generate: pre-filled 2027 of 2027 slots from the profile in 0.2 s (18196 MB/s); slot 0 verified
strata generate: cache policy PROFILE (ranked by routing frequency)
strata generate: 9767 MiB of VRAM free with everything loaded

and it runs: 15.5 tok/s decode (18.4 tok/s behind a 1785-token prompt), prompt 170 tok/s, expert-cache hit rate 59.5-68.2% on decode. On a 92 GB machine with 8192 slots (17.8 GiB) the same model and quantization reaches 23.1-24.8 tok/s (issue #2701), which is the expected shape: the cache is the whole difference here.

Two smaller things noticed in the same path, for whoever touches it:

  • The reserve now comes from uma_desktop_reserve_bytes() (8 GiB minimum) but the older warning on the neighbouring branch still prints "less 4 GiB for the OS".
  • A related thread exists for the app's Windows path (#3496, closed, "the expert arena registration leaves no VRAM for the expert cache") and for auto not reserving --batch slots (#3364) and reading free VRAM under WDDM (#3692); this one is the Linux/HIP, UMA-host-headroom case.
Originally created by @Bunkmil on GitHub (Oct 22, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3719 ### Area [Engine] (speed, kernels, models, the server and API) ### Desktop app, Terminal or source? Source (START-HERE.bat, setup.sh or a build) ### What happened On a unified-memory AMD APU, `--expert-cache auto` as written by `setup.py` sizes the cache from **zero** bytes and the engine then refuses to start, so a default install of Qwen3.8-Flash-Next IQ3_XXS cannot be started at all without editing the config by hand. Measured today on 0.2.2 / engine 0.1.47. The 61 GB box, IQ3_XXS (43 GB of experts), 32768 context, from `strata-iq3_xxs.json` exactly as `setup.py` wrote it: ``` strata generate: loaded 39.97 GiB at 1.16 GiB/s strata generate: expert cache auto: this GPU shares system RAM: 13.30 GiB free on the GPU, but the OS has 7.10 GiB available; 8.00 GiB stay for the desktop, so the cache is sized from 0.00 GiB strata generate: expert cache auto: 0 slots strata generate: no VRAM is left for the expert cache: it needs at least 277 slots (615 MiB) strata serve: verify: needs the profile-filled VRAM expert tier (--expert-cache N): with --expert-cache auto, no VRAM was left for it ``` The engine dies with exit 1. The UMA reserve (`include/strata/core/uma_cache.hpp`, `uma_desktop_reserve_bytes()` = 8 GiB or 8% of RAM) is doing what it says — the arena has already taken the host memory the sizer then reads as "the OS has 7.10 GiB available" — but the result is a default configuration that cannot run, whereas the same code on a discrete card (where the cache lives in VRAM and the arena in RAM) is fine. Refusing instead of being OOM-killed is an improvement over issue #2701's engine; being unable to start is not. Smallest fix that would have worked for me: a floor on the auto size — the engine's own minimum is 277 slots (615 MiB) here — or `setup.py` writing that floor instead of `auto` for a UMA card whose RAM is close to the model's requirement. ### Smallest steps or command that reproduce it ``` STRATA_EXPERIMENTAL_GFX1150=1 ./setup.sh --yes --family qwen --model IQ3_XXS \ --context 32768 --vision cpu --data-dir <dir> --port 8081 --no-browser # then start it, e.g. ./run-iq3_xxs.sh ``` ### Reproduction status Reproduced locally ### Strata version Strata 0.2.2 · engine 0.1.47 (both built from source at `011c9e60`, HIP, gfx1150) ### Graphics card, memory and system AMD Radeon 890M (gfx1150, Strix Point, Ryzen AI 9 HX 370) · 1.0 GB BIOS carve-out + 30.7 GB GTT out of 61 GB of RAM shared with the CPU · CachyOS, Linux 7.2 · system ROCm 10.1, hipBLASLt 1.4.1 (table `tools/hip/gfx1150-hipblaslt-100401.txt`) ### Model, size and settings Qwen3.8-Flash-Next IQ3_XXS (47.0 GB requirement, 43 GB of experts) · 32768 context · `--kv int8` · `--prefill auto --spec 4 --spec-min-p 0.5` · `--vision` with the CPU reader · `--expert-cache auto` as setup wrote it ### Logs The lines above are the whole failure. For comparison, the same install with `--expert-cache 1536` set by hand (the only change to the config): ``` strata generate: expert cache: 2027 slots, 3.33 GiB of VRAM strata generate: pre-filled 2027 of 2027 slots from the profile in 0.2 s (18196 MB/s); slot 0 verified strata generate: cache policy PROFILE (ranked by routing frequency) strata generate: 9767 MiB of VRAM free with everything loaded ``` and it runs: 15.5 tok/s decode (18.4 tok/s behind a 1785-token prompt), prompt 170 tok/s, expert-cache hit rate 59.5-68.2% on decode. On a 92 GB machine with 8192 slots (17.8 GiB) the same model and quantization reaches 23.1-24.8 tok/s (issue #2701), which is the expected shape: the cache is the whole difference here. Two smaller things noticed in the same path, for whoever touches it: - The reserve now comes from `uma_desktop_reserve_bytes()` (8 GiB minimum) but the older warning on the neighbouring branch still prints "less 4 GiB for the OS". - A related thread exists for the app's Windows path (#3496, closed, "the expert arena registration leaves no VRAM for the expert cache") and for `auto` not reserving `--batch` slots (#3364) and reading free VRAM under WDDM (#3692); this one is the Linux/HIP, UMA-host-headroom case.
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:6659656816 --> @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#1549
No description provided.