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

Dev gradacc #56

Merged
merged 3 commits into from
Oct 9, 2021
Merged

Dev gradacc #56

merged 3 commits into from
Oct 9, 2021

Conversation

ryanccarelli
Copy link
Owner

This PR implements gradient accumulation.
Step is refactored to include accumulate_gradient function which splits batches and sums gradient contributions from each sub-batch to reduce memory usage. This implementation is based on Bun and Sphinx's implementation for WMT.

@ryanccarelli ryanccarelli mentioned this pull request Oct 9, 2021
27 tasks
@ryanccarelli ryanccarelli merged commit 0fb5c71 into dev Oct 9, 2021
@ryanccarelli ryanccarelli deleted the dev-gradacc branch October 9, 2021 19:27
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.

1 participant