What is gradient accumulation?
Summing gradients over several small micro-batches before one optimiser step, to reach a large effective batch size with little memory.
Learn it properly in the lesson →
Where it comes up
Lessons that use this term, most mentions first.
- How much GPU do you need to fine-tune? Memory for full fine-tuning, LoRA and QLoRA · 14 min · Pro
- Mixed precision and multi-GPU training basics · 15 min · Pro
- Set up your fine-tuning environment: GPUs, libraries and a check script · 18 min · free
- Datasets, batches and embeddings: from token ids to vectors · 16 min · Pro
- Fine-tuning, LoRA and instruction tuning · 17 min · Pro
- Scaling up and the PyTorch mapping · 18 min · Pro
- The training recipe: loss masking, packing, learning rate, epochs and overfitting · 15 min · Pro