mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #17] [MERGED] Strix Halo (gfx1151): unified-memory expert sizing and installer support #282
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#282
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/17
Author: @boxwrench
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @mw00
Base:
main← Head:amd/strix-unified-memory📝 Commits (4)
c12c69dSupport Strix Halo with OS-based unified-memory expert sizingcfd2250Build and register glm_memory_test; keep its asserts in Release628cc8bHIP setup: find a versioned ROCm install (/opt/rocm-X.Y.Z) when /opt/rocm is absent9b45693Test that --gpus with an APU (unified memory) is rejected📊 Changes
11 files changed (+268 additions, -25 deletions)
View changed files
📝
CMakeLists.txt(+3 -0)📝
README.md(+4 -4)📝
docs/AMD_MAYA.md(+36 -7)📝
include/strata/hip_compat/cuda_runtime.h(+1 -0)📝
maya.py(+33 -8)📝
src/core/glm_fast_path.cu(+52 -6)📝
src/core/glm_fast_state.hpp(+2 -0)➕
src/core/glm_memory.hpp(+29 -0)📝
src/core/glm_prefill.cu(+3 -0)➕
tests/glm_memory_test.cpp(+43 -0)📝
tools/test_maya_hip.py(+62 -0)📄 Description
Strix Halo (Ryzen AI Max+ 395, Radeon 8060S, gfx1151) out of the box: the unified-memory follow-up from #6. Until now gfx1151 compiled but setup refused it, and a working config needed hand-set pool and RAM sizes.
What changes
cudaDevAttrIntegrated, HIP builds): the runtime's "VRAM" on an APU is the GTT/carve-out size, not free memory, and pinned host RAM comes out of the same physical memory as the GPU pool. So the expert pool is sized from/proc/meminfoMemAvailable after the dense weights, KV and scratch are allocated:min(expert bytes, MemAvailable - headroom (16 GB, STRATA_GLM_RAM_HEADROOM_GB) - reserve). When every expert fits, each layer gets exactly one slot per expert and the pinned RAM tier is kept to its staging floor; the prompt's disk landing ring is kept small. ExplicitSTRATA_GLM_POOL_GB/STRATA_GLM_RAM_GBstill win. Discrete GPUs and CUDA take the original code path (src/core/glm_memory.hppholds the policy;glm_memory_testchecks it on the host)./opt/rocm-7.2.2) when there is no/opt/rocmlink.docs/AMD_MAYA.md; README mentions it.Checked on a 128 GB Strix Halo (ROCm 7.2.2, Maya-S, 8K context)
unified memory: MemAvailable 109.69 GB, headroom 16.00 GB + 1024 MB reserve, experts need 80.17 GB, pool budget 80.17 GB;expert pool 80.17 GB, 288-288 slots/layer (12096 total);RAM tier is staging only(0.22 GB pinned, was 1.39 GB with hand-set sizes); warm-up 12,096 experts in 17 s.STRATA_GLM_POOL_GB=32 STRATA_GLM_RAM_GB=4the caps are honoured (31.7 GB pool, 4 GB RAM tier).tools/test_maya_hip.py(9 tests),tools/test_hip_archs.py,glm_memory_test, and a gfx1100/gfx1201/gfx1151 build pass.maya.py --backend hip --checkon the Strix box finds the APU and ROCm.Not tested: CUDA (no toolchain here; the new code is HIP-only); discrete AMD cards run the unchanged path.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.