mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
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#660
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/609
Author: @pazyork
Created: 4/24/2026
Status: 🔄 Open
Base:
main← Head:main📝 Commits (1)
4fdd8a2fix: skip self NVLink check for duplicate physical GPU IDs📊 Changes
2 files changed (+37 additions, -1 deletions)
View changed files
📝
deep_ep/utils.py(+1 -1)➕
tests/test_utils.py(+36 -0)📄 Description
Fixes #582
Problem
When multiple ranks share the same physical GPU (common in local single-GPU debugging, container GPU sharing, MIG vGPU scenarios, even on multi-GPU servers), the NVLink initialization check triggers a false assertion:
AssertionError: No NVLink connection between GPU 0 and GPU 0Root cause
The original code only skips duplicate checks by index
i >= j, but doesn't handle the case where different rank indices map to the same physical GPU ID.Fix
Add
or physical_device_indices[i] == physical_device_indices[j]condition to the check loop, skip NVLink check for same physical GPU pairs.Test
Added lightweight unit test in
tests/test_utils.pywith mocked pynvml/distributed, no real multi-GPU hardware required. Verified:Impact
No breaking changes, only affects the NVLink initialization check process. All existing normal deployment scenarios are completely unaffected.
Thanks for reviewing! It's a tiny fix, feel free to let me know if you have any suggestions and I'll adjust promptly. @jershi425 @sphish
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.