hard20 pts · first answer countsgpu-computingtraining-loopdistributed-training
Accumulated gradients too large
You switch from batch 64 to batch 16 with 4 accumulation steps, keeping the learning rate. Training now diverges. The loop calls loss.backward() on each micro-batch's mean loss. What is missing?
Discussion 0
Join free to post in the discussion.