mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #201] HIP: enable mixed APU/discrete GPUs and complementary GLM expert helper #395
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#395
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?
Original Pull Request: https://github.com/mw00/project-maya/pull/201
State: closed
Merged: Yes
Changes
STRATA_GLM_EXPERT_HELPER=1selects visible GPU 1; GPU 0 keeps all trunk layers and MTP. A UMA helper aliases the existing pinned RAM tier without another weight copy. Unset the variable to keep the existing path.Enable the helper
For physical GPU 0 = 8060S and GPU 1 = R9700, merge these fields into the existing Maya config, then restart Maya with that config:
Keep the existing pack, context, MTP and memory-budget settings. The GPU order is process-local: R9700 becomes visible GPU 0 (trunk), 8060S becomes visible GPU 1 (helper). The helper value is a device index, not a Boolean. Remove
STRATA_GLM_EXPERT_HELPERto disable it; layer split must stay off while the helper is enabled.Measured results
Radeon AI PRO R9700 32 GiB + Ryzen AI Max+ 395 / Radeon 8060S, Linux, ROCm
10.2.0a20261014.Maya-S-v2-IQ2_XXS, 65,536 context / 32,768 input / 2,048 output, MTP on, thinking off, greedy.
Medians of three runs after a 4,096/64-token warmup per configuration; zero prompt reuse. Code-generation workload, same binary and inputs throughout.
Helper enabled vs disabled on R9700: +60% decode, 22% less total request time. This is not an isolated A/B of PR #578 against the earlier helper. R9700 single GPU uses host RAM; automatic layer split selected 27/18 layers.
Measurements use
2a3343f(v1.1.10 base); the performance table has not been rerun after the upstream v1.1.12 merge. Generated text differs across modes/repeats; this is a throughput test, not a quality evaluation. Native GGUF only, not EXL3. NVIDIA, Windows and a discrete helper were not validated here.Validation
max_abs=0.Upstream sync: merged v1.1.12 main (
7f96a3a) in9246ccb. Resolved the helper-insertion / EXL3-comment conflict while retaining both implementations. The original PR's added/deleted lines are unchanged; the HIP engine build and checks above passed again after the merge.Reproduction settings and engine evidence
Hardware: 16C/32T AI Max+ 395, 122.7 GiB OS-visible RAM; R9700 PCIe 5.0 x16; 8060S UMA (120 GiB HIP-reported budget); YMTC PC41Q-2TB-B NVMe. One Release HIP binary built for
gfx1201;gfx1151serves all four configurations.Helper command, from the repository root (
MAYA_S_PACKpoints to the existing pack):The stdin harness sends a 4,096/64 warmup followed by three 32,768/2,048 requests, temperature 0 / seed 1234. Loading and warmup are excluded. Existing tuning tables mismatch the new hipBLASLt version, so all paths used the hipBLASEx fallback; no retuning between runs.
For the R9700 baseline, unset the helper and expose only physical R9700 (
ROCR_VISIBLE_DEVICES=1, no HIP mask). For layer split, unset helper andSTRATA_GLM_SPLIT, retainHIP_VISIBLE_DEVICES=1,0, and add--layer-split auto. For Strix Halo alone, use both visibility masks0, unset helper and keepSTRATA_GLM_SPLIT=0.Selected engine evidence (the HIP build logs device labels as CUDA):