# The input length for bert

**URL:** <https://discuss.huggingface.co/t/the-input-length-for-bert/34538>\
**Category:** 🤗Transformers\
**Created:** [March 24, 2023, 6:01am UTC](https://discuss.huggingface.co/t/the-input-length-for-bert/34538 "2023-03-24T06:01:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiao12mm](https://avatars.discourse-cdn.com/v4/letter/x/4bbf92/32.png) [@xiao12mm](https://discuss.huggingface.co/u/xiao12mm)\
**Post date:** [March 24, 2023, 6:01am UTC](https://discuss.huggingface.co/t/the-input-length-for-bert/34538/1 "2023-03-24T06:01:29Z")

</div>

I used huggingface code to train bert. Using mlm, what should be the maximum length of the characters entered? How do I change this length?
