[PR #1187] [CLOSED] gfx906: opt-in Q2_0 gate/up weight reuse without singleton regression #3296

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1187
Author: @0FL01
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: perf/gfx906-q2-gu-global


📝 Commits (3)

  • 829de14 gfx906: add opt-in Q2_0 token-inner gate/up kernel
  • 2a7503d docs: qualify benchmark environment and per-arm ranges
  • cc7eeb6 gfx906: add opt-in exact Q2_0 down bit spreading

📊 Changes

10 files changed (+1869 additions, -14 deletions)

View changed files

➕ bench/results/2026-10-06-gfx906-q2-down-bitspread/README.md (+127 -0)
➕ bench/results/2026-10-06-gfx906-q2-down-bitspread/results.json (+761 -0)
➕ bench/results/2026-10-06-gfx906-q2-down-bitspread/run.py (+60 -0)
➕ bench/results/2026-10-06-gfx906-q2-down-bitspread/unpack_exact.py (+14 -0)
➕ bench/results/2026-10-06-gfx906-q2-gu-global/README.md (+201 -0)
➕ bench/results/2026-10-06-gfx906-q2-gu-global/fixtures.py (+50 -0)
➕ bench/results/2026-10-06-gfx906-q2-gu-global/results.json (+445 -0)
➕ bench/results/2026-10-06-gfx906-q2-gu-global/run.py (+58 -0)
📝 src/kernels/cuda/iq_kernels.cu (+118 -6)
📝 src/kernels/native_expert_bench.cpp (+35 -8)

📄 Description

Change

  • Adds opt-in STRATA_EXP_MODE=13 for Q2_0 gate/up on gfx906, H=2560 / FF=640.
  • Reuses weights across up to four tokens without LDS staging, retaining the baseline 16-row block geometry.
  • Default mode 7 and down projection remain unchanged.

Testing

  • Fresh-engine ABBA on two 16 GiB gfx906 GPUs: TG +1.48% at 4K and +1.43% at 64K, with all 1024 output IDs identical in each code workload.
  • 280 component cases and 282 stronger intermediate-parity cases passed.
  • No measured singleton regression in the tested grid.

Notes

  • Russian baseline runs were themselves nondeterministic, so that timing is not equal-work evidence.
  • Existing gfx906 build fixes (#1083) are excluded.
  • Related PRs were reviewed; no direct duplicate found.
  • Developed with an OpenAI coding assistant.

🔄 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/1187 **Author:** [@0FL01](https://github.com/0FL01) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `perf/gfx906-q2-gu-global` --- ### 📝 Commits (3) - [`829de14`](https://github.com/Niko1221/Strata/commit/829de14f9d6953c90f8d5d1302ec1dc469c98baa) gfx906: add opt-in Q2_0 token-inner gate/up kernel - [`2a7503d`](https://github.com/Niko1221/Strata/commit/2a7503d82f39ac445617d61a9fd82282ebaeef33) docs: qualify benchmark environment and per-arm ranges - [`cc7eeb6`](https://github.com/Niko1221/Strata/commit/cc7eeb60db52f0a1c54b9fcd7f6eaf46f738a4ba) gfx906: add opt-in exact Q2_0 down bit spreading ### 📊 Changes **10 files changed** (+1869 additions, -14 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-10-06-gfx906-q2-down-bitspread/README.md` (+127 -0) ➕ `bench/results/2026-10-06-gfx906-q2-down-bitspread/results.json` (+761 -0) ➕ `bench/results/2026-10-06-gfx906-q2-down-bitspread/run.py` (+60 -0) ➕ `bench/results/2026-10-06-gfx906-q2-down-bitspread/unpack_exact.py` (+14 -0) ➕ `bench/results/2026-10-06-gfx906-q2-gu-global/README.md` (+201 -0) ➕ `bench/results/2026-10-06-gfx906-q2-gu-global/fixtures.py` (+50 -0) ➕ `bench/results/2026-10-06-gfx906-q2-gu-global/results.json` (+445 -0) ➕ `bench/results/2026-10-06-gfx906-q2-gu-global/run.py` (+58 -0) 📝 `src/kernels/cuda/iq_kernels.cu` (+118 -6) 📝 `src/kernels/native_expert_bench.cpp` (+35 -8) </details> ### 📄 Description ## Change - Adds opt-in `STRATA_EXP_MODE=13` for `Q2_0 gate/up` on `gfx906`, `H=2560 / FF=640`. - Reuses weights across up to four tokens without LDS staging, retaining the baseline 16-row block geometry. - Default mode `7` and `down projection` remain unchanged. ## Testing - Fresh-engine ABBA on two `16 GiB gfx906 GPUs`: `TG +1.48%` at `4K` and `+1.43%` at `64K`, with all `1024` output IDs identical in each code workload. - `280` component cases and `282` stronger intermediate-parity cases passed. - No measured singleton regression in the tested grid. ## Notes - Russian baseline runs were themselves nondeterministic, so that timing is not equal-work evidence. - Existing `gfx906` build fixes (#1083) are excluded. - Related PRs were reviewed; no direct duplicate found. - Developed with an OpenAI coding assistant. --- <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:26 +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#3296
No description provided.