mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #386] Optimize sm100 version with token-aware BM240 tiling, native UE8M0, and direct combine #406
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#406
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/386
Author: @qinqinwo
Created: 7/17/2026
Status: 🔄 Open
Base:
main← Head:perf/sm100-megamoe-b200📝 Commits (1)
df4c356perf: optimize SM100 MegaMoE on B200📊 Changes
7 files changed (+446 additions, -22 deletions)
View changed files
➕
SM100_MEGAMOE_B200.md(+103 -0)📝
csrc/apis/mega.hpp(+18 -5)📝
csrc/jit_kernels/heuristics/mega_moe.hpp(+65 -9)📝
csrc/jit_kernels/impls/sm100_fp8_fp4_mega_moe.hpp(+98 -1)📝
deep_gemm/include/deep_gemm/common/math.cuh(+19 -0)📝
deep_gemm/include/deep_gemm/impls/sm100_fp8_fp4_mega_moe.cuh(+128 -1)📝
deep_gemm/include/deep_gemm/layout/mega_moe.cuh(+15 -6)📄 Description
For DeepSeek-V4-Pro:
The wide sweep from 128 to 32768 tokens per rank has a 1.0206x geometric-mean
speedup. The only measured regression is 4096 tokens per rank at -0.03%,
which is within run-to-run noise.
Across the union of 24 unique token counts, the geometric-mean speedup is
1.0382x (3.82%). Final-source digest checks at 832, 1792, 8192, and 32768
tokens per rank produced bitwise-identical outputs for all 32 rank pairs,
covering the small/mid, BM240, and direct-combine paths. The broader
masked/unmasked regression sweep across small, mid, and BM240 regimes was
also bitwise identical for all 96 tested rank pairs.
(coauthor with agent)
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.