[PR #2392] [Engine] hip: hipBLASLt tuning table for gfx1101 (RX 7800 XT, hipBLASLt 1.2.0) #4022

Open
opened 2026-11-07 15:32:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2392
Author: @skuridin
Created: 10/14/2026
Status: 🔄 Open

Base: main ← Head: hip-gfx1101-hipblaslt-table


📝 Commits (1)

  • 910c310 hip: hipBLASLt tuning table for gfx1101 (RX 7800 XT, hipBLASLt 1.2.0)

📊 Changes

2 files changed (+58 additions, -2 deletions)

View changed files

📝 docs/AMD_HIP.md (+13 -2)
➕ tools/hip/gfx1101-hipblaslt-100200.txt (+45 -0)

📄 Description

Problem and result

There is no hipBLASLt table for gfx1101, so the RX 7700 XT / 7800 XT run the prompt's dense GEMMs on plain hipBLAS. This adds one for hipBLASLt 1.2.0 (100200). That is the version in the ROCm 7.10.0a20251120 wheels that setup installs for gfx110X, and the version bundled in the 0.2.0-beta linux-x86_64-hip-rx7900 engine. On an RX 7800 XT, prompts read about 70% faster.

Follows #254, which added gfx1101 support but no table. @dominick253 reported a similar gain on their 7800 XT above (about 500 -> 700 tok/s).

Approach

  • tools/hip/gfx1101-hipblaslt-100200.txt: new, 43 rows. Same geometries as gfx1100-hipblaslt-100401.txt (the small-T expert GEMM included), calibrated with tune_hipblaslt --workspace-mib 32. Two passes in a row picked the same solution id in all 43 rows, and every row beats plain hipBLAS (2.98x to 16.6x per GEMM).
  • docs/AMD_HIP.md: a bullet under "Shipped tables", and the "Community-validated cards" intro mentions it.

No code changes. hipblaslt_table() finds the file by arch and version, so only gfx1101 with hipBLASLt 100200 loads it. Other cards and versions do not change.

Validation

Revision: this commit on top of main cbfd5b92 (engine 0.1.46.2, later than 0.2.0-beta). RX 7800 XT 16 GB, Ryzen 7 5800X3D, 60 GiB RAM, Ubuntu 26.04 (kernel 7.0.0), Docker, ROCm 7.10.0a20251120 wheels. Build flags as setup.py (STRATA_PREFILL_MMQ, STRATA_Q6K_EXPERTS, STRATA_MMQ_KQUANTS, gfx1101). Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 131072 ctx, --kv q4_0.

Passed:

  • hip_prefill_hipblaslt_gemm with the table and STRATA_HIPBLASLT_VERBOSE=1: 4/4 cases PASS, launches=4 fallbacks=0.

  • End to end, three interleaved pairs (baseline, table, baseline, ...), a fresh server each run, cold prompts:

    plain hipBLAS (median, range) with this table (median, range)
    35,537 tok prompt 444.7 (444.2-444.8) tok/s 758.2 (757.9-758.3) tok/s
    91,320 tok prompt 441.0 (441.0-441.2) tok/s 749.7 (749.5-750.1) tok/s
    decode after prompt 43.5 / 50.3 tok/s 44.5 / 47.8 tok/s

    Each table run logged hipBLASLt tuning enabled (43 rows, gfx1101, version 100200) and launches=13328 fallbacks=0 unique_fallback_shapes=0 for the prompts.

  • hipblasLtGetVersion on the libhipblaslt.so.1 in the 0.2.0-beta strata-engine-0.1.45.3-linux-x86_64-hip-rx7900 package returns 100200.

Failed:

  • None observed.

Not run:

  • hip_prefill_hcd_exact_parity skips (exit 77): the table sends no tested T to solution 1176 / 1177.
  • The full HIP ctest, the RX 7700 XT, Windows, and system-ROCm installs (a different hipBLASLt, so the table does not load there).
  • CUDA, SYCL and Metal builds: the PR changes no code.

Limits

  • Only setup.py sets STRATA_HIPBLASLT_TUNING. strata launch and the app do not load tables yet, and the engine package does not ship tools/hip/. Thus Terminal and app users get no gain from this PR unless they set the variable themselves. That is a separate change, and I can open an issue for it.
  • The engine's startup warm-up runs a T=64 N=64 K=320 test shape that the table has no row for. This gives fallbacks=2 once at startup. It has no effect on the prompts.
  • The output is not bit-identical to plain hipBLAS, because the GEMM kernels are different. Decode speed changes a little in both directions. I think the cause is different generated text, which changes draft acceptance (0.60/0.65 and 0.66/0.64). The table only changes prompt GEMMs.

🔄 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/2392 **Author:** [@skuridin](https://github.com/skuridin) **Created:** 10/14/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `hip-gfx1101-hipblaslt-table` --- ### 📝 Commits (1) - [`910c310`](https://github.com/Niko1221/Strata/commit/910c31007b64b988be8c638ef8f9acb2b3418daf) hip: hipBLASLt tuning table for gfx1101 (RX 7800 XT, hipBLASLt 1.2.0) ### 📊 Changes **2 files changed** (+58 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/AMD_HIP.md` (+13 -2) ➕ `tools/hip/gfx1101-hipblaslt-100200.txt` (+45 -0) </details> ### 📄 Description ## Problem and result There is no hipBLASLt table for gfx1101, so the RX 7700 XT / 7800 XT run the prompt's dense GEMMs on plain hipBLAS. This adds one for hipBLASLt 1.2.0 (100200). That is the version in the ROCm 7.10.0a20251120 wheels that setup installs for gfx110X, and the version bundled in the 0.2.0-beta `linux-x86_64-hip-rx7900` engine. On an RX 7800 XT, prompts read about 70% faster. ## Related discussion Follows #254, which added gfx1101 support but no table. @dominick253 reported a similar gain on their 7800 XT above (about 500 -> 700 tok/s). ## Approach - `tools/hip/gfx1101-hipblaslt-100200.txt`: new, 43 rows. Same geometries as `gfx1100-hipblaslt-100401.txt` (the small-T expert GEMM included), calibrated with `tune_hipblaslt --workspace-mib 32`. Two passes in a row picked the same solution id in all 43 rows, and every row beats plain hipBLAS (2.98x to 16.6x per GEMM). - `docs/AMD_HIP.md`: a bullet under "Shipped tables", and the "Community-validated cards" intro mentions it. No code changes. `hipblaslt_table()` finds the file by arch and version, so only gfx1101 with hipBLASLt 100200 loads it. Other cards and versions do not change. ## Validation Revision: this commit on top of main `cbfd5b92` (engine 0.1.46.2, later than 0.2.0-beta). RX 7800 XT 16 GB, Ryzen 7 5800X3D, 60 GiB RAM, Ubuntu 26.04 (kernel 7.0.0), Docker, ROCm 7.10.0a20251120 wheels. Build flags as `setup.py` (`STRATA_PREFILL_MMQ`, `STRATA_Q6K_EXPERTS`, `STRATA_MMQ_KQUANTS`, gfx1101). Qwen3.8-Flash-Next GSQ-RCO IQ3_S, 131072 ctx, `--kv q4_0`. **Passed:** - `hip_prefill_hipblaslt_gemm` with the table and `STRATA_HIPBLASLT_VERBOSE=1`: 4/4 cases PASS, `launches=4 fallbacks=0`. - End to end, three interleaved pairs (baseline, table, baseline, ...), a fresh server each run, cold prompts: | | plain hipBLAS (median, range) | with this table (median, range) | |---|---|---| | 35,537 tok prompt | 444.7 (444.2-444.8) tok/s | 758.2 (757.9-758.3) tok/s | | 91,320 tok prompt | 441.0 (441.0-441.2) tok/s | 749.7 (749.5-750.1) tok/s | | decode after prompt | 43.5 / 50.3 tok/s | 44.5 / 47.8 tok/s | Each table run logged `hipBLASLt tuning enabled (43 rows, gfx1101, version 100200)` and `launches=13328 fallbacks=0 unique_fallback_shapes=0` for the prompts. - `hipblasLtGetVersion` on the `libhipblaslt.so.1` in the 0.2.0-beta `strata-engine-0.1.45.3-linux-x86_64-hip-rx7900` package returns 100200. **Failed:** - None observed. **Not run:** - `hip_prefill_hcd_exact_parity` skips (exit 77): the table sends no tested T to solution 1176 / 1177. - The full HIP ctest, the RX 7700 XT, Windows, and system-ROCm installs (a different hipBLASLt, so the table does not load there). - CUDA, SYCL and Metal builds: the PR changes no code. ## Limits - Only `setup.py` sets `STRATA_HIPBLASLT_TUNING`. `strata launch` and the app do not load tables yet, and the engine package does not ship `tools/hip/`. Thus Terminal and app users get no gain from this PR unless they set the variable themselves. That is a separate change, and I can open an issue for it. - The engine's startup warm-up runs a `T=64 N=64 K=320` test shape that the table has no row for. This gives `fallbacks=2` once at startup. It has no effect on the prompts. - The output is not bit-identical to plain hipBLAS, because the GEMM kernels are different. Decode speed changes a little in both directions. I think the cause is different generated text, which changes draft acceptance (0.60/0.65 and 0.66/0.64). The table only changes prompt GEMMs. --- <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#4022
No description provided.