Learn AI Math

Epoch

What is Epoch?

In one sentence: An epoch is one full pass through the entire training dataset.

If your dataset has 10,000 examples, one epoch means the model has looked at all 10,000 once. Models usually train for several epochs, seeing the same examples again and again, like rereading a textbook. Too few epochs and the model has not learned enough; too many and it may start to memorize.

Σ Quick math / rule of thumb: Steps per Epoch = Training Examples ÷ Effective Batch Size. Large LLMs usually see most of their trillions of training tokens only about once, though some high-quality data may be repeated a few times.

What does Epoch look like?

Training a model for 5 epochs means it studied the whole dataset 5 times.

Why does Epoch matter?

Counting epochs helps people control how long a model trains and avoid overfitting.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.