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

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexpected-input-batch-size-to-match-target-batch-size%2F19897%3E%5C
**Category:** 🤗Transformers\
**Created:** [July 1, 2022, 10:54am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexpected-input-batch-size-to-match-target-batch-size%2F19897 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fggalloppi)%5C
**Post date:** [July 1, 2022, 10:54am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fexpected-input-batch-size-to-match-target-batch-size%2F19897%2F1 "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?
