Skip to content
This repository was archived by the owner on Jul 1, 2024. It is now read-only.

Gradient accumulation #644

Closed
wants to merge 3 commits into from
Closed

Conversation

vreis
Copy link
Contributor

@vreis vreis commented Nov 5, 2020

Summary:
Add support for gradient accumulation. In the task config, you can specify
a "simulated_batch_size" argument that will accumulate gradients and simulate the specified global batch size. Hard to be careful to make sure that works well with grad clipping, but got some tests covering that.

Differential Revision: D24740329

vreis added 3 commits November 5, 2020 15:10
Differential Revision: D24731520

fbshipit-source-id: 51bce0de2b099bd4e814bff81b391c935a41e3b9
Summary: Add support for gradient clipping in ClassificationTask

Differential Revision: D24736675

fbshipit-source-id: e626d4f7d99610983f5de8466f7bc954bf5aee28
Summary:
Add support for gradient accumulation. In the task config, you can specify
a "simulated_batch_size" argument that will accumulate gradients and simulate the specified global batch size. Hard to be careful to make sure that works well with grad clipping, but got some tests covering that.

Differential Revision: D24740329

fbshipit-source-id: 6cf567a8d5106303cd8f3b09bee42d64fbb841dd
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported labels Nov 5, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24740329

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24740329

@vreis vreis closed this Nov 6, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24740329

1 similar comment
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D24740329

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 1ba6b03.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants