mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[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
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#1107
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 @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 autoand no--mmap-expertsthe engine printssession is up (engine 0.1.45.3)and then dies withstrata generate: the embedding buffer failed(exit 1) — identicalsignature to 0.1.44.1. With
--mmap-experts --vram-reserve-mib 512the same 0.1.45.3 engine starts normally and printsREADY 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-expertsrunsTL;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, printssession is up, and then dieswith
strata generate: the embedding buffer failed(that is a 10 KBcudaMallocingenerate.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 thatmode the process happily uses ~57.5 GB of dedicated VRAM. Details, logs and a hypothesis below.
1. Environment
strata-windows-x64-hip.zip, v0.1.44.1, sha256e40bce7a2cfe47ea42d3f2af1e0adb92d14b8c02a29107c5a309b2cb518f5f52(matchesSHA256.txt)engine/BUILD.jsonsource=prebuilt, backend=hip, platform=windows-x64, version=0.1.44.1, rocm=10.2.0a20260930, hipblaslt_version=100500, archs incl.gfx1151,vision=noneSTART-HERE.bat)ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, reved59f920, IQ3_S: shards54,817,524,224+28,800,138,432B,mmproj907,543,008B (all sha256-verified)engine\strata-device.exe --list-devices/--selftest(withengine\rocm\binon PATH) are healthy in both modes:2. Install path that works end-to-end
START-HERE.bat,setup.py,serve/,tools/are not in them. I took the scripts from the source zip ofmain(
codeload.github.com/Niko1221/Strata/zip/refs/heads/main, 21.6 MB) and unzippedstrata-windows-x64-hip.zipintoengine\(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.
START-HERE.bat→ venv (Python 3.14.4) →setup.py.[ok] ready-made AMD engine already installed[ok] model files present(no re-download), pack →Strata-data\packs\iq3_s(
302canonical tensors served natively, arena 1.43 GiB; experts are read from the GGUF in place,so
Strata-datais only ~7.9 GB on disk)mtp-q2_0.gguf(0.889 GB) → runtime dir--expert-cache auto --prefill auto --spec 4 --spec-min-p 0.5 --mtp … --max-context 131072 --kv int83. Bug: default (resident expert arena) start dies
Command (exactly what setup generated, no extra flags):
Engine log (verbatim, one line per entry):
the embedding buffer failedis the 10 KB allocation atsrc/program/generate.cpp:6017-6021:Reproduced twice, and it is not a system-RAM shortage
memory guardreadingcurrent 16.1 GiB,available 47.5 GiB5.41 GiB free, 2560 MiB reserved -> 1087 slotsthe embedding buffer failedcurrent 11.3 GiB,available 52.4 GiB5.41 GiB free, 2560 MiB reserved -> 1087 slots— identicalthe embedding buffer failedFreeing 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
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()returnscudaMemGetInfo(&free,&total)and adds a UMAcorrection only under
#if defined(__linux__):/proc/meminfoMemAvailableminusSTRATA_UMA_HEADROOM_GIB(default 6). On Windows that correction is compiled out, so the expert-cachesizing uses HIP's free number as-is.
src/platform/memory.cpp:112 gpu_shared_memory_budget()(DXGIQueryVideoMemoryInfo(0, DXGI_MEMORY_SEGMENT_GROUP_NON_LOCAL)) exists, but a repo-wide search finds itsonly caller in the SYCL backend (
sycl/src/core/pinned.dp.cpp:328) — the Windows HIP path does notuse it.
the 64 GB BIOS carve-out is a separate dedicated segment. The resident arena is registered with
cudaHostRegister(…, PORTABLE)(46.84 GiB). If HIP'scudaMemGetInfofree on a UMA adapter tracks thatshared budget, then after registration the reported "free" collapses to ~5.4 GiB although the dedicated
segment is nearly empty — which would explain both
1087 slotsand the later 10 KB allocation failure.Windows/UMA; use the DXGI non-local budget (or a
STRATA_UMA_HEADROOM_GIB-equivalent) there; orallocate the arena from the dedicated segment; or make the automatic choice fall back to
--mmap-expertson 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: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. thecache 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.mdlists 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
setupitself says "leaves the RAM to the model"),--mmap-expertsvs arena, different--spec/--expert-cache/--prefillvalues, or a debug build, if thathelps 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.@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:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.
@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-expertsworkaround 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, printssession is up (engine 0.1.45.3), and then exits 1 withstrata generate: the embedding buffer failed. Same signature as 0.1.44.1. With--mmap-experts --vram-reserve-mib 512the same beta engine starts and reportsREADY 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; itsrocm\binis onPATH(without that,strata.exeexits0xC0000135).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,--packin place.Run A — single slot, exactly the original default path
Run B — same command plus
--batch 8Run C — workaround still works on beta
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 smallcudaMallocaftersession is upfails. 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 isERROR_NOT_ALLOWED(the process lacksSeLockMemoryPrivilege). 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 roommessage is a real improvement — it turns a silent death into a diagnosis, and in Run B it correctly pointed at--batch 8eating 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 generateone-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
@ppcckk commented on GitHub (Oct 20, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Not reopened yet. Still missing:
Edit the issue and comment
/reopenagain. Details: CONTRIBUTING.md@ppcckk commented on GitHub (Oct 20, 2026):
/reopen
@github-actions[bot] commented on GitHub (Oct 20, 2026):
Reopened, thank you. A maintainer will pick it up from here.
@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.