[PR #304] [MERGED] hip: fused prompt experts on gfx1100 (RX 7900 XT / XTX) #458

Closed
opened 2026-10-29 21:25:40 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/304
Author: @Cass67
Created: 10/20/2026
Status: ✅ Merged
Merged: 10/21/2026
Merged by: @mw00

Base: main ← Head: hip-gfx1100-fused-prompt-experts


📝 Commits (1)

  • 7031439 hip: fused prompt experts on gfx1100 (RX 7900 XT / XTX)

📊 Changes

4 files changed (+7 additions, -7 deletions)

View changed files

📝 docs/SETTINGS.md (+1 -1)
📝 include/strata/prefill/moe_fused_rdna4.hpp (+1 -1)
📝 src/prefill/moe_fused_rdna4.cu (+2 -2)
📝 tests/hip/prefill_fused_parity.cpp (+3 -3)

📄 Description

The fused int8 WMMA prompt experts from #98 were already compiled for gfx1100, but the runtime gate in moe_fused_rdna4.cu only let gfx1151 use them, so the 7900 XT stayed on MMQ. This adds gfx1100 to that gate, and updates SETTINGS.md and the parity test messages to match.

I ran hip_prefill_fused_parity on a 7900 XT and it passes, all 24 type pairs at both clamp limits, with fused vs MMQ at 1e-4 or below.

For speed I used one binary and toggled MAYA_GLM_PREFILL_FUSED=0 vs on. The box is 4x RX 7900 XT, an i9-9900K and 60 GB RAM, running Maya-S24 (IQ2_XXS gate/up, IQ2_S down) on ROCm 10 (TheRock 10.0.0a20260730), v1.1.17, 262K context. Engine prompt speed in tok/s, off vs on:

1.3K at 35K depth: 306 vs 347
2.8K: 447 vs 505
3.7K: 549 vs 603
7.9K: 866 vs 919
16K: 1093 vs 1149

So that's +5-13%, and decode doesn't change. Greedy answers stay correct; the text drifts from MMQ after a hundred characters or so, which is what I'd expect from int8 vs q8_1 rounding.

One more thing I didn't put in the diff: MAYA_GLM_PREFILL_ATTN=wmma2 also helps on gfx1100. Together with the fused experts it's +14-18% vs base on the same prompts. I left the attention default alone because the only check I have for it is greedy text, not a parity test. If you'd rather make wmma2 the gfx1100 default here too, I'm happy to add it.

🤖 Generated with Claude Code


🔄 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/304 **Author:** [@Cass67](https://github.com/Cass67) **Created:** 10/20/2026 **Status:** ✅ Merged **Merged:** 10/21/2026 **Merged by:** [@mw00](https://github.com/mw00) **Base:** `main` ← **Head:** `hip-gfx1100-fused-prompt-experts` --- ### 📝 Commits (1) - [`7031439`](https://github.com/mw00/project-maya/commit/70314393ca5c6f363f9cc766b4e2ea67d1a0e355) hip: fused prompt experts on gfx1100 (RX 7900 XT / XTX) ### 📊 Changes **4 files changed** (+7 additions, -7 deletions) <details> <summary>View changed files</summary> 📝 `docs/SETTINGS.md` (+1 -1) 📝 `include/strata/prefill/moe_fused_rdna4.hpp` (+1 -1) 📝 `src/prefill/moe_fused_rdna4.cu` (+2 -2) 📝 `tests/hip/prefill_fused_parity.cpp` (+3 -3) </details> ### 📄 Description The fused int8 WMMA prompt experts from #98 were already compiled for gfx1100, but the runtime gate in moe_fused_rdna4.cu only let gfx1151 use them, so the 7900 XT stayed on MMQ. This adds gfx1100 to that gate, and updates SETTINGS.md and the parity test messages to match. I ran hip_prefill_fused_parity on a 7900 XT and it passes, all 24 type pairs at both clamp limits, with fused vs MMQ at 1e-4 or below. For speed I used one binary and toggled MAYA_GLM_PREFILL_FUSED=0 vs on. The box is 4x RX 7900 XT, an i9-9900K and 60 GB RAM, running Maya-S24 (IQ2_XXS gate/up, IQ2_S down) on ROCm 10 (TheRock 10.0.0a20260730), v1.1.17, 262K context. Engine prompt speed in tok/s, off vs on: 1.3K at 35K depth: 306 vs 347 2.8K: 447 vs 505 3.7K: 549 vs 603 7.9K: 866 vs 919 16K: 1093 vs 1149 So that's +5-13%, and decode doesn't change. Greedy answers stay correct; the text drifts from MMQ after a hundred characters or so, which is what I'd expect from int8 vs q8_1 rounding. One more thing I didn't put in the diff: MAYA_GLM_PREFILL_ATTN=wmma2 also helps on gfx1100. Together with the fused experts it's +14-18% vs base on the same prompts. I left the attention default alone because the only check I have for it is greedy text, not a parity test. If you'd rather make wmma2 the gfx1100 default here too, I'm happy to add it. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:25:40 +07:00
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#458
No description provided.