mirror of
https://github.com/deepseek-ai/DeepGEMM.git
synced 2026-11-05 00:47:26 +00:00
[PR #316] [MERGED] Add various optimizations and Mega MoE benchmarks #361
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#361
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/316
Author: @zheanxu
Created: 4/24/2026
Status: ✅ Merged
Merged: 4/24/2026
Merged by: @LyricZhao
Base:
main← Head:mega-update📝 Commits (4)
a266725Merge with private repoe1b8e01Add Mega MoE Benchmarkc1115ccMinor fix9fd9460Update📊 Changes
21 files changed (+1272 additions, -368 deletions)
View changed files
📝
README.md(+29 -29)📝
csrc/apis/attention.hpp(+37 -14)📝
csrc/apis/mega.hpp(+37 -18)📝
csrc/jit_kernels/heuristics/mega_moe.hpp(+52 -23)📝
csrc/jit_kernels/impls/sm100_fp8_fp4_mega_moe.hpp(+11 -1)📝
csrc/jit_kernels/impls/smxx_fp8_fp4_paged_mqa_logits.hpp(+33 -15)📝
deep_gemm/__init__.py(+1 -1)📝
deep_gemm/include/deep_gemm/comm/barrier.cuh(+9 -0)📝
deep_gemm/include/deep_gemm/impls/sm100_fp4_mqa_logits.cuh(+2 -1)📝
deep_gemm/include/deep_gemm/impls/sm100_fp4_paged_mqa_logits.cuh(+72 -58)📝
deep_gemm/include/deep_gemm/impls/sm100_fp8_fp4_mega_moe.cuh(+45 -29)📝
deep_gemm/include/deep_gemm/impls/sm100_fp8_paged_mqa_logits.cuh(+69 -44)📝
deep_gemm/include/deep_gemm/impls/sm90_fp8_paged_mqa_logits.cuh(+7 -4)📝
deep_gemm/include/deep_gemm/layout/mega_moe.cuh(+15 -10)📝
deep_gemm/include/deep_gemm/ptx/ld_st.cuh(+6 -2)📝
deep_gemm/include/deep_gemm/scheduler/paged_mqa_logits.cuh(+153 -28)📝
deep_gemm/mega/__init__.py(+4 -4)➕
scripts/quick_plot_pm.py(+448 -0)➕
scripts/run_ncu_mega_moe.sh(+89 -0)📝
tests/test_attention.py(+56 -21)...and 1 more files
📄 Description
We benchmarked Mega MoE on DeepSeek-V4-Flash and DeepSeek-V4-Pro under 8-way expert parallelism (EP8), testing at various batch sizes (i.e., the number of tokens per rank) to cover different serving scenarios. All values are averaged across 8 ranks.
DeepSeek-V4-Flash
DeepSeek-V4-Flash has 256 experts with top-k=6 (each token is routed to 6 experts), a hidden dimension of 4096, and an intermediate hidden dimension of 2048.
DeepSeek-V4-Pro
DeepSeek-V4-Pro has 384 experts with top-k=6, a hidden dimension of 7168, and an intermediate hidden dimension of 3072.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.