mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #95] [MERGED] Weight gradient kernels for dense and MoE models #245
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#245
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/95
Author: @zheanxu
Created: 5/6/2025
Status: ✅ Merged
Merged: 5/14/2025
Merged by: @LyricZhao
Base:
main← Head:wgrad-gemm📝 Commits (7)
d5470d3Init weight gradient kernels.adf5de0Merge branch 'main' into wgrad-gemm919f55bSupport unaligned n,k and gmem stride6233709Update docsc4a7116Several cleanups279eb03Remove restrictions on Na6ced6fAdd stride(0) assertions📊 Changes
12 files changed (+911 additions, -72 deletions)
View changed files
📝
README.md(+4 -3)📝
deep_gemm/__init__.py(+2 -0)📝
deep_gemm/include/deep_gemm/fp8_gemm.cuh(+0 -15)➕
deep_gemm/include/deep_gemm/fp8_wgrad_gemm.cuh(+362 -0)📝
deep_gemm/include/deep_gemm/mma_utils.cuh(+26 -0)📝
deep_gemm/jit_kernels/__init__.py(+4 -0)📝
deep_gemm/jit_kernels/gemm.py(+43 -21)📝
deep_gemm/jit_kernels/m_grouped_gemm.py(+18 -14)📝
deep_gemm/jit_kernels/runtime.py(+131 -10)➕
deep_gemm/jit_kernels/wgrad_gemm.py(+179 -0)📝
deep_gemm/utils.py(+12 -5)📝
tests/test_core.py(+130 -4)📄 Description
This Pull Request introduces
deepgemm.wgrad_gemm_fp8_fp8_fp32_ntandk_grouped_wgrad_gemm_fp8_fp8_fp32_nt, optimized weight gradient kernels for dense and MoE models. These kernels achieve a ~20% speedup compared to the internal CUTLASS implementation.For detailed usage, refer to the function documentation.
Weight gradient GEMMs for dense models
Grouped weight gradient GEMMs for MoE models
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.