# Expected input batch\_size.. to match target batch\_size

**URL:** <https://discuss.huggingface.co/t/expected-input-batch-size-to-match-target-batch-size/19897>\
**Category:** 🤗Transformers\
**Created:** [July 1, 2022, 10:54am UTC](https://discuss.huggingface.co/t/expected-input-batch-size-to-match-target-batch-size/19897 "2022-07-01T10:54:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggalloppi](https://avatars.discourse-cdn.com/v4/letter/g/ce73a5/32.png) [@ggalloppi](https://discuss.huggingface.co/u/ggalloppi)\
**Post date:** [July 1, 2022, 10:54am UTC](https://discuss.huggingface.co/t/expected-input-batch-size-to-match-target-batch-size/19897/1 "2022-07-01T10:54:20Z")

</div>

Hello everyone,

I have a problem when I use the method ‘.train()’ about a Seq2Seq trainer; it returns me that there is this kind of problem abut the batch\_size, how can i fix it?
