mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #2701] gfx1150 (Radeon 890M): confirmed build+run, isystem build fix, --expert-cache auto UMA pitfall #1077
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#1077
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 @Influx934Threads on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/2701
Summary
Confirmed: a second gfx1150 (Radeon 890M) machine builds Strata clean, passes 64/64 meaningful ctest cases, and
serves correct chat completions end-to-end — IQ3_XXS + MTP, extending the report in
docs/AMD_HIP.md#1217. Thisisn't just "it technically runs": below is a build fix for a header-shadowing bug that can silently corrupt the HIP
compat shim, and a reproducible
--expert-cache autopitfall on unified-memory AMD APUs that's undocumented fornon-"budget" model families — everything needed to get a Strix Point box running the same way.
Full write-up, raw benchmark JSON, and the sanitized config: https://gist.github.com/Influx934Threads/493b031121ee940570aff8561e5e49c4
Hardware/software
AMD Ryzen AI 9 HX 370 (Radeon 890M, gfx1150), 92 GiB RAM, Debian 13, TheRock ROCm 7.14.1 built isolated for
gfx1150only, Strata v0.1.44.1 (296b59d).setup.shrefuses this chip outright, so the pack build, MTP draftlayer, and server config were all done by hand with
tools/iq_pack.py/tools/mtp_fetch.py/tools/mtp_pack.py/tools/mtp_rt.py, reverse-engineering whatsetup.pywould have generated.1. Build fix: stale system HIP headers can win over the isolated SDK
On a distro with both a system HIP/ROCm package (Debian/Ubuntu ship HIP 5.x at
/usr/include/hip/) and a separateisolated ROCm/TheRock prefix, clang passes
--rocm-path's include dir with-idirafter(lowest priority) — so theolder system header can win, reporting
HIP_VERSION_MAJOR 5. Strata's compat shim branches on exactly that(
#if HIP_VERSION_MAJOR < 7), so the build silently takes the wrong code path with no error. Fix: an explicit-isystem $SDK/includeahead of--rocm-pathinCMAKE_HIP_FLAGS(full command in the gist). ctest: 64/64meaningful tests pass after the fix.
2.
--expert-cache autocan OOM a UMA GPU — gap in setup.py's existing RAM-safety logicautosizes the GPU-side expert cache from RAM that's free after this model's ~40 GiB resident expert arena isalready loaded — fine on a discrete GPU (cache lives in VRAM), but on a UMA APU that arena and the "free RAM" figure
share the same pool, and the sizer doesn't discount for it. The engine does print a warning, but not a refusal; it
OOM-killed both this process and an unrelated already-running llama.cpp service here.
setup.py's ownuma_expert_cache()RAM-budget logic exists for this exact shape of bug, but only applies to Unsloth "budget"-familymodels by its model table — IQ3_XXS has no
"budget"flag, so that protection doesn't engage for it. Fix used here:an explicit
--expert-cache 8192(~17.8 GiB) instead ofauto. Engine log excerpt and full explanation in the gist.3. Numbers
Warm decode 23.1-24.8 tok/s, 95-98% MTP draft acceptance (
--spec 4 --spec-min-p 0.5), deterministic sampling,thinking disabled. Faster than the one existing gfx1150 data point in the docs (15-19 tok/s, no MTP breakdown) — not
a controlled A/B, just a second machine's numbers. Full table and raw JSON responses in the gist.
Worth the few extra lines in setup.sh to support gfx1150 natively?
With two independent machines now confirming a correct build and correct output on gfx1150 (#1217 and this one),
and the kernel guards + hipBLASLt table already shipped, this looks like a small, bounded change to let
setup.sh --backend hipaccept it (even kept unvalidated) instead of refusing outright. Happy to test a patchagainst this hardware, or to fold this into
AMD_HIP.mdmyself if that's preferred — just say which.@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.
@Bunkmil commented on GitHub (Oct 22, 2026):
A follow-up re-tested on 0.2.2 instead of 0.1.44.1 — I ended up on the same hardware class (Ryzen AI 9 HX 370 / Radeon 890M gfx1150, 61 GB of unified memory, CachyOS, system ROCm 10.1, engine 0.1.47 built from source at
011c9e60) and worked through this report.What changed since it was written:
setup.pynow has an opt-in for this chip (STRATA_EXPERIMENTAL_GFX1150=1, added 2026-10-14) and it works end to end on Linux: it writes the 17 gfx1150 switches, picks the shippedtools/hip/gfx1150-hipblaslt-100401.txttable, and both model families install.docs/AMD_HIP.mdstill says the opposite ("Setup does not install for it yet"), so it is discoverable only by reading the code — one line of documentation would save the next person the gist./opt/rocm/core/lib/llvm(the CachyOSrocm-gfx1150-binlayout), the HIP build fails withCMAKE_HIP_COMPILER /opt/rocm/llvm/bin/clang++ is not a full path to an existing compiler tool; a symlink root andROCM_PATH=<that root>fixes it. The-isystemfix from the gist did not apply here (no/usr/include/hipon this box), so that part of the report stays machine-specific.--expert-cache autopitfall is still there, one version later. On a 61 GB unified-memory APU with IQ3_XXS the arena leaves 7.10 GiB for the OS, the 8 GiB reserve takes it to 0 slots, and the engine now refuses instead of being OOM-killed. Cleaner failure, but still a default install that cannot start; I filed it separately rather than extending this report.tests/terminal/test_release_matrix.pyasserts there is none, so the Terminal has nothing to serve with, and the app cannot drive a hand-built engine either.I am not the author and the title has no area prefix, so I have not commented
/reopen. Happy to write the full report with the form filled in and the measurements below if you would rather track gfx1150 in a fresh issue — tell me which you prefer.Measurements on this machine for reference, all at 32768 context: Qwen3.6-35B-A3B UD-Q4_K_XL, every expert in VRAM, 40.7 tok/s decode (MTP, 85% of drafts accepted) and 330-338 tok/s prompts; Qwen3.8-Flash-Next IQ3_XXS with a 3.33 GiB cache, 15.5 tok/s decode, 170 tok/s prompts, expert-cache hit rate 59-68%. Pictures (CPU reader), tool calls and an 18K-token needle test all answered correctly on IQ3_XXS.