[PR #1289] [CLOSED] hip: the gfx1100 100401 table covers the small-T expert GEMM (prompt +31.9%) #3360

Closed
opened 2026-11-07 14:40:55 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1289
Author: @leon-strong
Created: 10/7/2026
Status: ❌ Closed

Base: main ← Head: hip-gfx1100-100401-expert-gemm-rows


📝 Commits (1)

  • 102d339 hip: the gfx1100 100401 table covers the small-T expert GEMM (prompt +31.9%)

📊 Changes

2 files changed (+26 additions, -0 deletions)

View changed files

📝 docs/AMD_HIP.md (+9 -0)
📝 tools/hip/gfx1100-hipblaslt-100401.txt (+17 -0)

📄 Description

Extends the table PR #766 shipped as 7984688, same card (RX 7900 XTX), same packaged ROCm 10.0.0, same version id 100401. That calibration covered "the 26 dense GEMM geometries of the shipped gfx1100 table", all at T=4096/8192.

A prompt reaches a different geometry, once per expert group at whatever T the group has, so it never matches a row:

STRATA_HIPBLASLT_VERBOSE=1, GSQ-RCO IQ2_XS, 192000 ctx, 3151-token prompt
  hipBLASLt tuning enabled (26 rows, gfx1100, version 100401)
  642 fallbacks, all f16 N=1280 K=2560 ldy=1280, over 642 distinct T values, 1..1873

That is the small-T expert GEMM, and it is nearly every launch in the prompt. TuningTable::closest() matches on (n, k, ldy) and takes the nearest t_bucket, so these rows are a spread of buckets over the small-T range rather than one row per T. bf16 10240 2560 10240 (the hyper-connection projection, 1 fallback) is covered the same way.

The change — 17 rows added, 26 -> 43. No existing row is changed, including bf16 4 10240 4 8192, where a re-run on this box picked a different solution id (1036 against the shipped 1035); the shipped value is kept and the shape is not touched. Calibrated with tune_hipblaslt built from this tree against the engine's own 32 MiB workspace (gemm.cu:441). All 34 candidates emitted, i.e. none failed the tuner's accuracy gate (rel_l2 <= 1e-4, max_abs <= 1e-2); the 17 that are in are the two geometries the verbose run showed falling back.

Measured, same binary and the same config with the table as the only difference, 3 interleaved pairs, 3151-token prompt:

pair 26 rows 43 rows
1 691.6 tok/s 940.7 tok/s +36.0%
2 712.3 tok/s 943.2 tok/s +32.4%
3 727.7 tok/s 928.7 tok/s +27.6%
mean 710.5 tok/s 937.5 tok/s +31.9%

Decode unchanged (58.6 -> 60.6 tok/s, inside this box's 2.3% run drift). STRATA_HIPBLASLT_VERBOSE=1 reports fallbacks=0 with the 43 rows against 642 with the 26.

hip_prefill_hipblaslt_gemm passes (4/4 cases, exit 0). Note it smoke-tests only 2 of the table's rows (N=48, N=512), so it exercises the load and resolve path, not these rows' arithmetic; the per-solution accuracy above is the tuner's own gate.

Machine: Ryzen 7 9800X3D, RX 7900 XTX, WSL2.


🔄 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/1289 **Author:** [@leon-strong](https://github.com/leon-strong) **Created:** 10/7/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `hip-gfx1100-100401-expert-gemm-rows` --- ### 📝 Commits (1) - [`102d339`](https://github.com/Niko1221/Strata/commit/102d3395df91f2d12bb29d1797351112c92ab435) hip: the gfx1100 100401 table covers the small-T expert GEMM (prompt +31.9%) ### 📊 Changes **2 files changed** (+26 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/AMD_HIP.md` (+9 -0) 📝 `tools/hip/gfx1100-hipblaslt-100401.txt` (+17 -0) </details> ### 📄 Description Extends the table PR #766 shipped as `7984688`, same card (RX 7900 XTX), same packaged ROCm 10.0.0, same version id 100401. That calibration covered "the 26 dense GEMM geometries of the shipped gfx1100 table", all at T=4096/8192. A prompt reaches a different geometry, once per expert group at whatever T the group has, so it never matches a row: ``` STRATA_HIPBLASLT_VERBOSE=1, GSQ-RCO IQ2_XS, 192000 ctx, 3151-token prompt hipBLASLt tuning enabled (26 rows, gfx1100, version 100401) 642 fallbacks, all f16 N=1280 K=2560 ldy=1280, over 642 distinct T values, 1..1873 ``` That is the small-T expert GEMM, and it is nearly every launch in the prompt. `TuningTable::closest()` matches on `(n, k, ldy)` and takes the nearest `t_bucket`, so these rows are a spread of buckets over the small-T range rather than one row per T. `bf16 10240 2560 10240` (the hyper-connection projection, 1 fallback) is covered the same way. **The change** — 17 rows added, 26 -> 43. No existing row is changed, including `bf16 4 10240 4 8192`, where a re-run on this box picked a different solution id (1036 against the shipped 1035); the shipped value is kept and the shape is not touched. Calibrated with `tune_hipblaslt` built from this tree against the engine's own 32 MiB workspace (`gemm.cu:441`). All 34 candidates emitted, i.e. none failed the tuner's accuracy gate (rel_l2 <= 1e-4, max_abs <= 1e-2); the 17 that are in are the two geometries the verbose run showed falling back. **Measured**, same binary and the same config with the table as the only difference, 3 interleaved pairs, 3151-token prompt: | pair | 26 rows | 43 rows | | |---|---:|---:|---:| | 1 | 691.6 tok/s | 940.7 tok/s | +36.0% | | 2 | 712.3 tok/s | 943.2 tok/s | +32.4% | | 3 | 727.7 tok/s | 928.7 tok/s | +27.6% | | mean | 710.5 tok/s | 937.5 tok/s | **+31.9%** | Decode unchanged (58.6 -> 60.6 tok/s, inside this box's 2.3% run drift). `STRATA_HIPBLASLT_VERBOSE=1` reports `fallbacks=0` with the 43 rows against 642 with the 26. `hip_prefill_hipblaslt_gemm` passes (4/4 cases, exit 0). Note it smoke-tests only 2 of the table's rows (`N=48`, `N=512`), so it exercises the load and resolve path, not these rows' arithmetic; the per-solution accuracy above is the tuner's own gate. Machine: Ryzen 7 9800X3D, RX 7900 XTX, WSL2. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:55 +07:00
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#3360
No description provided.