mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[GH-ISSUE #129] Why do we reduce topk weights for each token? #113
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#113
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 @dearsxx0918 on GitHub (Apr 21, 2025).
Original GitHub issue: https://github.com/deepseek-ai/DeepEP/issues/129
Hi,
I'm quite confused by the source code here.
github.com/deepseek-ai/DeepEP@a84a24808f/csrc/kernels/intranode.cu (L772)github.com/deepseek-ai/DeepEP@a84a24808f/csrc/kernels/internode.cu (L1261)Best regards,
-Edda
@LyricZhao commented on GitHub (Apr 22, 2025):
This is for dispatch backward, the gradient needs to be reduced.
@dearsxx0918 commented on GitHub (Apr 22, 2025):
Thanks for your quick reply. I mean why we need reduce weights? Seems we can get this from topk_weights directly ?
And if we need reduce weights, we reduce all topk_weights into one ?
@LyricZhao commented on GitHub (Apr 23, 2025):
Oh, you are right. It seems that we only need to copy the weights needed, instead of copying 👍🏻
Will add this as a TODO later.
@dearsxx0918 commented on GitHub (Apr 23, 2025):
Thanks for you reply!