mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #500] [MERGED] opt ll dispatch layered algo #598
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/DeepEP#598
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/DeepEP/pull/500
Author: @alpha-baby
Created: 11/21/2025
Status: ✅ Merged
Merged: 12/4/2025
Merged by: @wangfakang
Base:
antgroup-opt← Head:fujh/pr/ll_dispatch_opt📝 Commits (2)
86f8836opt ll dispatcha3c90befix comments and format code📊 Changes
7 files changed (+392 additions, -108 deletions)
View changed files
📝
csrc/config.hpp(+24 -4)📝
csrc/deep_ep.cpp(+11 -7)📝
csrc/deep_ep.hpp(+3 -1)📝
csrc/kernels/api.cuh(+4 -2)📝
csrc/kernels/internode_ll.cu(+303 -61)📝
deep_ep/buffer.py(+20 -8)📝
tests/test_low_latency.py(+27 -25)📄 Description
introduce
algo opt for dispatch in low-latency mode:
In the dispatch kernel of DeepEP's low-latency mode, the original algorithm directly sends data to the destination rank via the RDMA cross-orbit network. A drawback of this algorithm is that it results in excessive duplicate data being transmitted over the RDMA network. Now, drawing inspiration from the approach used in normal mode, we can improve the dispatch kernel in low-latency mode by first sending data to the same-orbit rank on the cross-node, and then forwarding it to the actual destination rank via the NVLink interconnect.
Note: This feature conflicts with the existing Elasticity Support to DeepEP for Fault-Tolerant EP Inference functionality, and the two features cannot be enabled simultaneously.
before:

after:
performance
benchmark:
use
This feature is enabled by default and requires no additional activation from the user. To disable it, please set the following environment variable:
DEEPEP_DISABLE_LL_DISPATCH_OPT=1.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.