Glossary

Microbatch

Beginner

A small slice of a batch of examples, sent through the model by itself.

Novice

A part of a training batch processed in one forward and backward pass. Gradients from several microbatches are added up before the weights are updated, and pipelines keep several microbatches in flight at once.

Expert

With global batch BB, data-parallel degree dd and microbatch size bb, each pipeline sees m=B/(db)m = B/(db) microbatches per step. mm sets the pipeline bubble, and bb sets kernel efficiency and activation memory.