Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
PR: Enable local gradient accumulation #546
PR: Enable local gradient accumulation #546
Changes from 26 commits
4ddf607
a998ef9
3bad665
b0638d3
91b3291
ed5e12a
c77a403
aeaf351
a61788f
da01dfb
e443509
b641b68
d4b37d4
73a35c6
35f0fbe
8833fa0
f8bbf3f
b79dd11
614106f
238edd7
db3e101
be0b62c
6150e47
db840f7
81d3ad6
f236643
32130d8
ea8cd22
9f930e5
bd6baaa
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Need to remove
.item()
:train_loss.update(loss)
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.
Can in-line value, like you do below:
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.
We need to do two passes. In a first pass, we check all the handles and backfill missing allreduces. In a second pass, we synchronize all the handles. If we don't do that, we can get a race and hang forever.