Skip to content

Epoch

One complete pass of the model through the entire dataset. If there are 10,000 examples in the data — the model will see each one exactly once during one epoch.

Epoch vs Batch vs Step

Term What it means
Epoch A full pass through all the data
Batch A portion of examples in one step
Step One weight update

Example: 10,000 examples, batch size = 100 → one epoch = 100 steps.

How Many Epochs Are Needed

  • Too few — the model is underfitting;
  • Too many — overfitting.

For fine-tuning LLMs, usually 1–5 epochs are sufficient: the models already ‘know the language’, they just need to adapt to the style and format.

See Also

← All Terms