Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ModelZoo
ResNet50_tensorflow
Commits
841bf60b
Commit
841bf60b
authored
Sep 16, 2019
by
Hongkun Yu
Committed by
A. Unique TensorFlower
Sep 16, 2019
Browse files
Update readme to emphasize 'global batch size'.
PiperOrigin-RevId: 269376599
parent
c21bec54
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
official/transformer/v2/README.md
official/transformer/v2/README.md
+5
-0
No files found.
official/transformer/v2/README.md
View file @
841bf60b
...
@@ -96,6 +96,11 @@ tensorboard --logdir=$MODEL_DIR
...
@@ -96,6 +96,11 @@ tensorboard --logdir=$MODEL_DIR
Users need to adjust
`batch_size`
and
`num_gpus`
to get good performance
Users need to adjust
`batch_size`
and
`num_gpus`
to get good performance
running multiple GPUs.
running multiple GPUs.
**Note that:**
when using multiple GPUs or TPUs, this is the global batch size for all
devices. For example, if the batch size is
`4096*4`
and there are 4 devices,
each device will take 4096 tokens as a batch budget.
Command to run:
Command to run:
```
```
python3 transformer_main.py --data_dir=$DATA_DIR --model_dir=$MODEL_DIR \
python3 transformer_main.py --data_dir=$DATA_DIR --model_dir=$MODEL_DIR \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment