mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[GH-ISSUE #343] 2x performance drop due to intrahost imbalance. #240
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#240
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?
Originally created by @isayoften on GitHub (Jul 30, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/343
I took your test_internode.py script and added a print statement to display the global tokens_per_expert distribution:
Using EP=32, num_experts=256, top_k=8, num_tokens=4096, and hidden_size=7168, I obtained the following distribution:
I also visualized the data grouped by rank and host:
As you can see, the distribution is nearly uniform, which leads to optimal performance.
Next, I simulated an imbalanced distribution that is balanced across nodes but imbalanced across GPUs within each host using the following code:
This scenario results in nearly a 2x drop in performance: