[PR #631] gfx1151: retune the GLM hipBLASLt table for hipBLASLt 1.4.1 (prefill x1.9 on Strix Halo) #639

Open
opened 2026-10-29 21:27:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/631
Author: @mrsirg97-rgb
Created: 10/28/2026
Status: 🔄 Open

Base: main ← Head: gfx1151-glm-hipblaslt-retune


📝 Commits (1)

  • e42d738 gfx1151: retune the GLM hipBLASLt table for hipBLASLt 1.4.1 (100401)

📊 Changes

1 file changed (+62 additions, -13 deletions)

View changed files

📝 tools/hip/gfx1151-glm-hipblaslt-100401.txt (+62 -13)

📄 Description

Retunes tools/hip/gfx1151-glm-hipblaslt-100401.txt: the GLM prompt path's FP16 GEMMs on Strix / Gorgon Halo with hipBLASLt 1.4.1. The setup passes this table to every gfx1151 GLM config, so the fix reaches users on the next setup with no settings to change.

The problem. On a Radeon 8060S (ROCm 7.15, hipBLASLt 1.4.1), every row of the shipped table uses solution 2390, and hipBLASLt rejects it for every GLM shape (prefill gemm: Lt fallback; solution 2390 rejects actual T=1024 N=8192 K=4096 ...). STRATA_HIPBLASLT_VERBOSE=1 reports launches=0 fallbacks=2979 for one 8K-token prompt, so the prompt path runs entirely on plain hipBLAS.

The table.

  • How it was made: tools/hip/tune_hipblaslt --workspace-mib 16, matching the engine's kPfWorkspace.
  • Shapes: the 12 shapes the prompt path runs, taken from the fallback log, at T = 128, 256, 512, 768 and 1024. That covers the setup's MAYA_GLM_PREFILL_SUB=1024 and the shorter last sub-batch.
  • Result: 60 rows, each 3.7–7.0x faster than hipBLAS at T=1024 and within the tuner's error gate (relative L2 ~1e-5). With it, the engine logs 0 fallbacks.

Measured. Radeon 8060S (Ryzen AI MAX+ 395, 128 GB with 108 GB GTT), unsloth's GLM-5.3-Flash UD-IQ2_XXS, 512K context. Setup defaults (MAYA_GLM_PREFILL_SUB=1024, MAYA_GLM_PREFILL_MB=6144), only the table differs. ./maya.sh --bench, twice each, alternating:

shipped table this table
prefill, 2K tokens 155 / 159 tok/s 294 / 298 (×1.9)
prefill, 8K tokens 159 / 159 tok/s 306 / 302 (×1.9)
decode 29.8 tok/s 30.0 tok/s (unchanged: these GEMMs run only in the prompt path)

Engine profile (STRATA_GLM_PREFILL_PROF=1, two ~9K-token prompts): kda_proj 2.47 → 0.70 ms/token, dsa_proj 0.87 → 0.28, shexp 0.44 → 0.09, dense_ffn 0.25 → 0.06.

Caveats

  • Possibly a different build: the shipped table may have been tuned on a different ROCm build of hipBLASLt 1.4.1, where 2390 is valid. Solution IDs can differ between builds. If so, on that build these IDs would be rejected or pick other valid kernels. Correctness is unaffected, since every solution computes the same GEMM, but speed could drop back to hipBLAS. I can only measure this one build.
  • Last bits: a prompt's last bits can change with the GEMM's kernel, as they can with any table.
  • Not measured: other gfx1151 machines, Windows, other quants.
  • Checks: tools/test_maya_hip.py and tools/check_hip_compat.py pass.

🔄 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/mw00/project-maya/pull/631 **Author:** [@mrsirg97-rgb](https://github.com/mrsirg97-rgb) **Created:** 10/28/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `gfx1151-glm-hipblaslt-retune` --- ### 📝 Commits (1) - [`e42d738`](https://github.com/mw00/project-maya/commit/e42d7380fbde8aa60583983f548f7bc9de75a24b) gfx1151: retune the GLM hipBLASLt table for hipBLASLt 1.4.1 (100401) ### 📊 Changes **1 file changed** (+62 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `tools/hip/gfx1151-glm-hipblaslt-100401.txt` (+62 -13) </details> ### 📄 Description Retunes `tools/hip/gfx1151-glm-hipblaslt-100401.txt`: the GLM prompt path's FP16 GEMMs on Strix / Gorgon Halo with hipBLASLt 1.4.1. The setup passes this table to every gfx1151 GLM config, so the fix reaches users on the next setup with no settings to change. **The problem.** On a Radeon 8060S (ROCm 7.15, hipBLASLt 1.4.1), every row of the shipped table uses solution 2390, and hipBLASLt rejects it for every GLM shape (`prefill gemm: Lt fallback; solution 2390 rejects actual T=1024 N=8192 K=4096 ...`). `STRATA_HIPBLASLT_VERBOSE=1` reports `launches=0 fallbacks=2979` for one 8K-token prompt, so the prompt path runs entirely on plain hipBLAS. **The table.** - **How it was made:** `tools/hip/tune_hipblaslt --workspace-mib 16`, matching the engine's `kPfWorkspace`. - **Shapes:** the 12 shapes the prompt path runs, taken from the fallback log, at T = 128, 256, 512, 768 and 1024. That covers the setup's `MAYA_GLM_PREFILL_SUB=1024` and the shorter last sub-batch. - **Result:** 60 rows, each 3.7–7.0x faster than hipBLAS at T=1024 and within the tuner's error gate (relative L2 ~1e-5). With it, the engine logs 0 fallbacks. **Measured.** Radeon 8060S (Ryzen AI MAX+ 395, 128 GB with 108 GB GTT), unsloth's GLM-5.3-Flash UD-IQ2_XXS, 512K context. Setup defaults (`MAYA_GLM_PREFILL_SUB=1024`, `MAYA_GLM_PREFILL_MB=6144`), only the table differs. `./maya.sh --bench`, twice each, alternating: | | shipped table | this table | | --- | --- | --- | | prefill, 2K tokens | 155 / 159 tok/s | **294 / 298** (×1.9) | | prefill, 8K tokens | 159 / 159 tok/s | **306 / 302** (×1.9) | | decode | 29.8 tok/s | 30.0 tok/s (unchanged: these GEMMs run only in the prompt path) | Engine profile (`STRATA_GLM_PREFILL_PROF=1`, two ~9K-token prompts): `kda_proj` 2.47 → 0.70 ms/token, `dsa_proj` 0.87 → 0.28, `shexp` 0.44 → 0.09, `dense_ffn` 0.25 → 0.06. **Caveats** - **Possibly a different build:** the shipped table may have been tuned on a different ROCm build of hipBLASLt 1.4.1, where 2390 is valid. Solution IDs can differ between builds. If so, on that build these IDs would be rejected or pick other valid kernels. Correctness is unaffected, since every solution computes the same GEMM, but speed could drop back to hipBLAS. I can only measure this one build. - **Last bits:** a prompt's last bits can change with the GEMM's kernel, as they can with any table. - **Not measured:** other gfx1151 machines, Windows, other quants. - **Checks:** `tools/test_maya_hip.py` and `tools/check_hip_compat.py` pass. --- <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 labels
pull-request
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
mw00/project-maya#639
No description provided.