mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[PR #3] [CLOSED] Add experimental Linux gfx1100 setup for Maya GLM #273
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#273
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/3
Author: @boxwrench
Created: 10/7/2026
Status: ❌ Closed
Base:
main← Head:amd/glm-gfx1100-setup📝 Commits (2)
fa3e4feAdd experimental Linux gfx1100 setup and GLM HIP compatibilityb3c89bfLet HIP choose the GLM prefill chunk📊 Changes
18 files changed (+653 additions, -16 deletions)
View changed files
📝
.gitignore(+4 -0)📝
CMakeLists.txt(+8 -0)📝
README.md(+3 -0)📝
docs/AMD_HIP.md(+5 -0)➕
docs/AMD_MAYA.md(+95 -0)➕
docs/AMD_UPSTREAM.md(+72 -0)📝
include/strata/hip_compat/cublas_v2.h(+4 -0)➕
include/strata/hip_compat/cuda_profiler_api.h(+4 -0)📝
include/strata/hip_compat/cuda_runtime.h(+10 -0)📝
maya.py(+126 -10)📝
setup.py(+1 -1)📝
src/core/glm_fast_path.cu(+6 -0)📝
src/core/glm_model.cu(+1 -1)📝
src/kernels/cuda/glm_batch.cu(+20 -4)📝
src/kernels/cuda/glm_fast.cu(+11 -0)📝
src/kernels/glm_hc_parity.cpp(+97 -0)➕
tests/hip/glm_prefill_attention.cpp(+89 -0)➕
tools/test_maya_hip.py(+97 -0)📄 Description
Maya's installer assumes NVIDIA/CUDA, and the inherited HIP layer lacks several mappings required by Maya's GLM rewrite. Add an opt-in, experimental Linux HIP setup for RX 7900 XT/XTX (
gfx1100), with one GPU and text input.Draft: full-model startup and inference are still pending. The model weights are downloading; the draft can be reviewed now, and will remain draft until an end-to-end run and the follow-ups below are complete. The publication/KDA fixes are in companion #2; this branch keeps those changes separate.
Changes
--backend hip, KFD GPU selection restricted to gfx1100, system ROCm 7 prerequisite checks, a separatebuild-hipstamp, rebuild handling, and HIP serving configs. Preserve explicit memory-tuning overrides and skip vision.Adding
cmaketosetup.py'sENGINE_SOURCESchanges the source hash: existing CUDA installs will rebuild once after updating. CUDA execution retains its WMMA path, but CUDA was not compile-checked because this machine has nonvcc. Please build CUDA and run its HC parity test before merging.Validation
Host: RX 7900 XT (gfx1100, 20 GiB), Ryzen 7 9800X3D, 192 GB DDR5, native Ubuntu Linux, system ROCm 7.2.1 / Clang 22.
Initially developed from
c53ae2b; rebased and retested on Maya 1.3.0,70e0746. Results below use this draft plus the companion handoff/KDA fixes together. The independent PR branches combine without conflicts into the exact tested source tree.The full engine and parity suite were tested on gfx1100 only. Isolated shared/GLM handoff tests also pass on gfx1201; that does not establish full-model support. R9700 enablement and a wider upstream HIP-layer refresh belong in a later PR. Credit Strata #697 for the companion publication fix.
Before leaving draft
setup.pyhelpers (rocm_root,amd_problem,build_engine_hip) where appropriate. The current path duplicates parts of those helpers to select an existing system ROCm installation and Maya's GLM/MMQ build/configuration; this is a known follow-up, not a claim that the duplication is final.hipBLASLt tables are not installed by this path: GLM's dense prompt products currently call hipBLAS directly, and its expert products use GGML MMQ. The inherited hipBLASLt table loader is in the separate Qwen prefill path. Copying a table alone would not tune these GLM calls; compatible dispatch, shapes and parity/performance checks are needed first. See
docs/AMD_UPSTREAM.md.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.