Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Average only valid part of the ipg buffer. #5268

Merged
merged 2 commits into from
Mar 13, 2024

Conversation

BacharL
Copy link
Collaborator

@BacharL BacharL commented Mar 13, 2024

When contiguous gradients is used ipg buffer may not be fully utilized. Call average_tensor only for the slice with valid gradints

Change-Id: I760559d52c2f91e15cd6cd0b48e534ec2352802a

When contiguous gradients is used ipg buffer may not be fully utilized.
Call average_tensor only for the slice with valid gradints

Change-Id: I760559d52c2f91e15cd6cd0b48e534ec2352802a
@tjruwase
Copy link
Contributor

@BacharL, thanks for catching this corner case.

@loadams loadams added this pull request to the merge queue Mar 13, 2024
Merged via the queue into microsoft:master with commit 75e579e Mar 13, 2024
12 checks passed
rraminen pushed a commit to ROCm/DeepSpeed that referenced this pull request May 9, 2024
When contiguous gradients is used ipg buffer may not be fully utilized.
Call average_tensor only for the slice with valid gradints

Change-Id: I760559d52c2f91e15cd6cd0b48e534ec2352802a

Co-authored-by: Logan Adams <[email protected]>
dbyoung18 pushed a commit to dbyoung18/DeepSpeed that referenced this pull request Jun 11, 2024
When contiguous gradients is used ipg buffer may not be fully utilized.
Call average_tensor only for the slice with valid gradints

Change-Id: I760559d52c2f91e15cd6cd0b48e534ec2352802a

Co-authored-by: Logan Adams <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants