Microbatch

Quick definition

A small subset of examples processed in one training step, often accumulated to simulate a larger effective batch.

A small subset of examples processed in one training step, often accumulated to simulate a larger effective batch.

Gradient accumulation lets small-memory GPUs use an effective batch larger than what fits in one forward pass.

Example: A trainer processes four examples at a time and accumulates eight microbatches before updating weights.

Common use cases: Memory-constrained training, distributed learning, and batch-size tuning.

Examples

  • A trainer processes four examples at a time and accumulates eight microbatches before updating weights.

Use cases

  • Memory-constrained training, distributed learning, and batch-size tuning.

Frequently asked questions

What is Microbatch?

A small subset of examples processed in one training step, often accumulated to simulate a larger effective batch.

What should I know about Microbatch?

Gradient accumulation lets small-memory GPUs use an effective batch larger than what fits in one forward pass.

Categories and tags