What is Epoch?
In Turkish: Epok · Topic: Models and training
One complete pass of the entire training dataset through the model. It is the unit used to measure how many rounds training has run, and training usually spans many of them.
How does it work?
The dataset is usually split into batches, and the model updates its parameters after each batch. When every batch has been processed, one epoch is complete. For example, with 10,000 examples and batches of 100, one epoch means 100 updates. Training often runs for many epochs, and the data is usually reshuffled each round. Too few epochs and the model has not learned enough; too many and it starts to memorize the training data.
Why does it matter?
The number of epochs directly shapes training time and cost, and it is tied to the risk of overfitting. For very large language models the data is so big that seeing it once or a few times can be enough, so people talk about steps or the amount of data seen rather than epochs.
Example
If a handwritten digit recognition model is trained for 20 epochs, it has seen the same training images 20 times.
FAQ
What is the difference between an epoch and an iteration?
An iteration is a single update made with one batch. An epoch is one full pass over all the data, so one epoch consists of as many iterations as there are batches.
How many epochs are enough?
There is no fixed number; it depends on the data and the model. Usually teams watch performance on validation data and stop once it stops improving.