mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #341] [MERGED] Support nvfp4 low latency mode dispatch #526
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#526
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/341
Author: @shifangx
Created: 7/30/2025
Status: ✅ Merged
Merged: 10/23/2025
Merged by: @jershi425
Base:
hybrid-ep← Head:shifang/ll_dispatch_nvfp4📝 Commits (10+)
2bf764csupport NVFP4 data format in low latency dispatchd320aaaadd support fp32_vec_to_e2m1 for CUDA_ARCH less than 1000d88e77echange threshold for diff3a28b71add debug message2add019change physical layout to be (l, m/128, k/4, 32, 4, 4)9d9e395use global scale for entire dispatch instead of per token scaleccf4eafchange test case82147f2change some names and dtype:fc15ca6support padding md89a25bcalibrate nvfp4 scale layout with grouped gemm📊 Changes
8 files changed (+745 additions, -45 deletions)
View changed files
📝
csrc/deep_ep.cpp(+36 -2)📝
csrc/deep_ep.hpp(+2 -0)📝
csrc/kernels/api.cuh(+2 -0)📝
csrc/kernels/internode_ll.cu(+232 -14)📝
deep_ep/buffer.py(+17 -3)📝
tests/test_low_latency.py(+134 -21)➕
tests/test_low_latency_nvfp4.py(+206 -0)📝
tests/utils.py(+116 -5)📄 Description
This MR support nvfp4 low latency mode dispatch.
In the dispatch kernel, we first convert input to nvfp4, and then send to other ranks.
So it's a fused (quantize + dispatch) kernel, and the global_scaling_factor for nvfp4 is a scalar across all experts.
test_log.md
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.