mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #364] [MERGED] Multiple updates and refactorings #393
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
deepseek-ai/DeepGEMM#393
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/deepseek-ai/DeepGEMM/pull/364
Author: @zheanxu
Created: 6/23/2026
Status: ✅ Merged
Merged: 6/23/2026
Merged by: @LyricZhao
Base:
main← Head:public-release-2606📝 Commits (2)
0e4266ePublic release 26/06feaf586Minor fix📊 Changes
64 files changed (+5087 additions, -5802 deletions)
View changed files
📝
csrc/apis/attention.hpp(+52 -35)📝
csrc/apis/gemm.hpp(+101 -45)📝
csrc/apis/layout.hpp(+25 -15)📝
csrc/apis/mega.hpp(+154 -45)📝
csrc/indexing/main.cu(+2 -4)📝
csrc/jit_kernels/heuristics/config.hpp(+4 -0)📝
csrc/jit_kernels/heuristics/mega_moe.hpp(+96 -50)📝
csrc/jit_kernels/heuristics/runtime.hpp(+1 -1)📝
csrc/jit_kernels/impls/runtime_utils.hpp(+1 -0)📝
csrc/jit_kernels/impls/sm100_bf16_gemm.hpp(+16 -15)➕
csrc/jit_kernels/impls/sm100_bf16_mega_moe.hpp(+185 -0)📝
csrc/jit_kernels/impls/sm100_fp8_fp4_gemm_1d1d.hpp(+30 -20)📝
csrc/jit_kernels/impls/sm100_fp8_fp4_mega_moe.hpp(+16 -12)➖
csrc/jit_kernels/impls/sm100_fp8_gemm_1d1d.hpp(+0 -416)➕
csrc/jit_kernels/impls/sm100_mqa_logits.hpp(+517 -0)📝
csrc/jit_kernels/impls/sm90_bf16_gemm.hpp(+5 -5)📝
csrc/jit_kernels/impls/sm90_fp8_gemm_1d1d.hpp(+8 -8)➕
csrc/jit_kernels/impls/sm90_fp8_mqa_logits.hpp(+399 -0)➖
csrc/jit_kernels/impls/smxx_fp8_fp4_mqa_logits.hpp(+0 -328)➖
csrc/jit_kernels/impls/smxx_fp8_fp4_paged_mqa_logits.hpp(+0 -464)...and 44 more files
📄 Description
In this PR, we merged the four SM100 fp8/fp4 mqa logits kernels (paged/non-paged) into a single kernel and added flexible support for various combinations of
num_heads,head_dim, and reduce precision(float32/bfloat16). This yields ~2% speedup for fp4 non-paged cases, ~10% for fp4 paged varlen (due to scheduler and load balancing improvements), and ~20% when using bf16 precision for reduction.For Mega MoE, we now support BF16 precision, which also brings significant acceleration to BF16 MoE. Additionally, we implemented a ring buffer that substantially reduces memory usage compared to the previous version.
There are also several other minor improvements.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.