mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1217] gfx1150 (Radeon 890M / Strix Point) works: report and a one-line CMake patch #502
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#502
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 @zeriyoshi on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1217
Summary
Strata v0.1.40.1 builds and runs on a Ryzen AI 9 HX PRO 370 (Radeon 890M, gfx1150, Strix Point). It serves
Qwen3.8-Flash-Next IQ3_XXS through the HIP backend, with ROCm from AMD's TheRock gfx1150 tarball.
FATAL_ERROR, because gfx1150 is in none of the three architecture lists incmake/hip_backend.cmake. Nothing in the code, commits or issues points to a known gfx1150 problem__gfx1150__) andgfx_arch_is_gfx11_wmma()include it (41c89b1708,1bb3279d74)intrinsics.hppgives it sudot4We would like gfx1150 to be admitted as an unvalidated (or community-validated) target. Some notes for setup and for
unified-memory APUs in general follow.
Environment
1002:150e, 16 CUs)ttm.pages_limit=16777216 ttm.page_pool_size=167772167.0.14-20-pve(in-tree amdgpu / amdkfd)/dev/kfdand/dev/dri/renderD128are passed with the container's render GID, andlxc.prlimit.memlock: unlimitedis setlibhipblaslt.so.1.4). See belowv0.1.40.1(82f46a8c). The engine is the same as v0.1.40ROCm (TheRock 7.14.1, gfx1150)
rocminforeports the agent asgfx1150, "AMD Radeon 890M Graphics", 16 compute units. Its GPU memory pool is theGTT size (46.7 GiB by default, 64 GiB after the change above).
The patch
The comment above the lists and
AMD_HIP.md/STRIX_HALO.mdwould also need a line about gfx1150.Build
These are the same steps as
docs/STRIX_HALO.mdwith the architecture changed. The build takes about 1.5 minuteswith 6 jobs.
The only warning specific to this target is the expected one: "gfx1150 builds, but it is not validated on a real card
yet". hipBLASLt is found.
Tests (
ctest, 60 registered)55 passed, 4 skipped, 1 failed. None of the skips or the failure is a gfx1150 problem:
hip_prefill_wmma_gemm_parity,hip_prompt_attn_wmma,hip_prefill_fused_moe,hip_prefill_fused_iq,hip_prefill_mmq_parity,hip_intrinsicsandhip_device_selftesthip_prefill_hcd_exact_parity,hip_prefill_hipblaslt_gemmiq_parity_fixtures,iq_parityple_parityiq_parityby hand. The fixture generator needs llama.cpp'sgguf-py, which comes with setup's llama.cppdownload, and PyYAML. In a manual build, the copy CMake fetches works: it is the same pinned commit
3cf03257.The result was
dequant rel 0.00e+00andmmvq rel 4.6e-03 .. 5.7e-03 (ncols 1..8) okfor all 10 formats:IQ2_XXS, IQ2_XS, IQ2_S, IQ3_XXS, IQ3_S, IQ1_M, IQ4_NL, IQ4_XS, Q2_0 and Q3_K.
ple_parity.pack/full/dense.bin). With--gguf <IQ3_XXS shard 2> --pack <the IQ3_XXS pack>, it then stops atbench/micro/ple_in.bin / ple_out.bin, which a public checkout does not shipbench/microtestsThe GPU tests also ran while another process (llama.cpp on Vulkan) used 44 GiB of the same GTT pool. The kernel
logged no GPU faults or resets.
Running Qwen3.8-Flash-Next IQ3_XXS
setup.shrejects gfx1150, so we prepared the model by hand, following whatsetup.pydoes.ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUFat the pinned revisioned59f920. We used both IQ3_XXS shardsand checked their SHA-256 against the Hugging Face LFS ids
tools/iq_pack.py --gguf <shard 1> --out <pack>, then again with--experts-bin(42.9 GB)tools/mtp_fetch.py fetch,tools/mtp_pack.py --experts q2_0,tools/mtp_rt.py, thendata/draft_vocab.bin(cjk)copied into
rt/serve/server.py --engine strata --config <json>. The JSON has the same keys as setup writes, andSTRATA_API_KEYis setEngine arguments:
Startup from a cold page cache took about 45 s:
The second turn reused the 4.6K-token prefix from the prompt cache
Speed
Each run is one request at a time, with server-reported timings. The engine was restarted for each column.
STRATA_PREFILL_MMQ=1made no difference (124 / 130 tok/s prefill)Prefill is GPU-bound. This is
STRATA_PREFILL_TIMING=1for 3,556 tokens with the exact switches:With 16 CUs, the GDN, hyper-connection and projection work sets the ceiling. A gfx1150 hipBLASLt table
(
tune_hipblaslt) could help the GEMM parts, about 15% of the time. We have not tried that yet.Notes and suggestions
1bb3279d74), but gfx1150 does.amd_apply_uma, the build note,STRIX_HALO_*) is keyed on gfx1151 only.0x150Eis already inAMD_IGPU_PCI)gfx1150too (build for gfx1150, count the GTT pool as GPU memory) would letsetup install it
live in the same RAM: 2 x 42.9 GB for IQ3_XXS does not fit a 96 GB machine
--mmap-expertswith an expert cache large enough for every expert (24,576 slots) keeps one copy: GTT holdsthe experts, and the file pages are reclaimable after the fill
device_free_bytes()uses/proc/meminfoMemAvailable less 6 GiB. Inside an LXC container, LXCFS reports acontainer-scoped MemAvailable, while GTT allocations are not charged to the memory cgroup
hipMemGetInforeported the whole 46.7 GiB pool as free while a Vulkan process held 44 GiB of it--expert-cacheto a fixed number. A note in the docs (or aSTRATA_UMA_FREE_GIB-style override)would help
arch_default_env's table by hand, minusSTRATA_HCD_EXACT, which needs the gfx1151 hipBLASLt table.STRIX_HALO.mdsection 5 (PF_FUSED,PF_GEMM,HC_UPMIX,PA_FAST,HIP_WMMA,SELECT_WMMA,HC_Q8) were slower on gfx1150: prefill went from 124 to 83 tok/sple_parityalways fails there, andiq_parityis skipped unless gguf-py andPyYAML are installed (see above). The CMake-fetched
_deps/strata_llamacpp-src/gguf-pycould be used as afallback in
tools/_paths.py.Not tested:
"parallel"slots, and contexts above 64K@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks. gfx1150 is an unvalidated HIP target in 0.1.40.2, so the build warns instead of stopping, and your machine's numbers are in docs/AMD_HIP.md. Setup does not install for gfx1150 yet; build by hand with -DCMAKE_HIP_ARCHITECTURES=gfx1150.