According to Scout Beating monitoring, DeepSeek has today released its largest update since open-sourcing DeepGEMM. This GPU operator library, originally released during last year's February "Open Source Week" to perform only FP8 matrix multiplication, has now been expanded to cover a full operator library for key parts of large model inference. It supports various precision matrix operations such as FP8, FP4, and BF16, as well as dedicated operators for MoE and attention scoring.
The flagship addition is Mega MoE. The MoE (Mixture of Experts) architecture is the foundation of models like DeepSeek V3, requiring five sequential steps during inference: EP distribution, first-layer linear transformation, SwiGLU activation, second-layer linear transformation, and EP merging. The traditional approach involves calling five independent kernels sequentially, with each call waiting for the previous step to complete and moving data back and forth in memory. Mega MoE combines these five steps into a single kernel, enabling NVLink communication and Tensor Core computation to occur simultaneously, eliminating intermediate waits and data transfers. Currently, it only supports the FP8×FP4 precision combination, requires PyTorch 2.9 or above, and the team mentioned ongoing optimization with performance comparison data to be released later.
Other additions include: FP8×FP4 mixed-precision matrix multiplication, FP4 indexer for attention scoring supporting larger MTP, PDL (Programmed Dependency Launch, a GPU scheduling optimization to reduce kernel launch latency), faster JIT compilation speed, and various optimizations for MoE matrix operations. This update also aligns with the MoE data layout of DeepEPv2.
A note in the PR statement specifically states: "This release is solely related to DeepGEMM development and is not related to internal model releases."
