Skip to content

Commit

Permalink
Set batch size to 4 to prevent OOM due dynamic batch sizing (facebook…
Browse files Browse the repository at this point in the history
…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
  • Loading branch information
ultrons authored and Søren Winkel Holm committed Oct 4, 2021
1 parent f4a8d65 commit 07fb9c6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ task:
normalize: true

dataset:
batch_size: 4
num_workers: 6
max_tokens: 1200000
skip_invalid_size_inputs_valid_test: true
Expand Down

0 comments on commit 07fb9c6

Please sign in to comment.