mirror of
https://github.com/deepseek-ai/DeepEP.git
synced 2026-11-05 00:47:32 +00:00
[PR #360] [MERGED] [fix] handle empty tensor in per_token_cast_back #535
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#535
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/360
Author: @polarstormx
Created: 8/14/2025
Status: ✅ Merged
Merged: 8/14/2025
Merged by: @sphish
Base:
main← Head:avoid_empty📝 Commits (1)
c9320fd[fix] handle empty tensor in per_token_cast_back📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
tests/utils.py(+2 -0)📄 Description
In imbalanced token distribution, some ranks may receive empty tensors. The
per_token_cast_backfunction would fail when trying to reshape an empty tensor with ambiguous dimensions.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.