[GH-ISSUE #3496] [Engine] Windows Strix Halo: the expert arena registration leaves no VRAM for the expert cache #1431

Closed
opened 2026-11-04 01:51:13 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @seannee on GitHub (Oct 20, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3496

Area

GUI

Desktop app, Terminal or source?

Desktop app (0.2.1, bundled engine 0.1.46.1). I also ran the same model through the source route for comparison.

What happened

On this machine the desktop app is about a third slower than the same engine started from a source checkout, and most of that is in settings the app writes itself.

Machine: Ryzen AI Max+ 395 with the Radeon 8060S (gfx1151), 128 GB of unified memory, Windows 11 build 26300, Adrenalin 32.0.31041.1004, BIOS carve-out 32 GB. Model IQ3_S at 131072 context, int8 KV.

The app's generated config (%LOCALAPPDATA%\Strata\install\strata-iq3_s.json) comes out as:

--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5
--max-context 131072 --kv int8 --kv-resident 32768 --vision --pool-workers 25
--vram-reserve-mib 16343
env: {}

Measured through the app's own endpoint (/v1/chat/completions, difference of an 8-token and a 200-token answer): 30.5 tok/s.

Setting the model's "GPU memory for other apps (MiB)" to 0 gets the engine to expert cache 24576 slots, 46.84 GiB of VRAM and 38.0 tok/s, so roughly 25% of the gap is that 16 GB reserve.

The rest of it is STRATA_SH_STREAM=0 plus the opt-in gfx1151 prompt switches and --prefill auto:32768: with those, the source route reaches 45.8 tok/s on the same model and the same machine. Inside the app I could not deliver them at all:

  • putting them in the config's env does not survive: restoreNativeEnv() in host/server/native-settings.mjs drops every STRATA_[A-Z0-9_]+ key when settings are saved, so the key disappears from the file;
  • setting them before launching strata-desktop.exe does not reach the engine either, because the packaged host is spawned with installerEnvironment(...) rather than {...process.env}, so the engine never inherits them (the startup line still reports the 18 built-in switches, not the 19 you get when SH_STREAM is set).

So on an APU, where "VRAM" is the same LPDDR5X the model is running out of, the app both reserves 16 GB of it for nothing and blocks the single switch worth another 16% of decode.

Two things that would fix it, in the order I would value them:

  1. a field for engine environment variables / extra arguments on the native model settings page (the source route's JSON already carries env and args), so STRATA_SH_STREAM=0 and the prompt switches can be set without leaving the app;
  2. a lower default --vram-reserve-mib on unified-memory APUs, or at least a hint next to that field saying it costs expert-cache slots one for one.

Reproduction status

Measured locally, and it comes back on every model load with the app's defaults.

Strata version

App 0.2.1 with the bundled engine 0.1.46.1 (Windows, hip-rdna3 package).

Graphics card, memory and system

Radeon 8060S iGPU in a Ryzen AI Max+ 395 (gfx1151), 128 GB LPDDR5X with a 32 GB BIOS carve-out, Windows 11 build 26300, Adrenalin 32.0.31041.1004.

Model, size and settings

IQ3_S, 131072 context, int8 KV, MTP on. All 24,576 experts fit in VRAM once the reserve is 0.

Logs

expert arena: NOT registered with the GPU driver (integrated GPU, UMA mode ...)   <- the 0.2.1.2 fix, working
expert cache auto: ... -> 16343 MiB held back for other programs                  <- default, 0 slots' worth of 16 GB idle
expert cache 24576 slots, 46.84 GiB of VRAM; policy is ...                        <- after setting the reserve to 0
strata: gfx1151 (Strix Halo): 18 exact speed switches on by default ...           <- 19 when SH_STREAM is set
Originally created by @seannee on GitHub (Oct 20, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/3496 ### Area GUI ### Desktop app, Terminal or source? Desktop app (0.2.1, bundled engine 0.1.46.1). I also ran the same model through the source route for comparison. ### What happened On this machine the desktop app is about a third slower than the same engine started from a source checkout, and most of that is in settings the app writes itself. Machine: Ryzen AI Max+ 395 with the Radeon 8060S (gfx1151), 128 GB of unified memory, Windows 11 build 26300, Adrenalin 32.0.31041.1004, BIOS carve-out 32 GB. Model IQ3_S at 131072 context, int8 KV. The app's generated config (`%LOCALAPPDATA%\Strata\install\strata-iq3_s.json`) comes out as: ``` --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --max-context 131072 --kv int8 --kv-resident 32768 --vision --pool-workers 25 --vram-reserve-mib 16343 env: {} ``` Measured through the app's own endpoint (`/v1/chat/completions`, difference of an 8-token and a 200-token answer): **30.5 tok/s**. Setting the model's "GPU memory for other apps (MiB)" to 0 gets the engine to `expert cache 24576 slots, 46.84 GiB of VRAM` and **38.0 tok/s**, so roughly 25% of the gap is that 16 GB reserve. The rest of it is `STRATA_SH_STREAM=0` plus the opt-in gfx1151 prompt switches and `--prefill auto:32768`: with those, the source route reaches **45.8 tok/s** on the same model and the same machine. Inside the app I could not deliver them at all: * putting them in the config's `env` does not survive: `restoreNativeEnv()` in `host/server/native-settings.mjs` drops every `STRATA_[A-Z0-9_]+` key when settings are saved, so the key disappears from the file; * setting them before launching `strata-desktop.exe` does not reach the engine either, because the packaged host is spawned with `installerEnvironment(...)` rather than `{...process.env}`, so the engine never inherits them (the startup line still reports the 18 built-in switches, not the 19 you get when `SH_STREAM` is set). So on an APU, where "VRAM" is the same LPDDR5X the model is running out of, the app both reserves 16 GB of it for nothing and blocks the single switch worth another 16% of decode. Two things that would fix it, in the order I would value them: 1. a field for engine environment variables / extra arguments on the native model settings page (the source route's JSON already carries `env` and `args`), so `STRATA_SH_STREAM=0` and the prompt switches can be set without leaving the app; 2. a lower default `--vram-reserve-mib` on unified-memory APUs, or at least a hint next to that field saying it costs expert-cache slots one for one. ### Reproduction status Measured locally, and it comes back on every model load with the app's defaults. ### Strata version App 0.2.1 with the bundled engine 0.1.46.1 (Windows, `hip-rdna3` package). ### Graphics card, memory and system Radeon 8060S iGPU in a Ryzen AI Max+ 395 (gfx1151), 128 GB LPDDR5X with a 32 GB BIOS carve-out, Windows 11 build 26300, Adrenalin 32.0.31041.1004. ### Model, size and settings IQ3_S, 131072 context, int8 KV, MTP on. All 24,576 experts fit in VRAM once the reserve is 0. ### Logs ``` expert arena: NOT registered with the GPU driver (integrated GPU, UMA mode ...) <- the 0.2.1.2 fix, working expert cache auto: ... -> 16343 MiB held back for other programs <- default, 0 slots' worth of 16 GB idle expert cache 24576 slots, 46.84 GiB of VRAM; policy is ... <- after setting the reserve to 0 strata: gfx1151 (Strix Halo): 18 exact speed switches on by default ... <- 19 when SH_STREAM is set ```
Author
Owner

@github-actions[bot] commented on GitHub (Oct 20, 2026):

Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:

  • Fill in "Area".
  • Fill in "Desktop app, Terminal or source?".
  • Fill in "Reproduction status".
  • Fill in "Strata version".
  • Fill in "Graphics card, memory and system".

Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment /reopen.

Details: CONTRIBUTING.md

<!-- gh-comment-id:6299057519 --> @github-actions[bot] commented on GitHub (Oct 20, 2026): Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing: - [ ] Fill in "Area". - [ ] Fill in "Desktop app, Terminal or source?". - [ ] Fill in "Reproduction status". - [ ] Fill in "Strata version". - [ ] Fill in "Graphics card, memory and system". Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment `/reopen`. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@github-actions[bot] commented on GitHub (Oct 20, 2026):

Thanks, this follows the format now.

<!-- gh-comment-id:6299323459 --> @github-actions[bot] commented on GitHub (Oct 20, 2026): Thanks, this follows the format now.
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#1431
No description provided.