[PR #14] [MERGED] HIP: two GPUs (--gpus 0,1) with MTP drafting; one hipBLASLt table per card #278

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

📋 Pull Request Information

Original PR: https://github.com/mw00/project-maya/pull/14
Author: @boxwrench
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @mw00

Base: main ← Head: amd/hip-two-gpu


📝 Commits (2)

  • 6a14fee Let STRATA_HIPBLASLT_TUNING name one table per architecture
  • 6352e37 HIP: split the model across two GPUs (--gpus 0,1), with MTP drafting

📊 Changes

5 files changed (+104 additions, -25 deletions)

View changed files

📝 README.md (+2 -2)
📝 docs/AMD_MAYA.md (+22 -2)
📝 maya.py (+39 -15)
📝 src/prefill/gemm.cu (+19 -2)
📝 tools/test_maya_hip.py (+22 -4)

📄 Description

Follow-up to #7 (tracking: #6): Maya's layer split on two AMD cards, with the MTP draft on the second card.

What changes

  • Installer (maya.py): --gpus 0,1 is accepted on HIP for two supported cards (they may be different architectures). The larger card goes first (it takes the bigger first half), STRATA_GLM_SPLIT is left to the engine (midpoint + 2, MTP on), and one hipBLASLt table per architecture is written. One GPU is unchanged.
  • hipBLASLt tables (src/prefill/gemm.cu): STRATA_HIPBLASLT_TUNING may name several tables separated by :; each device takes the first whose header matches its architecture and hipBLASLt version. A single path behaves as before. HIP-only code, so CUDA is unaffected.
  • Docs: a "Two GPUs" section in docs/AMD_MAYA.md; the README's AMD lines say one GPU or two.
  • Tests: tools/test_maya_hip.py checks the two-GPU config (order, no split override, both tables) and rejects bad lists (0,2 with an unsupported iGPU, three cards, a repeated card, non-numbers).

The engine needed no change: the split's host hop and the speculative decode work on HIP as they are.

Measured

AI PRO R9700 (32 GB, first) + RX 7900 XT (20 GB), Ryzen 7 9800X3D, 192 GB RAM, ROCm 7.2.1, Maya-S, 8K context, STRATA_GLM_RAM_GB=90, greedy, 256-token answers, median of 10 requests:

one RX 7900 XT R9700 + RX 7900 XT
answers ~15 tok/s ~33 tok/s (drafts accepted ~76%)
4K-token prompt ~414 tok/s ~490 tok/s
  • 39 back-to-back requests (1.8-4K-token prompts) with no error, plus the 7 smoke checks on this branch's build.
  • Split sweep: 24 (default) 35.4, 26 35.9, 28 34.4 tok/s answers - the default stays.

Not tested: CUDA (no NVIDIA toolchain here); the change to gemm.cu is inside the HIP-only hipBLASLt path.


🔄 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/14 **Author:** [@boxwrench](https://github.com/boxwrench) **Created:** 10/8/2026 **Status:** ✅ Merged **Merged:** 10/8/2026 **Merged by:** [@mw00](https://github.com/mw00) **Base:** `main` ← **Head:** `amd/hip-two-gpu` --- ### 📝 Commits (2) - [`6a14fee`](https://github.com/mw00/project-maya/commit/6a14fee5865d7b06a6a76b875e47b74cf3993f6c) Let STRATA_HIPBLASLT_TUNING name one table per architecture - [`6352e37`](https://github.com/mw00/project-maya/commit/6352e37bbcbb16191fe8edbefb0632d6ed3aec21) HIP: split the model across two GPUs (--gpus 0,1), with MTP drafting ### 📊 Changes **5 files changed** (+104 additions, -25 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+2 -2) 📝 `docs/AMD_MAYA.md` (+22 -2) 📝 `maya.py` (+39 -15) 📝 `src/prefill/gemm.cu` (+19 -2) 📝 `tools/test_maya_hip.py` (+22 -4) </details> ### 📄 Description Follow-up to #7 (tracking: #6): Maya's layer split on two AMD cards, with the MTP draft on the second card. ### What changes - **Installer (`maya.py`):** `--gpus 0,1` is accepted on HIP for two supported cards (they may be different architectures). The larger card goes first (it takes the bigger first half), `STRATA_GLM_SPLIT` is left to the engine (midpoint + 2, MTP on), and one hipBLASLt table per architecture is written. One GPU is unchanged. - **hipBLASLt tables (`src/prefill/gemm.cu`):** `STRATA_HIPBLASLT_TUNING` may name several tables separated by `:`; each device takes the first whose header matches its architecture and hipBLASLt version. A single path behaves as before. HIP-only code, so CUDA is unaffected. - **Docs:** a "Two GPUs" section in `docs/AMD_MAYA.md`; the README's AMD lines say one GPU or two. - **Tests:** `tools/test_maya_hip.py` checks the two-GPU config (order, no split override, both tables) and rejects bad lists (`0,2` with an unsupported iGPU, three cards, a repeated card, non-numbers). The engine needed no change: the split's host hop and the speculative decode work on HIP as they are. ### Measured AI PRO R9700 (32 GB, first) + RX 7900 XT (20 GB), Ryzen 7 9800X3D, 192 GB RAM, ROCm 7.2.1, Maya-S, 8K context, `STRATA_GLM_RAM_GB=90`, greedy, 256-token answers, median of 10 requests: | | one RX 7900 XT | R9700 + RX 7900 XT | |---|---|---| | answers | ~15 tok/s | ~33 tok/s (drafts accepted ~76%) | | 4K-token prompt | ~414 tok/s | ~490 tok/s | - 39 back-to-back requests (1.8-4K-token prompts) with no error, plus the 7 smoke checks on this branch's build. - Split sweep: 24 (default) 35.4, 26 35.9, 28 34.4 tok/s answers - the default stays. **Not tested:** CUDA (no NVIDIA toolchain here); the change to `gemm.cu` is inside the HIP-only hipBLASLt path. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-29 21:23:43 +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#278
No description provided.