mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #95] [MERGED] HIP: RDNA3 dense GEMV for the decode's mv (Q6_K + BF16 in one launch, bit-exact) #332
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#332
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/95
Author: @mw00
Created: 10/10/2026
Status: ✅ Merged
Merged: 10/10/2026
Merged by: @mw00
Base:
main← Head:gorgon-halo-hip📝 Commits (2)
7f763eaHIP: RDNA3 dense GEMV for the decode's mv (Q6_K + BF16 in one launch, bit-exact)1715cf0HIP RDNA3 GEMV: comments without mv_rows (not on main)📊 Changes
4 files changed (+613 additions, -1 deletions)
View changed files
📝
CMakeLists.txt(+6 -0)📝
include/strata/kernels/glm_expert_bench.hpp(+9 -0)📝
src/kernels/cuda/glm_fast.cu(+294 -1)➕
tests/hip/glm_mv_bench.cu(+304 -0)📄 Description
The Gorgon Halo work's RDNA3 dense GEMV, on its own so it can ship before the MTP rework. On the RDNA 3.5 APUs (gfx115x) the decode's dense GEMVs (mv: the KDA/DSA projections, the shared experts, the dense FFN, the head - Q6_K and BF16) run in one launch of a kernel that keeps two super-blocks' loads in flight, and every output is bit for bit the original kernels'.
What changes
mv_rdna_kernel(src/kernels/cuda/glm_fast.cu, underSTRATA_USE_HIPonly):sudot4, instead of the__vsubss4emulation;STRATA_GLM_MV_RDNA=1runs it on any gfx11 (an RX 7900 has not been measured yet);STRATA_GLM_MV_RDNA=0keeps the original kernels.tests/hip/glm_mv_bench.cu: the model-free benchmark and parity test at Maya's decode shapes (ctestglm_mv_parity).STRATA_USE_HIP; the one shared line (mv()skips the jobs already done) is a no-op there.Measured
Radeon 8065S,
glm_mv_bench, us per batch, original -> new:dense_gu and the head are even. On Maya-S the decode is 3.1% faster (19.27 vs 18.70 tok/s).
Not in this PR
The Gorgon Halo branch's MTP work (cheaper drafts, the acceptance-weighted length search), its complete expert pool, and this kernel's multi-row path for the verify window are all built on the MTP rework (#76). They wait in a stacked PR on #76.
Checks
mv_kernel_t,mv_kernel,row_dot_bf16,dot_q6_K) are the same on main as on the branch where the parity was measured.tools/check_hip_compat.py: every CUDA name mapped.ctest -R glm_mv_parity: all 333 cases bit-exact (9 decode shapes x 37 configurations),differ=0 max_abs=0;STRATA_GLM_MV_RDNA=0), and the same as v1.0.30;🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.