[GH-ISSUE #2766] [Engine] Windows x64 HIP 0.2.0-beta (engine 0.1.45.3) on Strix Halo (gfx1151): default expert-cache mode still dies with 'the embedding buffer failed'; --mmap-experts works #1107

Closed
opened 2026-11-04 01:48:33 +07:00 by bsakaguchi · 7 comments
Owner

Originally created by @ppcckk on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2766

Re-tested on Strata 0.2.0-beta (engine 0.1.45.3) — 2026-10-20

Strata version tested: 0.2.0-beta, engine 0.1.45.3 (strata-engine-0.1.45.3-windows-x86_64-hip-rdna3.tar.gz).
Same Windows 11 x64 HIP build on the same Strix Halo / gfx1151 box, same model (Qwen3.8-Flash-Next IQ3_S), same flags.

Result on 0.2.0-beta: the default path still fails. With --expert-cache auto and no --mmap-experts the engine prints
session is up (engine 0.1.45.3) and then dies with strata generate: the embedding buffer failed (exit 1) — identical
signature to 0.1.44.1. With --mmap-experts --vram-reserve-mib 512 the same 0.1.45.3 engine starts normally and prints
READY 131072 (expert_slots=24576, 51611 MiB of VRAM free with everything loaded).

Full logs of all three runs, the issue-form answers, and an analysis of why this is not genuine VRAM exhaustion are in the
comment below: https://github.com/Niko1221/Strata/issues/2766#issuecomment-6281712768

The 0.1.44.1 report follows, unchanged.


Windows x64 HIP (0.1.44.1) on Strix Halo / gfx1151: default start exits with "the embedding buffer failed" — --mmap-experts runs

TL;DR — On a Ryzen AI Max+ 395 (Radeon 8060S, gfx1151) under Windows 11, the ready-made
strata-windows-x64-hip.zip (0.1.44.1) starts, loads the model, prints session is up, and then dies
with strata generate: the embedding buffer failed (that is a 10 KB cudaMalloc in generate.cpp:6018).
The expert cache is sized from 5.41 GiB of "free" VRAM → 1087 of 24576 slots in that mode.
Adding --mmap-experts (plus --vram-reserve-mib 512) makes the same install run correctly, and in that
mode the process happily uses ~57.5 GB of dedicated VRAM. Details, logs and a hypothesis below.


1. Environment

Machine Six United AXB35-02 mini-PC
APU AMD Ryzen AI Max+ 395, Radeon 8060S, gfx1151, 20 CUs, wave32
Memory 128 GB LPDDR5X-8532 (8 × 16 GB); BIOS "UMA Frame Buffer" = 64 GB → Windows sees 63.6 GB
OS Windows 11 Pro, build 26200 (25H2)
GPU driver 32.0.31021.5001 (2026-06-28)
Radeon software Adrenalin 26.6.4
Engine strata-windows-x64-hip.zip, v0.1.44.1, sha256 e40bce7a2cfe47ea42d3f2af1e0adb92d14b8c02a29107c5a309b2cb518f5f52 (matches SHA256.txt)
engine/BUILD.json source=prebuilt, backend=hip, platform=windows-x64, version=0.1.44.1, rocm=10.2.0a20260930, hipblaslt_version=100500, archs incl. gfx1151, vision=none
Python 3.14.4 (venv created by START-HERE.bat)
Model ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, rev ed59f920, IQ3_S: shards 54,817,524,224 + 28,800,138,432 B, mmproj 907,543,008 B (all sha256-verified)

engine\strata-device.exe --list-devices / --selftest (with engine\rocm\bin on PATH) are healthy in both modes:

device 0: AMD Radeon(TM) 8060S Graphics
  HIP arch            gfx1151 wave32 (compiled for gfx1100,gfx1101,gfx1102,gfx1200,gfx1201,gfx1030,gfx1151)
  multiprocessors     20
  VRAM total / free   107.647 GiB (115585384448 B) / 107.496 GiB (115422916608 B)
  driver / runtime    71726391 / 71726391
  HIP runtime         E:\Strata-win\engine\amdhip64_7.dll
  memory plan  --max-context 20480 … plan + KV vs free   FITS
selftest: over-allocation refused as required
strata-device selftest OK

2. Install path that works end-to-end

  1. Layout. The three Windows zips on the release page are engines only — START-HERE.bat,
    setup.py, serve/, tools/ are not in them. I took the scripts from the source zip of main
    (codeload.github.com/Niko1221/Strata/zip/refs/heads/main, 21.6 MB) and unzipped
    strata-windows-x64-hip.zip into engine\ (contents: strata.exe, strata-device.exe, rocm\,
    amdhip64_7.dll, amd_comgr.dll, rocm_kpack.dll, msvcp140.dll, vcruntime140*.dll, BUILD.json).
    → Suggestion: mention on the release page that the HIP zip is the engine and where the scripts come from.
  2. START-HERE.bat → venv (Python 3.14.4) → setup.py.
  3. setup.py --family qwen --model IQ3_S \
      --gguf-dir <folder with the two IQ3_S shards + the mmproj> \
      --context 131072 --vision no --backend hip --yes
    
    • engine: [ok] ready-made AMD engine already installed
    • model: [ok] model files present (no re-download), pack → Strata-data\packs\iq3_s
      (302 canonical tensors served natively, arena 1.43 GiB; experts are read from the GGUF in place,
      so Strata-data is only ~7.9 GB on disk)
    • MTP: 31 tensors / 5.214 GB fetched → mtp-q2_0.gguf (0.889 GB) → runtime dir
    • start script written with --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp … --max-context 131072 --kv int8

Note (not a bug, but it costs an hour): the venv pip install needs a reachable index. With the
Tsinghua mirror one pinned wheel 403'd (numpy==2.5.3 cp314-win_amd64); Tencent/aliyun/USTC/pypi.org
all served it. Setup's --quiet makes that step look frozen.


3. Bug: default (resident expert arena) start dies

Command (exactly what setup generated, no extra flags):

engine\strata.exe --serve --pack E:\Strata-data\packs\iq3_s \
  --native …-00001-of-00002.gguf --ple-gguf …-00002-of-00002.gguf \
  --expert-profile E:\Strata-win\data\expert-profile.bin \
  --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 \
  --mtp E:\Strata-data\mtp\rt --max-context 131072 --kv int8

Engine log (verbatim, one line per entry):

strata: gfx1151 (Strix Halo): 18 exact speed switches on by default (…): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY
        CVEC_FUSE HCD_EXACT PF_PAD Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE PLE_BATCH SH_STREAM
strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 16.1 GiB, reclaimable cache credited 0.0 GiB;
        available 47.5 GiB (MemAvailable 47.5 GiB), floor 2560 MiB
strata generate: native pack: … experts (largest blob 2.66 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.3 s)
strata generate: 300 native projection matrices, 2018.88 MiB of weights, in 2.7 s
strata generate: PLE on, table 320001536 rows of …-00002-of-00002.gguf
strata mtp: draft layer loaded, 950 MiB of VRAM (experts 675, dense 111), files read in 0.21 s
strata: STRATA_Q6_PACKED=1 packed the output head (248320 x 2560, +497.3 MiB)
strata generate: GPU 0: AMD Radeon(TM) 8060S Graphics (gfx1151)
strata generate: HIP runtime E:\Strata-win\engine\amdhip64_7.dll
strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 0.6 GiB available, 51.1 GiB of files)
strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 50295996416 B
        (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages
strata generate: loaded 46.84 GiB at 2.03 GiB/s
strata generate: expert cache auto: Windows keeps 2560 MiB free after the cache on a card this size …
strata generate: expert cache auto: 5.41 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1087 slots
strata generate: pre-filled 0 of 0 slots from the profile in 0.0 s (0 MB/s); slot 0 verified
strata generate: session is up (engine 0.1.44.1)
strata generate: the embedding buffer failed          ← exit code 1

the embedding buffer failed is the 10 KB allocation at src/program/generate.cpp:6017-6021:

float* d_emb = nullptr;
if (cudaMalloc(&d_emb, (size_t) g.n_embd * 4) != cudaSuccess) {   // g.n_embd = 2560 → 10 KB
    std::fprintf(stderr, "strata generate: the embedding buffer failed\n");
    return 1;
}

Reproduced twice, and it is not a system-RAM shortage

run memory guard reading expert-cache line outcome
#1 current 16.1 GiB, available 47.5 GiB 5.41 GiB free, 2560 MiB reserved -> 1087 slots the embedding buffer failed
#2 current 11.3 GiB, available 52.4 GiB 5.41 GiB free, 2560 MiB reserved -> 1087 slots — identical the embedding buffer failed

Freeing 4.8 GB of system RAM (closing background apps) changed the guard reading but produced the
same 5.41 GiB / 1087 slots and the same failure, so the number the cache is sized from is not
"free system RAM" on Windows.


4. Workaround that works

--mmap-experts --vram-reserve-mib 512
[strata] mapping the experts from the model files (about 55 GB, --mmap-experts): they are not loaded into RAM …
[strata] filling the GPU's expert cache (24576 experts, 46.84 GiB of VRAM) …
ready: http://127.0.0.1:8080/v1  (OpenAI: /v1/chat/completions, Anthropic: /v1/messages, context 131072 tokens)

In this mode Windows Task Manager reports 57,521 MB dedicated + ~1.7 GB shared for the process,
and strata verify: capturing the … window (51573 MiB of VRAM free).
So the card is not out of memory — the failure above is specific to the resident-arena path.


5. Hypothesis (please sanity-check — I have not built the engine)

  • src/core/expert_cache.cpp:28 device_free_bytes() returns cudaMemGetInfo(&free,&total) and adds a UMA
    correction only under #if defined(__linux__): /proc/meminfo MemAvailable minus
    STRATA_UMA_HEADROOM_GIB (default 6). On Windows that correction is compiled out, so the expert-cache
    sizing uses HIP's free number as-is.
  • src/platform/memory.cpp:112 gpu_shared_memory_budget() (DXGI
    QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)) exists, but a repo-wide search finds its
    only caller in the SYCL backend (sycl/src/core/pinned.dp.cpp:328) — the Windows HIP path does not
    use it.
  • On WDDM, host memory the GPU can reach is charged to the process's non-local (shared) budget, while
    the 64 GB BIOS carve-out is a separate dedicated segment. The resident arena is registered with
    cudaHostRegister(…, PORTABLE) (46.84 GiB). If HIP's cudaMemGetInfo free on a UMA adapter tracks that
    shared budget, then after registration the reported "free" collapses to ~5.4 GiB although the dedicated
    segment is nearly empty — which would explain both 1087 slots and the later 10 KB allocation failure.
  • Possible directions (yours to judge): exclude the registered arena from the sizing reading on
    Windows/UMA; use the DXGI non-local budget (or a STRATA_UMA_HEADROOM_GIB-equivalent) there; or
    allocate the arena from the dedicated segment; or make the automatic choice fall back to
    --mmap-experts on Windows when it would otherwise fail.

6. Speed, same machine, same model — and the Linux comparison

Windows (this install, --mmap-experts --vram-reserve-mib 512, IQ3_S, context 131072, KV int8),
from the engine's own strata serve: prompt … lines:

prompt tok prefill generated decode MTP drafts accepted
53 660 ms (80.3 tok/s) 40 36.5 tok/s 22 / 34
57 780 ms (73.1) 1898 40.7 tok/s 1050 / 1531
58 705 ms (82.3) 97 34.0 45 / 83
82 993 ms (82.6) 600 38.0 312 / 515
588 1758 ms (334.5) 748 30.7 269 / 551
2221 3772 ms (588.8) 24 38.1 15 / 24
7261 11032 ms (658.2) 16 46.6 (too short to be meaningful) 11 / 12

strata serve: expert tiers: GPU 0 hits this request; since the start RAM 0 blobs, files 0 blobs 50294.7 MB read (the GGUF in place) — the byte counter only crept up (50,294.7 → 50,604.7 MB over several requests), i.e. the
cache looks like it is hitting, not thrashing.

Linux reference on the same box and model (Ubuntu, kernel 7.0.0, engine built locally for gfx1151,
default placement, same context): decode 47.2 / 47.4 / 47.5 / 48.9 / 55.2 tok/s
(done: 736 tokens in 17 s (48.9 tok/s) … done: 33 tokens in 1 s (55.2 tok/s)).
docs/STRIX_HALO.md lists IQ3_S at 8K: 1,242 prompt / 59.7 decode.

So on Windows I measure roughly 53 % of the documented prefill (658 vs 1,242 tok/s) and
~30–41 tok/s decode vs 47–60 on Linux/docs. Question: is that the expected state of the Windows HIP
path on gfx1151 (driver/runtime 10.2.0a20260930, kernel shapes, the mmap expert path), or is something
about this configuration off?


7. Anything else I can run

Happy to test diagnostics/flags on this machine — including with the BIOS carve-out changed
(e.g. 512 MB / 16 GB instead of 64 GB, which setup itself says "leaves the RAM to the model"),
--mmap-experts vs arena, different --spec/--expert-cache/--prefill values, or a debug build, if that
helps narrow Bug 1 or the Windows/Linux gap.

Attachments in this report: the full engine log lines above come from
strata-iq3_s.log (engine) and the complete setup transcripts
(strata-win-2026-10-16-122313.log, 41 KB) — I can paste them in full or upload them if useful.

Originally created by @ppcckk on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/Niko1221/Strata/issues/2766 ## Re-tested on Strata 0.2.0-beta (engine 0.1.45.3) — 2026-10-20 **Strata version tested: 0.2.0-beta, engine 0.1.45.3** (`strata-engine-0.1.45.3-windows-x86_64-hip-rdna3.tar.gz`). Same Windows 11 x64 HIP build on the same Strix Halo / gfx1151 box, same model (Qwen3.8-Flash-Next IQ3_S), same flags. **Result on 0.2.0-beta: the default path still fails.** With `--expert-cache auto` and no `--mmap-experts` the engine prints `session is up (engine 0.1.45.3)` and then dies with `strata generate: the embedding buffer failed` (exit 1) — identical signature to 0.1.44.1. With `--mmap-experts --vram-reserve-mib 512` the same 0.1.45.3 engine starts normally and prints `READY 131072` (`expert_slots=24576`, `51611 MiB of VRAM free with everything loaded`). Full logs of all three runs, the issue-form answers, and an analysis of why this is not genuine VRAM exhaustion are in the comment below: https://github.com/Niko1221/Strata/issues/2766#issuecomment-6281712768 The 0.1.44.1 report follows, unchanged. --- # Windows x64 HIP (0.1.44.1) on Strix Halo / gfx1151: default start exits with "the embedding buffer failed" — `--mmap-experts` runs **TL;DR** — On a Ryzen AI Max+ 395 (Radeon 8060S, gfx1151) under Windows 11, the ready-made `strata-windows-x64-hip.zip` (0.1.44.1) **starts, loads the model, prints `session is up`, and then dies** with `strata generate: the embedding buffer failed` (that is a **10 KB** `cudaMalloc` in `generate.cpp:6018`). The expert cache is sized from **5.41 GiB of "free" VRAM → 1087 of 24576 slots** in that mode. Adding `--mmap-experts` (plus `--vram-reserve-mib 512`) makes the same install run correctly, and in that mode the process happily uses **~57.5 GB of dedicated VRAM**. Details, logs and a hypothesis below. --- ## 1. Environment | | | |---|---| | Machine | Six United AXB35-02 mini-PC | | APU | AMD Ryzen AI Max+ 395, Radeon 8060S, **gfx1151**, 20 CUs, wave32 | | Memory | 128 GB LPDDR5X-8532 (8 × 16 GB); **BIOS "UMA Frame Buffer" = 64 GB** → Windows sees **63.6 GB** | | OS | Windows 11 Pro, build **26200** (25H2) | | GPU driver | **32.0.31021.5001** (2026-06-28) | | Radeon software | Adrenalin 26.6.4 | | Engine | `strata-windows-x64-hip.zip`, v0.1.44.1, sha256 `e40bce7a2cfe47ea42d3f2af1e0adb92d14b8c02a29107c5a309b2cb518f5f52` (matches `SHA256.txt`) | | `engine/BUILD.json` | `source=prebuilt, backend=hip, platform=windows-x64, version=0.1.44.1, rocm=10.2.0a20260930, hipblaslt_version=100500`, archs incl. `gfx1151`, `vision=none` | | Python | 3.14.4 (venv created by `START-HERE.bat`) | | Model | `ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF`, rev `ed59f920`, **IQ3_S**: shards `54,817,524,224` + `28,800,138,432` B, `mmproj` `907,543,008` B (all sha256-verified) | `engine\strata-device.exe --list-devices` / `--selftest` (with `engine\rocm\bin` on PATH) are healthy in both modes: ``` device 0: AMD Radeon(TM) 8060S Graphics HIP arch gfx1151 wave32 (compiled for gfx1100,gfx1101,gfx1102,gfx1200,gfx1201,gfx1030,gfx1151) multiprocessors 20 VRAM total / free 107.647 GiB (115585384448 B) / 107.496 GiB (115422916608 B) driver / runtime 71726391 / 71726391 HIP runtime E:\Strata-win\engine\amdhip64_7.dll memory plan --max-context 20480 … plan + KV vs free FITS selftest: over-allocation refused as required strata-device selftest OK ``` --- ## 2. Install path that works end-to-end 1. **Layout.** The three Windows zips on the release page are **engines only** — `START-HERE.bat`, `setup.py`, `serve/`, `tools/` are *not* in them. I took the scripts from the source zip of `main` (`codeload.github.com/Niko1221/Strata/zip/refs/heads/main`, 21.6 MB) and unzipped `strata-windows-x64-hip.zip` into `engine\` (contents: `strata.exe`, `strata-device.exe`, `rocm\`, `amdhip64_7.dll`, `amd_comgr.dll`, `rocm_kpack.dll`, `msvcp140.dll`, `vcruntime140*.dll`, `BUILD.json`). → **Suggestion:** mention on the release page that the HIP zip is the engine and where the scripts come from. 2. `START-HERE.bat` → venv (Python 3.14.4) → `setup.py`. 3. ``` setup.py --family qwen --model IQ3_S \ --gguf-dir <folder with the two IQ3_S shards + the mmproj> \ --context 131072 --vision no --backend hip --yes ``` * engine: `[ok] ready-made AMD engine already installed` * model: `[ok] model files present` (no re-download), pack → `Strata-data\packs\iq3_s` (`302` canonical tensors served natively, arena 1.43 GiB; experts are read from the GGUF in place, so `Strata-data` is only ~7.9 GB on disk) * MTP: 31 tensors / 5.214 GB fetched → `mtp-q2_0.gguf` (0.889 GB) → runtime dir * start script written with `--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp … --max-context 131072 --kv int8` > Note (not a bug, but it costs an hour): the venv `pip install` needs a reachable index. With the > Tsinghua mirror one pinned wheel 403'd (`numpy==2.5.3` `cp314-win_amd64`); Tencent/aliyun/USTC/pypi.org > all served it. Setup's `--quiet` makes that step look frozen. --- ## 3. Bug: default (resident expert arena) start dies Command (exactly what setup generated, no extra flags): ``` engine\strata.exe --serve --pack E:\Strata-data\packs\iq3_s \ --native …-00001-of-00002.gguf --ple-gguf …-00002-of-00002.gguf \ --expert-profile E:\Strata-win\data\expert-profile.bin \ --expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 \ --mtp E:\Strata-data\mtp\rt --max-context 131072 --kv int8 ``` Engine log (verbatim, one line per entry): ``` strata: gfx1151 (Strix Halo): 18 exact speed switches on by default (…): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE HCD_EXACT PF_PAD Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE PLE_BATCH SH_STREAM strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 16.1 GiB, reclaimable cache credited 0.0 GiB; available 47.5 GiB (MemAvailable 47.5 GiB), floor 2560 MiB strata generate: native pack: … experts (largest blob 2.66 MB), token embedding IQ4_XS in mapped host memory (322 MiB, 0.3 s) strata generate: 300 native projection matrices, 2018.88 MiB of weights, in 2.7 s strata generate: PLE on, table 320001536 rows of …-00002-of-00002.gguf strata mtp: draft layer loaded, 950 MiB of VRAM (experts 675, dense 111), files read in 0.21 s strata: STRATA_Q6_PACKED=1 packed the output head (248320 x 2560, +497.3 MiB) strata generate: GPU 0: AMD Radeon(TM) 8060S Graphics (gfx1151) strata generate: HIP runtime E:\Strata-win\engine\amdhip64_7.dll strata generate: expert arena read unbuffered (0 of 16 probe reads from the file cache; 0.6 GiB available, 51.1 GiB of files) strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages strata generate: loaded 46.84 GiB at 2.03 GiB/s strata generate: expert cache auto: Windows keeps 2560 MiB free after the cache on a card this size … strata generate: expert cache auto: 5.41 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1087 slots strata generate: pre-filled 0 of 0 slots from the profile in 0.0 s (0 MB/s); slot 0 verified strata generate: session is up (engine 0.1.44.1) strata generate: the embedding buffer failed ← exit code 1 ``` `the embedding buffer failed` is the **10 KB** allocation at `src/program/generate.cpp:6017-6021`: ```cpp float* d_emb = nullptr; if (cudaMalloc(&d_emb, (size_t) g.n_embd * 4) != cudaSuccess) { // g.n_embd = 2560 → 10 KB std::fprintf(stderr, "strata generate: the embedding buffer failed\n"); return 1; } ``` ### Reproduced twice, and it is **not** a system-RAM shortage | run | `memory guard` reading | expert-cache line | outcome | |---|---|---|---| | #1 | `current 16.1 GiB`, `available 47.5 GiB` | `5.41 GiB free, 2560 MiB reserved -> 1087 slots` | `the embedding buffer failed` | | #2 | `current 11.3 GiB`, `available 52.4 GiB` | `5.41 GiB free, 2560 MiB reserved -> 1087 slots` — **identical** | `the embedding buffer failed` | Freeing 4.8 GB of system RAM (closing background apps) changed the guard reading but produced the **same 5.41 GiB / 1087 slots** and the same failure, so the number the cache is sized from is not "free system RAM" on Windows. --- ## 4. Workaround that works ``` --mmap-experts --vram-reserve-mib 512 ``` ``` [strata] mapping the experts from the model files (about 55 GB, --mmap-experts): they are not loaded into RAM … [strata] filling the GPU's expert cache (24576 experts, 46.84 GiB of VRAM) … ready: http://127.0.0.1:8080/v1 (OpenAI: /v1/chat/completions, Anthropic: /v1/messages, context 131072 tokens) ``` In this mode Windows Task Manager reports **57,521 MB dedicated** + ~1.7 GB shared for the process, and `strata verify: capturing the … window (51573 MiB of VRAM free)`. So the card is not out of memory — the failure above is specific to the **resident-arena** path. --- ## 5. Hypothesis (please sanity-check — I have not built the engine) * `src/core/expert_cache.cpp:28 device_free_bytes()` returns `cudaMemGetInfo(&free,&total)` and adds a UMA correction **only under `#if defined(__linux__)`**: `/proc/meminfo` `MemAvailable` minus `STRATA_UMA_HEADROOM_GIB` (default 6). On Windows that correction is compiled out, so the expert-cache sizing uses HIP's free number as-is. * `src/platform/memory.cpp:112 gpu_shared_memory_budget()` (DXGI `QueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)`) exists, but a repo-wide search finds its **only caller in the SYCL backend** (`sycl/src/core/pinned.dp.cpp:328`) — the Windows HIP path does not use it. * On WDDM, host memory the GPU can reach is charged to the process's **non-local (shared)** budget, while the 64 GB BIOS carve-out is a separate **dedicated** segment. The resident arena is registered with `cudaHostRegister(…, PORTABLE)` (46.84 GiB). If HIP's `cudaMemGetInfo` free on a UMA adapter tracks that shared budget, then after registration the reported "free" collapses to ~5.4 GiB although the dedicated segment is nearly empty — which would explain both `1087 slots` and the later 10 KB allocation failure. * Possible directions (yours to judge): exclude the registered arena from the sizing reading on Windows/UMA; use the DXGI non-local budget (or a `STRATA_UMA_HEADROOM_GIB`-equivalent) there; or allocate the arena from the dedicated segment; or make the automatic choice fall back to `--mmap-experts` on Windows when it would otherwise fail. --- ## 6. Speed, same machine, same model — and the Linux comparison Windows (this install, `--mmap-experts --vram-reserve-mib 512`, IQ3_S, context 131072, KV int8), from the engine's own `strata serve: prompt …` lines: | prompt tok | prefill | generated | decode | MTP drafts accepted | |---|---|---|---|---| | 53 | 660 ms (80.3 tok/s) | 40 | 36.5 tok/s | 22 / 34 | | 57 | 780 ms (73.1) | **1898** | **40.7 tok/s** | 1050 / 1531 | | 58 | 705 ms (82.3) | 97 | 34.0 | 45 / 83 | | 82 | 993 ms (82.6) | 600 | 38.0 | 312 / 515 | | 588 | 1758 ms (334.5) | 748 | 30.7 | 269 / 551 | | 2221 | 3772 ms (588.8) | 24 | 38.1 | 15 / 24 | | **7261** | **11032 ms (658.2)** | 16 | 46.6 (too short to be meaningful) | 11 / 12 | `strata serve: expert tiers: GPU 0 hits this request; since the start RAM 0 blobs, files 0 blobs 50294.7 MB read (the GGUF in place)` — the byte counter only crept up (50,294.7 → 50,604.7 MB over several requests), i.e. the cache looks like it is hitting, not thrashing. Linux reference on the **same box and model** (Ubuntu, kernel 7.0.0, engine built locally for gfx1151, default placement, same context): decode **47.2 / 47.4 / 47.5 / 48.9 / 55.2 tok/s** (`done: 736 tokens in 17 s (48.9 tok/s)` … `done: 33 tokens in 1 s (55.2 tok/s)`). `docs/STRIX_HALO.md` lists IQ3_S at 8K: **1,242 prompt / 59.7 decode**. So on Windows I measure roughly **53 % of the documented prefill** (658 vs 1,242 tok/s) and **~30–41 tok/s decode vs 47–60 on Linux/docs**. Question: is that the expected state of the Windows HIP path on gfx1151 (driver/runtime 10.2.0a20260930, kernel shapes, the mmap expert path), or is something about this configuration off? --- ## 7. Anything else I can run Happy to test diagnostics/flags on this machine — including with the BIOS carve-out changed (e.g. 512 MB / 16 GB instead of 64 GB, which `setup` itself says "leaves the RAM to the model"), `--mmap-experts` vs arena, different `--spec`/`--expert-cache`/`--prefill` values, or a debug build, if that helps narrow Bug 1 or the Windows/Linux gap. **Attachments in this report:** the full engine log lines above come from `strata-iq3_s.log` (engine) and the complete setup transcripts (`strata-win-2026-10-16-122313.log`, 41 KB) — I can paste them in full or upload them if useful.
Author
Owner

@Niko1221 commented on GitHub (Oct 19, 2026):

Thanks for taking the time to report this.

We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected.

To reopen it takes about two minutes:

  1. Re-test on 0.2.0-beta. 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:6271239228 --> @Niko1221 commented on GitHub (Oct 19, 2026): Thanks for taking the time to report this. We're resetting the tracker for 0.2.0-beta. There are more than 1,300 open issues and pull requests, too many for us to read properly, so we're closing everything that isn't being worked on right now. Closed here does not mean rejected. To reopen it takes about two minutes: 1. Re-test on 0.2.0-beta. 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).
Author
Owner

@ppcckk commented on GitHub (Oct 20, 2026):

Re-tested on 0.2.0-beta (engine 0.1.45.3), as asked in the tracker-reset comment. Short version: the default path still dies, the --mmap-experts workaround still works, and the new diagnostics are much better.

Issue form answers

What happened — With the default resident-arena path (--expert-cache auto, no --mmap-experts), the engine loads the model, prints session is up (engine 0.1.45.3), and then exits 1 with strata generate: the embedding buffer failed. Same signature as 0.1.44.1. With --mmap-experts --vram-reserve-mib 512 the same beta engine starts and reports READY 131072.

Strata version — 0.2.0-beta, engine 0.1.45.3 (strata-engine-0.1.45.3-windows-x86_64-hip-rdna3.tar.gz, strata.exe --version → strata 0.1.45.3). Engine unpacked to a clean directory; its rocm\bin is on PATH (without that, strata.exe exits 0xC0000135).

GPU — Radeon 8060S, gfx1151 ("AMD Ryzen AI Max+ 395 w/ Radeon 8060S"). UMA box: the BIOS reserves 64 GB as dedicated VRAM, so Windows 11 sees 63.6 GiB RAM and 65536 MiB VRAM.

Memory — 128 GB LPDDR5X. Windows reports 63.6 GiB total, ~13.9–14.2 GiB in use at engine start (MemAvailable 49.4–49.8 GiB). Nothing else on the GPU: the service was stopped before each run, dedicated GPU usage dropped to 1121 MiB.

System — Windows 11 Pro build 26200 (25H2), AMD driver 32.0.31021.5001, PowerShell 5.1. Model: Qwen3.8-Flash-Next IQ3_S (the two GGUF shards + --ple-gguf), MTP runtime, --max-context 131072 --kv int8, --pack in place.

Run A — single slot, exactly the original default path

strata: gfx1151 (Strix Halo): 19 exact speed switches on by default (STRATA_GFX1151_DEFAULTS=0 turns them off; a switch you set is kept): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE HCD_EXACT PF_PAD TOPK_REG_MIN_BLOCKS Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE PLE_BATCH SH_STREAM
strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 14.2 GiB, reclaimable cache credited 0.0 GiB; available 49.4 GiB (MemAvailable 49.4 GiB), floor 2560 MiB
strata generate: PCIe probe: 80.4 GB/s host->device (best of 79.8 79.3 79.9 80.4) -> pcie_frac 0.55 (default 0.55)
strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages
strata generate: expert cache auto: Windows keeps 2560 MiB free after the cache on a card this size (the default 700 MiB left 323 MiB on a 20 GB card and Windows paged, #1376); --vram-reserve-mib N sets it
strata generate: expert cache auto: 5.41 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1087 slots
strata generate: pre-filled 0 of 0 slots from the profile in 0.0 s (0 MB/s); slot 0 verified
strata generate: session is up (engine 0.1.45.3)
strata generate: the embedding buffer failed
==== single-slot exit 1 ====

Run B — same command plus --batch 8

strata generate: --batch: 8 slot sessions on CUDA0 (1.89 GiB each); 86.03 GiB free
strata generate: --batch 8: the slot sessions take 15.09 GiB of VRAM on CUDA0 that the expert cache would otherwise hold
strata generate: expert cache auto: 0.00 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 0 slots
strata generate: no VRAM is left for the expert cache: it needs at least 274 slots (695 MiB), about 1215 MiB more than this card has free. To make room: a smaller --max-context (the session, mostly its KV cache, takes 1931 MiB at 131072 tokens), --kv q4_0, the English draft subset (setup --draft-vocab en; the draft head takes 218 MiB now), images on the CPU, or close other programs that use the GPU
strata generate: the embedding buffer failed

Run C — workaround still works on beta

strata generate: expert cache auto: 99.05 GiB free, 512 MiB reserved (+218 MiB for the draft head) -> 24576 slots
strata generate: session is up (engine 0.1.45.3)
strata serve: 51611 MiB of VRAM free with everything loaded
INFO logit_bias=1 context=131072 kv=int8 kv_resident=0 expert_slots=24576 expert_cache_mib=47962 expert_slots_primary=24576 expert_cache_primary_mib=47962 spec=6 mtp_max=4 lookup=3 vram_free_mib=51611 cvec=0 arena_mib=0 pool_workers=15 pcie_frac=0.55 spec_min_p=0.50 conversation_cache_mib=0 conversation_cache_slots=4 conversation_cache_min_free_mib=2560 conversation_cache_min_tokens=0 tail_role_token=-1 vram_elastic=0 prefill_cap=7500 prefill_stages=1 stream_all_min=1024 prefill_pipe=0 engine=0.1.45.3
READY 131072 stop

Why I don't think it is genuine VRAM exhaustion

In Run A the allocator itself reports 5.41 GiB free and hands out 1087 slots, three lines before a ~10 KiB embedding buffer fails. The expert arena also registers fine (cudaHostRegister PORTABLE ok, 50295996416 B). So the large allocations succeed and only a small cudaMalloc after session is up fails. My reading, unchanged from the 0.1.44.1 report: once the resident arena is host-registered, WDDM's non-local budget accounting collapses for a small device allocation — which is exactly why --mmap-experts (arena_mib=0) works. Run C shows the arena is the differentiator, not the model, context or cache size.

Two side observations

  • large pages refused ... VirtualAlloc error 1314 — 1314 is ERROR_NOT_ALLOWED (the process lacks SeLockMemoryPrivilege). Expected when Strata is not run elevated; only noting that it shows up for every non-elevated user on Windows.
  • strata aux cpus: not available on this system — appears on this box (Ryzen AI Max+ 395, 16C/32T); the CPU pool still spun up 15 workers on the even logical processors, so it looks cosmetic.

Also: the new no VRAM is left for the expert cache … To make room message is a real improvement — it turns a silent death into a diagnosis, and in Run B it correctly pointed at --batch 8 eating 15.09 GiB.

Not yet done

I have not measured decode/prefill throughput through the beta server wrapper yet (the wrapper still spawns the 0.1.44.1 engine path, so I ran the beta engine directly). For reference, on 0.1.44.1 with the workaround at 131072 context this box does 47.6 tok/s decode / 1,079 tok/s prefill and 80.1% MTP draft acceptance. I can produce the same numbers on 0.1.45.3 once I point the wrapper at the new engine, or via strata generate one-shot runs — say which you prefer.

This is a dedicated Windows box, so I can reboot, downgrade, elevate, or run instrumented builds on request.

/reopen

<!-- gh-comment-id:6281712768 --> @ppcckk commented on GitHub (Oct 20, 2026): Re-tested on **0.2.0-beta (engine 0.1.45.3)**, as asked in the tracker-reset comment. Short version: **the default path still dies, the `--mmap-experts` workaround still works, and the new diagnostics are much better.** ## Issue form answers **What happened** — With the default resident-arena path (`--expert-cache auto`, no `--mmap-experts`), the engine loads the model, prints `session is up (engine 0.1.45.3)`, and then exits 1 with `strata generate: the embedding buffer failed`. Same signature as 0.1.44.1. With `--mmap-experts --vram-reserve-mib 512` the same beta engine starts and reports `READY 131072`. **Strata version** — 0.2.0-beta, engine **0.1.45.3** (`strata-engine-0.1.45.3-windows-x86_64-hip-rdna3.tar.gz`, `strata.exe --version` → `strata 0.1.45.3`). Engine unpacked to a clean directory; its `rocm\bin` is on `PATH` (without that, `strata.exe` exits `0xC0000135`). **GPU** — Radeon 8060S, gfx1151 ("AMD Ryzen AI Max+ 395 w/ Radeon 8060S"). UMA box: the BIOS reserves 64 GB as dedicated VRAM, so Windows 11 sees 63.6 GiB RAM and 65536 MiB VRAM. **Memory** — 128 GB LPDDR5X. Windows reports 63.6 GiB total, ~13.9–14.2 GiB in use at engine start (MemAvailable 49.4–49.8 GiB). Nothing else on the GPU: the service was stopped before each run, dedicated GPU usage dropped to 1121 MiB. **System** — Windows 11 Pro build 26200 (25H2), AMD driver 32.0.31021.5001, PowerShell 5.1. Model: Qwen3.8-Flash-Next IQ3_S (the two GGUF shards + `--ple-gguf`), MTP runtime, `--max-context 131072 --kv int8`, `--pack` in place. ## Run A — single slot, exactly the original default path ``` strata: gfx1151 (Strix Halo): 19 exact speed switches on by default (STRATA_GFX1151_DEFAULTS=0 turns them off; a switch you set is kept): GDN_HEAD GDN_PP GDN_CONVL2 GDN_NOY CVEC_FUSE HCD_EXACT PF_PAD TOPK_REG_MIN_BLOCKS Q8_PACKED Q6_PACKED MMVF_ROWS ATTN_LANECELL EXPERT_V2 TSUM LFUSE GDN_SPLIT QFUSE PLE_BATCH SH_STREAM strata generate: memory guard: limit 63.6 GiB (source: meminfo), current 14.2 GiB, reclaimable cache credited 0.0 GiB; available 49.4 GiB (MemAvailable 49.4 GiB), floor 2560 MiB strata generate: PCIe probe: 80.4 GB/s host->device (best of 79.8 79.3 79.9 80.4) -> pcie_frac 0.55 (default 0.55) strata generate: expert arena: cudaHostRegister PORTABLE ok; large pages refused for 50295996416 B (GetLargePageMinimum=2097152, VirtualAlloc error 1314); using 4 KB pages strata generate: expert cache auto: Windows keeps 2560 MiB free after the cache on a card this size (the default 700 MiB left 323 MiB on a 20 GB card and Windows paged, #1376); --vram-reserve-mib N sets it strata generate: expert cache auto: 5.41 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 1087 slots strata generate: pre-filled 0 of 0 slots from the profile in 0.0 s (0 MB/s); slot 0 verified strata generate: session is up (engine 0.1.45.3) strata generate: the embedding buffer failed ==== single-slot exit 1 ==== ``` ## Run B — same command plus `--batch 8` ``` strata generate: --batch: 8 slot sessions on CUDA0 (1.89 GiB each); 86.03 GiB free strata generate: --batch 8: the slot sessions take 15.09 GiB of VRAM on CUDA0 that the expert cache would otherwise hold strata generate: expert cache auto: 0.00 GiB free, 2560 MiB reserved (+218 MiB for the draft head) -> 0 slots strata generate: no VRAM is left for the expert cache: it needs at least 274 slots (695 MiB), about 1215 MiB more than this card has free. To make room: a smaller --max-context (the session, mostly its KV cache, takes 1931 MiB at 131072 tokens), --kv q4_0, the English draft subset (setup --draft-vocab en; the draft head takes 218 MiB now), images on the CPU, or close other programs that use the GPU strata generate: the embedding buffer failed ``` ## Run C — workaround still works on beta ``` strata generate: expert cache auto: 99.05 GiB free, 512 MiB reserved (+218 MiB for the draft head) -> 24576 slots strata generate: session is up (engine 0.1.45.3) strata serve: 51611 MiB of VRAM free with everything loaded INFO logit_bias=1 context=131072 kv=int8 kv_resident=0 expert_slots=24576 expert_cache_mib=47962 expert_slots_primary=24576 expert_cache_primary_mib=47962 spec=6 mtp_max=4 lookup=3 vram_free_mib=51611 cvec=0 arena_mib=0 pool_workers=15 pcie_frac=0.55 spec_min_p=0.50 conversation_cache_mib=0 conversation_cache_slots=4 conversation_cache_min_free_mib=2560 conversation_cache_min_tokens=0 tail_role_token=-1 vram_elastic=0 prefill_cap=7500 prefill_stages=1 stream_all_min=1024 prefill_pipe=0 engine=0.1.45.3 READY 131072 stop ``` ## Why I don't think it is genuine VRAM exhaustion In Run A the allocator itself reports **5.41 GiB free and hands out 1087 slots**, three lines before a ~10 KiB embedding buffer fails. The expert arena also registers fine (`cudaHostRegister PORTABLE ok`, 50295996416 B). So the large allocations succeed and only a small `cudaMalloc` after `session is up` fails. My reading, unchanged from the 0.1.44.1 report: once the resident arena is host-registered, WDDM's non-local budget accounting collapses for a small device allocation — which is exactly why `--mmap-experts` (`arena_mib=0`) works. Run C shows the arena is the differentiator, not the model, context or cache size. ## Two side observations - `large pages refused ... VirtualAlloc error 1314` — 1314 is `ERROR_NOT_ALLOWED` (the process lacks `SeLockMemoryPrivilege`). Expected when Strata is not run elevated; only noting that it shows up for every non-elevated user on Windows. - `strata aux cpus: not available on this system` — appears on this box (Ryzen AI Max+ 395, 16C/32T); the CPU pool still spun up 15 workers on the even logical processors, so it looks cosmetic. Also: the new `no VRAM is left for the expert cache … To make room` message is a real improvement — it turns a silent death into a diagnosis, and in Run B it correctly pointed at `--batch 8` eating 15.09 GiB. ## Not yet done I have not measured decode/prefill throughput through the beta **server wrapper** yet (the wrapper still spawns the 0.1.44.1 engine path, so I ran the beta engine directly). For reference, on 0.1.44.1 with the workaround at 131072 context this box does **47.6 tok/s decode / 1,079 tok/s prefill** and 80.1% MTP draft acceptance. I can produce the same numbers on 0.1.45.3 once I point the wrapper at the new engine, or via `strata generate` one-shot runs — say which you prefer. This is a dedicated Windows box, so I can reboot, downgrade, elevate, or run instrumented builds on request. /reopen
Author
Owner

@ppcckk commented on GitHub (Oct 20, 2026):

/reopen

<!-- gh-comment-id:6281728510 --> @ppcckk commented on GitHub (Oct 20, 2026): /reopen
Author
Owner

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

Not reopened yet. Still missing:

  • Re-test on Strata 0.2.0-beta and name that version in the issue. If it no longer happens, say so in a comment instead.

Edit the issue and comment /reopen again. Details: CONTRIBUTING.md

<!-- gh-comment-id:6281730190 --> @github-actions[bot] commented on GitHub (Oct 20, 2026): Not reopened yet. Still missing: - [ ] Re-test on Strata 0.2.0-beta and name that version in the issue. If it no longer happens, say so in a comment instead. Edit the issue and comment `/reopen` again. Details: [CONTRIBUTING.md](https://github.com/Niko1221/Strata/blob/main/CONTRIBUTING.md)
Author
Owner

@ppcckk commented on GitHub (Oct 20, 2026):

/reopen

<!-- gh-comment-id:6281740610 --> @ppcckk commented on GitHub (Oct 20, 2026): /reopen
Author
Owner

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

Reopened, thank you. A maintainer will pick it up from here.

<!-- gh-comment-id:6281742654 --> @github-actions[bot] commented on GitHub (Oct 20, 2026): Reopened, thank you. A maintainer will pick it up from here.
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:6659303583 --> @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#1107
No description provided.