You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this amazing repo.
I was wondering how should I set batch size to make a desirable full batch size.
For example, if I set train_dataset.huggingface_dataset.batch_size to 1 on TPUv3-8,
what is the full batch size given mesh_dim 1,1,-1 / 1,-1,1 / -1,1,1 ?
Are all of them 8? or 1?
Thanks!
The text was updated successfully, but these errors were encountered:
Different mesh dims correspond to different sharding strategies. While they do not define a batch size, they do incur certain constraints on the possible batch size.
1,1,-1 corresponds to tensor parallelism only, and you can use any batch size you want
1,-1,1 corresponds to full FSDP, this means that your batch size needs to a multiple of number of devices (8 here)
-1,1,1 corresponds to full DP, this also means that your batch size needs to a multiple of number of devices (8 here)
Hi, thanks for this amazing repo. I was wondering how should I set batch size to make a desirable full batch size.
For example, if I set train_dataset.huggingface_dataset.batch_size to 1 on TPUv3-8, what is the full batch size given mesh_dim 1,1,-1 / 1,-1,1 / -1,1,1 ? Are all of them 8? or 1?
Thanks!
Did you get this to run with a v3? I seem to always get HLO out of memory errors.
Hi, thanks for this amazing repo.
I was wondering how should I set batch size to make a desirable full batch size.
For example, if I set train_dataset.huggingface_dataset.batch_size to 1 on TPUv3-8,
what is the full batch size given mesh_dim 1,1,-1 / 1,-1,1 / -1,1,1 ?
Are all of them 8? or 1?
Thanks!
The text was updated successfully, but these errors were encountered: