mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #325] [CLOSED] feat: add epilogue warpgroup to SM90 FP8 MQA logits kernel #364
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#364
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/325
Author: @leavelet
Created: 5/1/2026
Status: ❌ Closed
Base:
main← Head:ws-upstream📝 Commits (6)
d39b2f3feat: warp-specialized SM90 FP8 MQA logits kernel0c41e5dfix: cleanup SM90 FP8 MQA logits kernel for upstreamc7218cdrefactor: derive kNumEpiStages from kNumKVStages, restore single-path dispatchere4c8bf0rename: is_ws -> has_epi_wg for clarity441c493refactor: replace DO_PARTIAL_REDUCE macro with lambda8425593style: minor cleanups — use named constants, remove extra blank line📊 Changes
2 files changed (+278 additions, -127 deletions)
View changed files
📝
csrc/jit_kernels/impls/smxx_fp8_fp4_mqa_logits.hpp(+10 -2)📝
deep_gemm/include/deep_gemm/impls/sm90_fp8_mqa_logits.cuh(+268 -125)📄 Description
Add a dedicated epilogue warpgroup to the SM90 FP8 MQA logits kernel, overlapping post-processing (reduce + STG) with the next KV-block's WGMMA compute.
Architecture: 4 TC WGs (512) + 1 Epi WG (128) + 1 TMA WG (128) = 768 threads. TC does dual-bank WGMMA (N=64 split, warpgroup_wait<1> overlap) + partial reduce → STS to epi_buf in SMEM. Epi does LDS → horizontal sum → STG to global. TMA is unchanged.
Key design decisions:
Performance (342 configs, H200 SXM):
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.