[GH-ISSUE #2701] gfx1150 (Radeon 890M): confirmed build+run, isystem build fix, --expert-cache auto UMA pitfall #1077

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

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. This
isn'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 auto pitfall on unified-memory AMD APUs that's undocumented for
non-"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
gfx1150 only, Strata v0.1.44.1 (296b59d). setup.sh refuses this chip outright, so the pack build, MTP draft
layer, 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 what setup.py would 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 separate
isolated ROCm/TheRock prefix, clang passes --rocm-path's include dir with -idirafter (lowest priority) — so the
older 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/include ahead of --rocm-path in CMAKE_HIP_FLAGS (full command in the gist). ctest: 64/64
meaningful tests pass after the fix.

2. --expert-cache auto can OOM a UMA GPU — gap in setup.py's existing RAM-safety logic

auto sizes the GPU-side expert cache from RAM that's free after this model's ~40 GiB resident expert arena is
already 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 own
uma_expert_cache() RAM-budget logic exists for this exact shape of bug, but only applies to Unsloth "budget"-family
models 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 of auto. 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 hip accept it (even kept unvalidated) instead of refusing outright. Happy to test a patch
against this hardware, or to fold this into AMD_HIP.md myself if that's preferred — just say which.

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. This isn'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 auto` pitfall on unified-memory AMD APUs that's undocumented for non-"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 `gfx1150` only, Strata v0.1.44.1 (`296b59d`). `setup.sh` refuses this chip outright, so the pack build, MTP draft layer, 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 what `setup.py` would 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 separate isolated ROCm/TheRock prefix, clang passes `--rocm-path`'s include dir with `-idirafter` (lowest priority) — so the *older* 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/include` ahead of `--rocm-path` in `CMAKE_HIP_FLAGS` (full command in the gist). ctest: 64/64 meaningful tests pass after the fix. ## 2. `--expert-cache auto` can OOM a UMA GPU — gap in setup.py's existing RAM-safety logic `auto` sizes the GPU-side expert cache from RAM that's free *after* this model's ~40 GiB resident expert arena is already 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 own `uma_expert_cache()` RAM-budget logic exists for this exact shape of bug, but only applies to Unsloth "budget"-family models 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 of `auto`. 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 hip` accept it (even kept unvalidated) instead of refusing outright. Happy to test a patch against this hardware, or to fold this into `AMD_HIP.md` myself if that's preferred — just say which.
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:6271181916 --> @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

@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.py now 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 shipped tools/hip/gfx1150-hipblaslt-100401.txt table, and both model families install. docs/AMD_HIP.md still 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.
  • One build-environment detail worth documenting: on a distro whose ROCm keeps the compiler at /opt/rocm/core/lib/llvm (the CachyOS rocm-gfx1150-bin layout), the HIP build fails with CMAKE_HIP_COMPILER /opt/rocm/llvm/bin/clang++ is not a full path to an existing compiler tool; a symlink root and ROCM_PATH=<that root> fixes it. The -isystem fix from the gist did not apply here (no /usr/include/hip on this box), so that part of the report stays machine-specific.
  • The --expert-cache auto pitfall 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.
  • No engine package exists for gfx1150: tests/terminal/test_release_matrix.py asserts 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.

<!-- gh-comment-id:6341063428 --> @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.py` now 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 shipped `tools/hip/gfx1150-hipblaslt-100401.txt` table, and both model families install. `docs/AMD_HIP.md` still 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. - **One build-environment detail worth documenting**: on a distro whose ROCm keeps the compiler at `/opt/rocm/core/lib/llvm` (the CachyOS `rocm-gfx1150-bin` layout), the HIP build fails with `CMAKE_HIP_COMPILER /opt/rocm/llvm/bin/clang++ is not a full path to an existing compiler tool`; a symlink root and `ROCM_PATH=<that root>` fixes it. The `-isystem` fix from the gist did not apply here (no `/usr/include/hip` on this box), so that part of the report stays machine-specific. - **The `--expert-cache auto` pitfall 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. - **No engine package exists for gfx1150**: `tests/terminal/test_release_matrix.py` asserts 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.
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#1077
No description provided.