[PR #4295] [Engine] gfx1151 hipBLASLt table for a system ROCm 7.2.4 (hipBLASLt 100202) #4989

Open
opened 2026-11-07 16:31:50 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • c93e7d5 hip: 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_root prefers a system ROCm 7+. tools/hip had no gfx1151 table for its hipBLASLt 1.2.2, so the prompt's dense GEMMs ran on plain hipBLAS. After a git pull rebuild, 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).

none

Approach

Adds tools/hip/gfx1151-hipblaslt-100202.txt, tuned with tools/hip/tune_hipblaslt against /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 in bench/results/2026-10-27-community-gfx1151-hipblaslt-100202/ (tune command, shapes, numbers), and a check in test_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.txt on 4b9e05a2: meta device_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.
  • End to end on Ryzen AI Max+ 395, 128 GB, Ubuntu, kernel 7.0.0-38, ROCm 7.2.4, engine 0.1.51 (4b9e05a2), UD-Q4_K_XL, setup's config (--resident-budget-gib 71, --max-context 262144), fresh server, caches dropped, one run each:
    • 59K prompt: 247 -> 471 tok/s.
    • With the STRIX_HALO.md opt-in prompt set: 808 -> 1,107 on 59K, and 232K 1,034.
    • Decode unchanged (26-30 tok/s).
    • Log: 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:

  • KL against plain hipBLAS or the 7.14 table.
  • Other gfx1151 boxes and other models; one run per point.

Limits

  • With this table STRATA_HCD_EXACT has no solution 1176/1177 to match (hipBLASLt picks 6873) and says so in the log; hipBLASLt runs that projection.
  • The table is valid only for hipBLASLt 1.2.2.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/4295 **Author:** [@AMV007](https://github.com/AMV007) **Created:** 10/27/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gfx1151-hipblaslt-100202` --- ### 📝 Commits (1) - [`c93e7d5`](https://github.com/Niko1221/Strata/commit/c93e7d59862ad09bc69ec6868aef6665d8cddb7d) hip: 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) <details> <summary>View changed files</summary> ➕ `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) </details> ### 📄 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_root` prefers a system ROCm 7+. `tools/hip` had no gfx1151 table for its hipBLASLt 1.2.2, so the prompt's dense GEMMs ran on plain hipBLAS. After a `git pull` rebuild, 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 with `tools/hip/tune_hipblaslt` against /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 in `bench/results/2026-10-27-community-gfx1151-hipblaslt-100202/` (tune command, shapes, numbers), and a check in `test_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.txt` on 4b9e05a2: meta `device_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. - End to end on Ryzen AI Max+ 395, 128 GB, Ubuntu, kernel 7.0.0-38, ROCm 7.2.4, engine 0.1.51 (4b9e05a2), UD-Q4_K_XL, setup's config (`--resident-budget-gib 71`, `--max-context 262144`), fresh server, caches dropped, one run each: - 59K prompt: 247 -> 471 tok/s. - With the STRIX_HALO.md opt-in prompt set: 808 -> 1,107 on 59K, and 232K 1,034. - Decode unchanged (26-30 tok/s). - Log: `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:** - KL against plain hipBLAS or the 7.14 table. - Other gfx1151 boxes and other models; one run per point. ## Limits - With this table `STRATA_HCD_EXACT` has no solution 1176/1177 to match (hipBLASLt picks 6873) and says so in the log; hipBLASLt runs that projection. - The table is valid only for hipBLASLt 1.2.2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#4989
No description provided.