mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2837] Windows Strix Halo (gfx1151, Ryzen AI Max+ 395): hipMemGetInfo reports only the carve-out's free space, and the gfx1151 arch defaults never apply #1139
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#1139
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 @moweishun on GitHub (Oct 17, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2837
Windows Strix Halo (gfx1151, Ryzen AI Max+ 395): hipMemGetInfo reports only the carve-out's free space, and the gfx1151 arch defaults never apply
Hardware and software
gfx1151, wave32, 40 CUs), Windows 11(build 26100), Adrenalin driver 32.0.31041.1004, 96 GB LPDDR5X (BIOS carve-out settable).
296b59d), ready-made Windows HIP engine(
strata-windows-x64-hip.zip, ROCm 10.2.0a20260930), and a self-built engine from the same tree(
tools/hip/build_windows.bat,STRATA_HIP_ARCHS=gfx1151).Finding 1:
device_free_bytes()is not unified-memory aware on WindowscudaMemGetInfoon this APU reports the free space of the BIOS's dedicated carve-out (what thedesktop has not taken of it), not what the unified memory can host. The Linux-only correction in
src/core/expert_cache.cpp(#if defined(__linux__)→ MemAvailable minusSTRATA_UMA_HEADROOM_GIB) does not apply, so the auto expert cache sizes from a tiny figure.Measured free figure (after the session's allocations), by BIOS carve-out, 32K context unless said:
--expert-cache Nshrinks to 0 slotsConsequences of the small figure, all reproduced:
--expert-cache N: the sizing pass setsexpert_cache = 0(keep_bytes ≤ 0), so the cacheopens with no slots and the profile fill reports "pre-filled 0 of 0 slots from the profile"; the
server then exits because the MTP verify tier needs the profile-filled VRAM expert tier. An IQ
pack cannot drop MTP (
it needs --native SHARD1, --spec T and --prefill CHUNK), so there is noworking fallback: a catch-22.
A patch that applies the same unified-memory correction on Windows (integrated GPU →
GlobalMemoryStatusEx().ullAvailPhysminus the same headroom) fixed all of it here: at 16 GBcarve-out and 200K context, the auto cache sized 19339 slots (36.84 GiB), filled 19336 of them from
the profile, and served 40-45 tok/s decode at 96.9% hit rate. I will send it as a PR.
Finding 2: the gfx1151 arch defaults never apply on Windows HIP
src/program/generate.cpp(the#if defined(STRATA_USE_HIP)block) appliesapply_arch_defaults(ad.gcnArchName)only whencudaGetDevicePropertiessucceeds, and swallows theerror otherwise. On this machine (Windows HIP 10.2.0a20260930 wheels) it fails, so the 18 exact
speed switches silently stay off — no "strata: gfx1151 (Strix Halo): N exact speed switches" line
at startup. Setting the 18 switches as environment variables directly (same values the table sets)
took decode from 26 tok/s to 40-45 tok/s at 200K, byte-identical answers as documented. A fix would
either retry the property query, log the failure, or apply the defaults when the device query
cannot run.
Finding 3: at 200K on Windows, the prompt/verify paths crash whenever the cache is large
With the probe reading larger figures (64 GB carve-out, pre-patch; or any large cache), each
configuration died in a different subsystem, all in the
unspecified launch failure(719) family:--prefill auto(auto → 6144) + auto cache:strata serve: cannot create the refill stream/Hip error 719inside hipblaslt.cpp:468;STRATA_GFX1151_DEFAULTS=0(portable path):strata serve: verify: stream create failed;prefill: the token id buffer (unspecified launch failure), and at 32K with a large borrowed region:prefill: setting the FP16 activation image failed;is missing (finding 1) and the server exits.
32K with the stock defaults on the 32 GB carve-out (cache 438 slots, prompt path borrowing only
310 of them) is the one configuration that served stably — which is what makes me suspect the
borrowed-region path breaks once the borrowed region (or the cache) crosses some size on this
driver, though I could not pin the threshold and did not test beyond what is listed.
Also noted
--prefill 8192warning (#1630) matches: with a forced--prefill 8192thecommit charge jumped ~60-70 GB and the process died;
--prefill 6144and below were stable heretoo. A bare
--prefill autostopping at 6144 on Windows is what kept the working 32K setup safe.guide's advice, a LARGER carve-out helps (it is the only thing that grows the reported figure).
What I did not test
--vision cpuwas configured but unused);other model sizes;
--kv q4_0/k8v4; the CUDA backend (no NVIDIA GPU).Happy to test builds or run more configurations on this machine — it is currently serving 200K at
40-45 tok/s decode with the patch and the 18 switches set explicitly.
@moweishun commented on GitHub (Oct 17, 2026):
The fix is up as PR #2836.
@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.