Batch Size
What is Batch Size?
In one sentence: Batch size is how many examples go into each batch during training.
A small batch size means more frequent, noisier updates; a large batch size means fewer, smoother updates but needs more memory. People pick a batch size that fits their hardware and helps the model learn well. In inference, batch size can also mean how many requests are handled together.
Σ Quick math / rule of thumb: Effective Batch Size = Micro-Batch Size × Gradient Accumulation Steps × Data-Parallel GPUs.
What does Batch Size look like?
Setting batch size to 32 means the model learns from 32 examples at a time.
Why does Batch Size matter?
Batch size affects how fast training runs, how much memory it needs, and how well the model learns.
Last updated · Fact-checked by The AI Math
Linking to this page from a lesson or article? <a href="https://getaimath.com/dictionary/batch-size/">Batch Size, explained simply</a> (The AI Math Dictionary)