# About training data pre-processing

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-training-data-pre-processing%2F32856%3E%5C
**Category:** Beginners\
**Created:** [March 2, 2023, 2:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-training-data-pre-processing%2F32856 "2023-03-02T02:40:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jyang18](https://avatars.discourse-cdn.com/v4/letter/j/bb73d2/32.png) [@jyang18](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fjyang18)%5C
**Post date:** [March 2, 2023, 2:40am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fabout-training-data-pre-processing%2F32856%2F1 "2023-03-02T02:40:55Z")

</div>

Hello

I have a dataset with different lengths for each piece of data, and when I Tokenizer it, the lengths of each piece are different. When I feed the tokenized data into the GPT-2 model for training, an error occurs.

Do I have the same length of data for the final GPT-2 model to be trained?

Thanks.
