mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #734] bug fix: probe RDMA link rate via sysfs, survive probe failure #740
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#740
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/734
Author: @Xuan-1998
Created: 8/21/2026
Status: 🔄 Open
Base:
main← Head:envs-sysfs-rdma-probe📝 Commits (1)
dacd416envs: probe RDMA link rate via sysfs, survive probe failure📊 Changes
1 file changed (+75 additions, -6 deletions)
View changed files
📝
deep_ep/utils/envs.py(+75 -6)📄 Description
get_rdma_gbs() only knew how to ask ibstat for a CA named EP_NIC_NAME (default mlx5_0). EFA devices expose no umad CA, so on EFA hosts the probe returned 0 and get_theoretical_num_sms() divided by it -- any multi-node run without an explicit --num-sms crashed with ZeroDivisionError.
Read /sys/class/infiniband//ports/*/rate first, which works for every verbs provider, and fall back to ibstat for setups whose rate only shows there. When EP_NIC_NAME is unset and the default device is absent, pick the fastest device under /sys/class/infiniband instead of failing; an explicitly named NIC still fails loudly rather than guessing.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.