mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #713] Handle missing bandwidth in SM estimation #726
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#726
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/713
Author: @Mr-Neutr0n
Created: 8/3/2026
Status: 🔄 Open
Base:
main← Head:fix/sm-estimate-missing-bandwidth📝 Commits (3)
1577218Handle missing bandwidth in SM estimationd17262ctest: isolate DeepEP module stubsfd6949eAddress review suggestions for bandwidth fallback📊 Changes
2 files changed (+111 additions, -3 deletions)
View changed files
📝
deep_ep/buffers/ep.py(+14 -3)➕
tests/utils/test_elastic_host.py(+97 -0)📄 Description
Problem
ElasticBuffer.get_theoretical_num_smsdivides modeled traffic by detected RDMA and NVLink bandwidth. Both detection helpers use0to report that bandwidth detection failed, so a hybrid topology can raiseZeroDivisionErrorbefore returning an SM estimate.Fix
Regression coverage
The host-only test models a 16-rank hybrid topology with both bandwidth detectors returning
0. Currentmainraises; this branch returns all 132 device SMs. Its fake DeepEP modules are restored after loading so the test does not pollute the wider process.Validation
python -m unittest tests.utils.test_elastic_hostruff check tests/utils/test_elastic_host.pygit diff --checkPrepared with OpenAI Codex assistance; I reproduced the zero-bandwidth failure and reviewed the fallback behavior.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.