Model Training · Level 2 of 5
Gradient Accumulation
Summing or averaging gradients over several smaller batches before updating parameters.
It can approximate a larger effective batch with less activation memory.
Example
Four microbatches contribute to one optimizer step.
Listen to the definition and example
Audio transcript
Gradient Accumulation. Summing or averaging gradients over several smaller batches before updating parameters. It can approximate a larger effective batch with less activation memory. For example: Four microbatches contribute to one optimizer step.
Explore this concept
Start with
Related concepts
Quick recall question
Try answering before looking back at the definition.