- In WMT datasets, there is wide variation in the length of examples. Some are one sentence. Some are 10 sentences.
- The max batch size that can fit on a v100 is roughly
(4, 512) - you end up with lots of batches of shape
(4, 12)or(4, small_int)which don't fully utilize the GPU.
Dynamic Batch Size: try to organize batches to be 4*512=2048 tokens, one batch might be shaped (4,512) another (32, 64).
