mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #4295] [Engine] gfx1151 hipBLASLt table for a system ROCm 7.2.4 (hipBLASLt 100202) #4989
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#4989
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/4295
Author: @AMV007
Created: 10/27/2026
Status: 🔄 Open
Base:
main← Head:gfx1151-hipblaslt-100202📝 Commits (1)
c93e7d5hip: hipBLASLt tuning table for gfx1151 with a system ROCm 7.2.4 (hipBLASLt 100202): setup takes /opt/rocm over the wheels and had no table for it, so Strix Halo prompts ran on plain hipBLAS (UD-Q4_K_XL 59K prompt 247 -> 471 tok/s, 232K with the opt-in prompt set 1,034); report, test📊 Changes
6 files changed (+322 additions, -1 deletions)
View changed files
➕
bench/results/2026-10-27-community-gfx1151-hipblaslt-100202/README.md(+41 -0)➕
bench/results/2026-10-27-community-gfx1151-hipblaslt-100202/gfx1151-hipblaslt-100202.txt(+92 -0)➕
bench/results/2026-10-27-community-gfx1151-hipblaslt-100202/shapes.json(+92 -0)📝
docs/AMD_HIP.md(+2 -1)➕
tools/hip/gfx1151-hipblaslt-100202.txt(+92 -0)📝
tools/test_setup_strix_halo.py(+3 -0)📄 Description
Problem and result
On Strix Halo with a system ROCm 7.2.4 in /opt/rocm (installed for llama.cpp), setup builds the engine against it rather than the TheRock wheels, because
rocm_rootprefers a system ROCm 7+.tools/hiphad no gfx1151 table for its hipBLASLt 1.2.2, so the prompt's dense GEMMs ran on plain hipBLAS. After agit pullrebuild, big prompts were about 2x slower than with the 7.14 wheels.Before: UD-Q4_K_XL 59K prompt 247 tok/s, 232K 228 tok/s. After: 471 tok/s on 59K, on par with the 7.14 wheels + 100400 table (461).
Related discussion
none
Approach
Adds
tools/hip/gfx1151-hipblaslt-100202.txt, tuned withtools/hip/tune_hipblasltagainst /opt/rocm. It covers the 15 shapes and 6 token buckets of the 100401 table (90 rows).hipblaslt_table()picks it when the installed hipBLASLt is 100202; nothing changes for other versions. Also included: docs rows in AMD_HIP.md, a report inbench/results/2026-10-27-community-gfx1151-hipblaslt-100202/(tune command, shapes, numbers), and a check intest_setup_strix_halo.As with every table, the prompt GEMMs use other kernels, so prompt numerics differ from plain hipBLAS in the last bits. The tuner's accuracy gate is rel-L2 1e-4; the rows here have about 2e-7. This matches the 7.14 wheels, which already use a table by default on Strix Halo.
Validation
Passed:
LD_LIBRARY_PATH=/opt/rocm/lib build-hip/tune_hipblaslt --shapes-file shapes.json --tokens 2047,2048,8191,8192,16383,16384 --workspace-mib 32 --tuning-out gfx1151-hipblaslt-100202.txton4b9e05a2: metadevice_arch=gfx1151 hipblaslt_version=100202, 90 cases, 0 rejected. GEMM sums, hipBLAS -> table: T 2048 115.5 -> 19.1 ms, T 8192 467.9 -> 77.2 ms, T 16384 945.4 -> 157.3 ms.4b9e05a2), UD-Q4_K_XL, setup's config (--resident-budget-gib 71,--max-context 262144), fresh server, caches dropped, one run each:prefill gemm: hipBLASLt tuning enabled (90 rows, gfx1151, version 100202).python -m unittest tools.test_setup_strix_halo.Recommendation.test_hipblaslt_table_for_gfx1151 tests/terminal/test_hipblaslt_tuning.py: OK.Failed:
none observed
Not run:
Limits
STRATA_HCD_EXACThas no solution 1176/1177 to match (hipBLASLt picks 6873) and says so in the log; hipBLASLt runs that projection.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.