mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[PR #19] [MERGED] HIP: faster decode expert kernels on RDNA3/3.5 (RX 7900 XT +8.6% answers, bit-identical) #285
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#285
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/19
Author: @boxwrench
Created: 10/8/2026
Status: ✅ Merged
Merged: 10/8/2026
Merged by: @mw00
Base:
main← Head:amd/hip-expert-kernels📝 Commits (2)
6f0bdf6HIP: improve RDNA decode expert bandwidth with packed signscb0abc8HIP: retain legacy IQ3_XXS down on gfx1151📊 Changes
5 files changed (+795 additions, -14 deletions)
View changed files
📝
CMakeLists.txt(+5 -0)➕
docs/AMD_EXPERT_KERNELS.md(+151 -0)➕
include/strata/kernels/glm_expert_bench.hpp(+21 -0)📝
src/kernels/cuda/glm_fast.cu(+315 -14)➕
tests/hip/expert_kernel_bench.cpp(+303 -0)📄 Description
Faster decode expert kernels on RDNA3 / RDNA3.5 (HIP only). The routed-expert gate/up and down kernels for the Maya-S formats read their weights more efficiently; results are bit-identical to the current kernels.
What changes (
src/kernels/cuda/glm_fast.cu, HIP builds)STRATA_HIP_EXPERTS_LEGACY=1forces the current kernels everywhere.tests/hip/expert_kernel_bench.cpp(hip_expert_kernel_bench): times old vs new at the decode shape (8 experts, 4096 x 2048) and checks parity.docs/AMD_EXPERT_KERNELS.md.Measured
Kernel benchmark, RX 7900 XT (gfx1100), all parity checks bit-identical (max abs 0, rel L2 0):
Full model, Maya-S, greedy, the same binary with and without
STRATA_HIP_EXPERTS_LEGACY=1:On the Strix Halo the expert kernels were already close to its memory bandwidth (gate/up 204 -> 181 us); its decode is dominated by the dense weights.
glm_ffn_parity,glm_layer_parity,glm_model_test,iq1_s_parityandhip_intrinsicspass; no errors in any run.Not tested: CUDA (no NVIDIA toolchain here; the new kernels are HIP-only).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.