mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1267] gfx1151 (Strix Halo) gets the ROCm 7.10.0a20251120 wheels, not the 7.14.1 that docs/STRIX_HALO.md was measured on: the engine crashes on kernel 7.2.8, and prompts run at half speed #522
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#522
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 @alexdns1 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1267
What happens
setup.pyinstalls one ROCm for every AMD card:ROCM_VERSION = "7.10.0a20251120"(setup.py:1493, added in10d5cadfor the RX 7900). Strix Halo support (c4a329f) added the gfx1151 wheel index but kept that version. Meanwhiledocs/STRIX_HALO.md says the gfx1151 work was built and measured on ROCm 7.14.1 (AMD's tarball),
and the shipped table
tools/hip/gfx1151-hipblaslt-100401.txtis for 7.14.1's hipBLASLt (1.4.1).On a Strix Halo with kernel 7.2.8 this has three effects:
and the server only says "the engine exited before it was ready". The engine log has no error line (the crash
is in the kernel log:
segfault ... in libhsa-runtime64.so.1).100200); there is no gfx1151 table for it, so theprompt's dense matrix products use plain hipBLAS.
tools/test_setup_strix_halo.pyruns on recorded sysfs data, without aGPU, so nothing runs the wheels setup installs on a real gfx1151.
Machine
Ryzen AI Max+ 395 (gfx1151, PCI 1002:1586), 128 GB, Fedora 44, kernel 7.2.8-200.fc44, linux-firmware 20260916,
boot parameters
amd_iommu=off amdgpu.gttsize=126976 ttm.pages_limit=32505856(124 GiB GTT). Strata82f46a8(engine 0.1.40). Model: Unsloth UD-IQ4_XS, installed with
./setup.sh(262144 context, int8 KV,--kv-resident 32768,--resident-budget-gib 55).The crash
straceshows the kernel refusing the runtime's copy queue just before it:ioctl(4, AMDKFD_IOC_CREATE_QUEUE, ...) = -1 EINVAL, thenSIGSEGV ... si_addr=0x34. It is not Strata's code: a7-line Python
ctypesprogram (hipMalloc,hipHostMalloc,hipMemcpyAsync) crashes the same way with the 7.10wheel's
libamdhip64.so.7.The same program on other ROCm builds, same machine and kernel:
GpuAgent::InitDmajumps to0x100000001duringhsa_initrocm-runtime-7.1.1-6.fc44)(Only the 7.10 and 7.14 crashes were traced with gdb. Neither is reported to AMD yet.)
Speed
The engine setup compiled can run when its
lib_dirsis emptied (it then loads Fedora's ROCm 7.1.1). Against anengine built with docs/STRIX_HALO.md's own commands on ROCm 7.14.1 with the gfx1151 table, on the machine above:
8,192-token prompt, 256 output tokens, the run config's arguments with
--max-context 16384and without--kv-resident, one freshstrataprocess per run, the two engines interleaved, medians of 3.gfx1151-hipblaslt-100401.txt)Both printed the same 256 token ids in every run. Most of the prompt gain is plausibly the table, but the two
were not separated.
What could fix it
libraries and table match what the doc measured. AMD's release wheel index
(
https://repo.amd.com/rocm/whl/gfx1151/) stops at 7.13.0 today, so 7.14.1 means the tarball.its hipBLASLt (unchecked which version it carries).
ROCM_VERSION, and a start check that tells the user whenthe engine dies in the ROCm runtime (the kernel log line) instead of only "exited before it was ready".
Local workaround (what this machine runs now): the engine built per docs/STRIX_HALO.md against ROCm 7.14.1 in
~/rocm/install,lib_dirsandSTRATA_HIPBLASLT_TUNINGin the run config pointing at it, andengine/BUILD.jsonstamped with setup's source hash so that setup keeps the engine. After an update that changes the engine's source,
setup compiles it against the 7.10 wheels again and leaves the run config pointing at 7.14.1, so the workaround
has to be redone.
@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks for the detailed trace. In 0.1.40.2 setup picks the ROCm wheel per GPU family: gfx1151 now gets 7.14.0a20260608 (inside the range you found working on kernel 7.2.8; the 7.10 wheel is not used any more, and setup warns if a gfx1151 would end up on one, even when STRATA_ROCM_VERSION forces it). The gfx1151 hipBLASLt table of docs/STRIX_HALO.md is for 7.14.1's hipBLASLt, so check the start line for
hipBLASLt tuning enabled; if that nightly carries another version the table is not used and prompts run on plain hipBLAS. We have no gfx1151 box any more: could you confirm that a freshsetup --backend hipstarts on your machine?@alexdns1 commented on GitHub (Oct 7, 2026):
Confirmed: a fresh
./setup.sh --yes --family unsloth --model UD-IQ4_XS --backend hip --context 262144 --no-starton 0.1.40.2 (
e8ca9af) works on my Strix Halo (Ryzen AI Max+ 395, Radeon 8060S gfx1151, 128 GB, Fedora 44,kernel 7.2.8-200.fc44).
rocm-sdk-core 7.14.0a20260608) and compiled engine 0.1.40.2 for gfx1151.100400, from_rocm_sdk_devel/include/hipblaslt/hipblaslt-version.h), and setup says so:[!] no hipBLASLt tuning table for gfx1151 with hipBLASLt 100400 (have: gfx1151-hipblaslt-100401.txt, gfx1151-hipblaslt-100500.txt): the prompt's dense matrix products use plain hipBLASso the prompt runs on plain hipBLAS, and the start log has no
hipBLASLt tuning enabledline.For comparison, on the same machine the ROCm 7.14.1 tarball build of docs/STRIX_HALO.md with the 100401 table read
greedy 8K prompts at ~548 tok/s against ~263 with the old setup engine without a table (numbers in the first post).
The table is in #1388 (
tools/hip/gfx1151-hipblaslt-100400.txt, calibrated against these wheels; setup picks it up with no code change).@Niko1221 commented on GitHub (Oct 7, 2026):
Thanks for confirming a fresh setup works. Closing.
@alexdns1 commented on GitHub (Oct 7, 2026):
@Niko1221 you have to accept the Pull before closing