RepositoryCuda
deepseek-ai

deepseek-ai/DeepEP

DeepEP: an efficient expert-parallel communication library

10.5kstars
1.6kforks
183issues
2views

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

2
TINIX TRENDING·Cuda

#2 Repository Của Tuần

🚀 High-Performance Expert Parallelism for Large-Scale ML Training

DeepEP delivers extreme performance for expert parallelism with minimal SM occupation and runtime JIT compilation.

DeepEP (DeepEveryParallel) is a high-performance communication library designed for modern machine learning training and inference. Developed by the team at DeepSeek AI, it focuses on expert parallelism (EP), offering high-throughput and low-latency all-to-all GPU kernels for MoE dispatch and combine operations. It supports low-precision formats like FP8 and includes experimental primitives for pipeline parallelism (PP), context parallelism (CP), and remote memory access (Engram). All kernels are compiled at runtime via a lightweight Just-In-Time (JIT) module, eliminating the need for CUDA compilation during installation.

✨ Highlights

  • Fully JIT Compilation: Kernels are compiled at runtime via a lightweight module, requiring no CUDA compilation during installation.
  • NCCL Gin Backend: Switched from NVSHMEM to the more lightweight NCCL Gin backend, which is header-only and reuses existing NCCL communicators.
  • Unified ElasticBuffer Interface: All EP operations—high-throughput and low-latency—are unified under a single ElasticBuffer interface with a new GEMM layout.
  • Large-Scale Support: Supports up to EP2048 with analytical SM & QP count calculation, removing the need for auto-tuning.
  • Reduced SM Usage: V3-like legacy training reduces SM usage from 24 to 4–6 while maintaining equivalent or better performance.
  • 0 SM Primitives: Achieves 0 SM usage for Engram (with RDMA), PP (with RDMA), and CP (with Copy Engine).
  • Benchmarked Performance: Matches or exceeds hardware bandwidth limits, with up to 1.3x peak performance over V1 while saving up to 4x SM count.
  • Experimental Features: Includes Engram, PP, and CP as experimental primitives for advanced parallelism strategies.

💡 Why it matters

DeepEP stands out by delivering extreme performance with minimal SM occupation, making it ideal for large-scale distributed training where resource efficiency is critical. Its JIT compilation approach removes build-time complexity, while the switch to NCCL Gin reduces dependencies and simplifies integration with existing PyTorch workflows. By unifying high-throughput and low-latency APIs under a single interface, it streamlines development for MoE-based models without sacrificing performance.


#DeepEP #ExpertParallelism #MachineLearning #GPUComputing #TiniX