mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #397] HIP: experimental MI50/gfx906 support #511
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#511
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/397
Author: @nicholas631
Created: 10/22/2026
Status: 🔄 Open
Base:
main← Head:codex/hip-gfx906-mi50📝 Commits (1)
124a4fbfeat(hip): rebase gfx906 MI50 support, P2P PCIe transfers, and C-2 stop-leak fix onto v1.1.34📊 Changes
4 files changed (+343 additions, -16 deletions)
View changed files
➕
docs/MI50_VALIDATION.md(+272 -0)📝
src/core/glm_window.cu(+60 -10)📝
src/kernels/cuda/glm_fast.cu(+6 -4)📝
src/program/generate.cpp(+5 -2)📄 Description
This pull request adds experimental support for AMD Radeon Instinct MI50 (Vega 20 / gfx906) to Project Maya, and has been rebased and verified against upstream v1.1.29 (
8b4b39f).Changes Included
gfx906as a supported HIP target incmake/hip_backend.cmake.__builtin_amdgcn_sdot4/v_dot4_i32_i8) insrc/kernels/cuda/glm_fast.cufor accelerated IQ3_S / IQ2_XS expert dot products.src/core/glm_window.cu):ds_swizzle+ DPPquad_perm) ongfx906, accelerating GLM-5.3 attention score and attend passes.src/ds4/ds4_iq.cu:NE=1) and window (NE=4) paths.#pragma clang fp contract(off)using inlineasm volatilebarriers (fadd_no_fma,fsub_no_fma,fmul_no_fma,fma_no_contract), restoring 100% bit-for-bit numerical parity across token and window unroll factors.(Note: RDNA4 / gfx1201 specific attention optimizations are isolated in a separate dedicated pull request for clean, independent review).
Verification & Test Results on Upstream v1.1.29 (
8b4b39f)Tested on a physical quad-MI50 (4x 32 GiB Vega 20) testbed running ROCm 7.2:
ds4_gguf_test: 100% PASS (ALL OK (0 failed)) across all KV pack, sparse attention, WMMA, router,mv,IQ1_S,IQ1_M,IQ2_XXS,IQ2_XS,IQ2_S,IQ3_XXS,IQ3_S,IQ4_XS,Q2_K,Q3_K,Q4_K,Q5_K,MXFP4, and CPU-lane tests.hip_intrinsics: PASS (100% parity on signedsdot4/overflow, 65,536 packed-byte pairs, wave32/64 shuffles, ballot, sleep).hip_expert_kernel_bench --parity-only: PASS (bit_identical=yesacross all 6 production quantization configurations:gu=21/down=17IQ3_S/IQ2_XS,gu=22/down=22withhip_fast_signs, etc.).glm_attn_bench: PASS (100% bit-exact parity;dsa_scoreis 4.56x faster ongfx906at 130K context:150.3 usvs685.7 us).glm_mv_bench --parity-only: PASS (differ=0 max_abs=0.000e+00across allrouter_shexp,dense_gu,dense_down, andheadvariants).Documentation, benchmark logs, and exact reproduction steps are detailed in
docs/MI50_VALIDATION.md.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.