# Trainer epoch does not go through all training data?

**URL:** <https://discuss.huggingface.co/t/trainer-epoch-does-not-go-through-all-training-data/3339>\
**Category:** Beginners\
**Created:** [January 22, 2021, 2:21pm UTC](https://discuss.huggingface.co/t/trainer-epoch-does-not-go-through-all-training-data/3339 "2021-01-22T14:21:17Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Skylixia](https://avatars.discourse-cdn.com/v4/letter/s/439d5e/32.png) [@Skylixia](https://discuss.huggingface.co/u/Skylixia)\
**Post date:** [January 22, 2021, 7:24pm UTC](https://discuss.huggingface.co/t/trainer-epoch-does-not-go-through-all-training-data/3339/5 "2021-01-22T19:24:33Z")

</div>

My dataset seem to have the right size. Using Wandb logger it seems that there is only 1 step performed in each epoch indeed… I don’t know what could be wrong.  
My code is basically done as in [this post](https://discuss.huggingface.co/t/fine-tuning-pegasus/1433).

---

_[View the full topic](https://discuss.huggingface.co/t/trainer-epoch-does-not-go-through-all-training-data/3339)._
