DeepSeek open-source GPU operator library DeepGEMM major update, adding Mega MoE that merges the five-step MoE computation into a single kernel

robot
Abstract generation in progress

ME News message, April 16 (UTC+8), according to Dongcha Beating monitoring, DeepSeek today released the largest update since the open-sourcing of DeepGEMM. This GPU operator library, released during last February’s “Open Source Week,” was originally intended only for FP8 matrix multiplication, but has now been expanded into a complete operator library covering key parts of large-model inference. It supports matrix operations in multiple precisions including FP8, FP4, and BF16, as well as specialized operators such as MoE and attention scoring. The core addition is Mega MoE.

MoE (Mixture of Experts) architecture is the foundation for models such as DeepSeek V3. During inference, it needs to execute five steps in sequence: EP dispatch, the first linear transformation, the SwiGLU activation, the second linear transformation, and EP merging. With the traditional approach, these five steps are performed by five separate kernels in sequence; each call waits for the previous one to finish, and data is repeatedly moved back and forth in GPU memory. Mega MoE fuses these five steps into a single kernel, allowing NVLink communication and Tensor Core computation to run simultaneously, eliminating intermediate waiting and data transfers. At present, it only supports FP8×FP4 precision combinations, requires PyTorch 2.9 or above, and the team says optimization is still ongoing; performance comparison data will be announced later.

Other new additions include: mixed-precision FP8×FP4 matrix multiplication; an FP4 attention scoring operator (Indexer) that supports larger MTP; PDL (Programmed Dependency Launch, a GPU scheduling optimization that reduces kernel launch latency); faster JIT compilation speed; and multiple optimizations for MoE matrix operations. This update also adapts to DeepEPv2’s MoE data layout.

The PR description specifically notes: “This release is only related to DeepGEMM development and has nothing to do with internal model releases.”
(Source: BlockBeats)

DEEPSEEK-1.94%
MEGA1.3%
KERNEL1.12%
ME1.88%
View Original
This page may contain third-party content, which is provided for information purposes only (not representations/warranties) and should not be considered as an endorsement of its views by Gate, nor as financial or professional advice. See Disclaimer for details.
  • Reward
  • Comment
  • Repost
  • Share
Comment
Add a comment
Add a comment
No comments
  • Pinned