mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #740] fix: get_nvlink_gbs may return 0 as a divisor #745
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#745
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/740
Author: @cxxlink
Created: 8/27/2026
Status: 🔄 Open
Base:
main← Head:fix_div_0📝 Commits (1)
7f6280cfix: get_nvlink_gbs may return 0 as a divisor📊 Changes
1 file changed (+9 additions, -1 deletions)
View changed files
📝
deep_ep/buffers/elastic.py(+9 -1)📄 Description
Problem
Function get_nvlink_gbs returns zero and unprotected is used as a divisor.
Root cause
The result of command "nvidia-smi nvlink -s" execution is empty, if the environment does not support nvink.
Fix
Add protection before division.
Validation
Protection takes effect before division.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.