mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #599] [MERGED] Support topk_weights, recv rank info, and overlap in low-latency dispatch #652
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#652
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/599
Author: @nvcastet
Created: 4/1/2026
Status: ✅ Merged
Merged: 4/14/2026
Merged by: @jershi425
Base:
hybrid-ep← Head:add_ll_topk_weight_v2📝 Commits (1)
fc69fb0Support topk_weights, recv rank info, and overlap in ll dispatch📊 Changes
6 files changed (+159 additions, -52 deletions)
View changed files
📝
csrc/deep_ep.cpp(+29 -19)📝
csrc/deep_ep.hpp(+3 -2)📝
csrc/kernels/api.cuh(+4 -1)📝
csrc/kernels/internode_ll.cu(+73 -19)📝
csrc/kernels/launch.cuh(+22 -1)📝
deep_ep/buffer.py(+28 -10)📄 Description
Summary
Enables https://github.com/sgl-project/sglang/pull/21877.
topk_weightsparameter tolow_latency_dispatch, allowing topk weights to be sent alongside token data in the P2P message header (packed asint4{token_idx, topk_weight_bits, 0, 0})topk_weightsis provided:packed_recv_topk_weights(float32) andpacked_recv_rank_info(int32), giving the receiver both the weight and source rank for each tokentopk_weights=None, 7 elements when providedLimitations
Files changed
csrc/kernels/internode_ll.cu— newkUseTopKWeightstemplate param, extended header write, recv-side unpackingcsrc/kernels/launch.cuh—SETUP_OVERLAP_LAUNCH_CONFIGmacrocsrc/kernels/api.cuh— updated function signaturescsrc/deep_ep.cpp— plumbing for new args/outputscsrc/deep_ep.hpp— updated return type and signaturedeep_ep/buffer.py— Python API: newtopk_weightsparam, conditional return format, updated docstringTest plan
test_low_latency.pywith and withouttopk_weightson a multi-GPU NVLink nodetopk_weightsget the same 5-element returntopk_weightsandrank_infomatch what was sent🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.