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

Set batch size to 4 to prevent OOM due dynamic batch sizing #3781

Closed
wants to merge 1 commit into from

Conversation

ultrons
Copy link
Contributor

@ultrons ultrons commented Aug 12, 2021

What does this PR do?

Fixes OOM which happens from TPUs due to dynamic batching exceed the max a single core can work with.

@ultrons ultrons changed the title added batch size to 4 to prevent OOM due dynamic batch sizing Set batch size to 4 to prevent OOM due dynamic batch sizing Aug 12, 2021
@facebook-github-bot
Copy link
Contributor

@alexeib has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@alexeib merged this pull request in cb74701.

sorenmulli pushed a commit to sorenmulli/fairseq that referenced this pull request Oct 4, 2021
…research#3781)

Summary:
## What does this PR do?
Fixes OOM which happens from TPUs due to dynamic batching exceed the max a single core can work with.

Pull Request resolved: facebookresearch#3781

Reviewed By: wnhsu

Differential Revision: D30327091

Pulled By: alexeib

fbshipit-source-id: 0ebe6b18329fa05d359083fa8ac54aba7b48bc53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants