mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #14] [MERGED] HIP: two GPUs (--gpus 0,1) with MTP drafting; one hipBLASLt table per card #278
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#278
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
6a14feeLet STRATA_HIPBLASLT_TUNING name one table per architecture6352e37HIP: 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
maya.py):--gpus 0,1is 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_SPLITis left to the engine (midpoint + 2, MTP on), and one hipBLASLt table per architecture is written. One GPU is unchanged.src/prefill/gemm.cu):STRATA_HIPBLASLT_TUNINGmay 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/AMD_MAYA.md; the README's AMD lines say one GPU or two.tools/test_maya_hip.pychecks the two-GPU config (order, no split override, both tables) and rejects bad lists (0,2with 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:Not tested: CUDA (no NVIDIA toolchain here); the change to
gemm.cuis inside the HIP-only hipBLASLt path.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.