deepseek-ai/DeepEP-Ascend
A high-performance communication library for machine learning training and inference on Huawei Ascend NPUs.
What it solves
MoE (Mixture-of-Experts) models need to route tokens to different experts and gather results back across many devices. On Huawei Ascend NPUs this communication is a bottleneck. DeepEP-Ascend provides fast, Ascend-native all-to-all operations for expert parallel dispatch and combine, plus other communication primitives, so large MoE training and inference can run efficiently on Ascend hardware.
How it works
DeepEP-Ascend implements buffer-based APIs (EPBuffer, PPBuffer, BucketBuffer, EngramBuffer) that match the NVIDIA DeepEP interface. Its communication kernels are written in Ascend C and use Huawei's HCCL/HCOMM, UBMEM, and URMA libraries. Device kernels are compiled at runtime using DeepJIT, so the library only builds host code during installation and compiles Ascend kernels on first use. EP operations support FP8 dispatch with deferred epilogues to overlap communication with computation. Bucket collectives provide batched all-gather. Pipeline parallelism and Engram remote memory access are also available, but are marked as experimental.
Who it’s for
Developers and researchers training or serving MoE models on Huawei Ascend 950 (A5) NPUs with CANN, PyTorch, and torch_npu. It suits anyone who already uses DeepEP on NVIDIA GPUs and wants a compatible API on Ascend, or who needs high-bandwidth expert-parallel communication on Ascend hardware.
Highlights
- MoE dispatch and combine all-to-all operations with FP8 dispatch support and deferred epilogues
- Public buffer APIs aligned with NVIDIA DeepEP (EP, PP, Bucket, Engram)
- Runtime compilation of Ascend kernels via DeepJIT, reducing install-time build work
- Measured dispatch bandwidth reaches 313–375 GB/s on Ascend 950DT across EP sizes 8–128
- Supports training, prefill, and decoding with the same EPBuffer interface
- Includes a full test suite for EP, Bucket, PP, and Engram functionality
Related
- Project
- Project
- Project
- Project