mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #600] Fix stream race in dispatch/combine with deterministic algorithms #655
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#655
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/600
Author: @ccs1112
Created: 4/6/2026
Status: 🔄 Open
Base:
main← Head:fix/stream-race-nan-deterministic📝 Commits (1)
a1577f4Fix stream race producing NaN with deterministic algorithms📊 Changes
2 files changed (+259 additions, -2 deletions)
View changed files
📝
csrc/deep_ep.cpp(+28 -2)➕
tests/test_stream_race.py(+231 -0)📄 Description
The cause of #589 so far as I can tell is as follows in
deep_ep.cpp:Now this could be fixed by putting the stream wait until after the empty allocation, but we have the comment
"NOTES: do not allocate tensors upfront!". I don't want to mess up the stream ownership so I just add a second sync stream wait right before the intranode combine:The tests should deterministically catch the bug once the fix is in. I don't have a multi-GPU setup on hand to validate myself, any recommendations?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.