By Team Edtoolkits · AI learning
Use batch size and epochs to explain why two training runs may perform different amounts of work.
Use the guide alongside the working tool.
Open Epochs, Batches and Steps →Explore the lesson
Watch a dataset dealt out in batches, round after round.
Pick batch size and epochs, step through, and compare the loss curves.
Flip the memory card and answer the quick check.
A comparison to try
Use 108 examples and a batch size of 24. There are five updates per epoch, including a final batch of twelve; three epochs give fifteen updates. Inspect the dealt batches before comparing loss curves.
Read the result
An epoch is a pass through the dataset, while an update is a parameter change after a batch. Increasing batch size reduces update count for the same number of epochs, so equal epochs need not mean equal optimization steps.
A mistake to avoid
The loss curve comes from a small line-fitting task. Step counts do not predict wall-clock time, memory use or learning quality across different hardware and models, and the final partial batch still counts.
Teaching model and privacy
The loss curve comes from training a straight line on noisy dots in your browser, a simple stand-in for a real model. Step counts follow the exact rule real training uses. Everything runs in your browser.
Ready to apply this workflow?
Try Epochs, Batches and Steps →Explore a related workflow
- Choose a course entry point and verify saved progress
Use prior knowledge to select a starting chapter while distinguishing local progress from an account or a qualification.
- AI Tokens: Inspect Pieces, Spaces and Stable Teaching IDs
Compare common words, rare words and numbers without using the playground as an exact provider counter.
- Inspect candidates before continuing text
Compare normalized next-word probabilities with the choices sampled from them.
- Choose complexity using held-out error
Compare training and test curves before calling a detailed fit an improvement.
Found unclear instructions or an unexpected result? Contact Team Edtoolkits.