-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[bugfix] TPU + all_gather + SingleTPU shouldn't call xm.all_gather #6296
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #6296 +/- ##
======================================
- Coverage 93% 93% -0%
======================================
Files 160 160
Lines 11397 11399 +2
======================================
- Hits 10638 10609 -29
- Misses 759 790 +31 |
| # todo: Add support for backward with all_gather | ||
| if torch.distributed.is_initialized(): | ||
| return xm.all_gather(tensor, group=group, sync_grads=sync_grads) | ||
| return tensor |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code cov complaining about no test, probably want to add one to make sure this case is covered in single TPU!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The test updates cover this part but coverage is currently not supported for TPU.
Co-authored-by: Carlos Mocholí <[email protected]>
|
can we add a test for it? |
…6296) * resolve an issue with TPU * update * add changelog
…6296) * resolve an issue with TPU * update * add changelog
…6296) * resolve an issue with TPU * update * add changelog
…6296) * resolve an issue with TPU * update * add changelog
…6296) * resolve an issue with TPU * update * add changelog
What does this PR do?
Fixes #<issue_number>
Before submitting
PR review
Anyone in the community is free to review the PR once the tests have passed.
Before you start reviewing make sure you have read Review guidelines. In short, see the following bullet-list:
Did you have fun?
Make sure you had fun coding 🙃