# Model max length not set. Default value

**URL:** <https://discuss.huggingface.co/t/model-max-length-not-set-default-value/64145>\
**Category:** 🤗Transformers\
**Created:** [November 30, 2023, 4:38pm UTC](https://discuss.huggingface.co/t/model-max-length-not-set-default-value/64145 "2023-11-30T16:38:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phuszar](https://avatars.discourse-cdn.com/v4/letter/p/9de053/32.png) [@phuszar](https://discuss.huggingface.co/u/phuszar)\
**Post date:** [November 30, 2023, 4:38pm UTC](https://discuss.huggingface.co/t/model-max-length-not-set-default-value/64145/1 "2023-11-30T16:38:03Z")

</div>

Hello, im just curious about the value of model\_max\_length in some tokenizer configs.  
Some model have a value, e.g.: all T5-based models have a model\_max\_length of 512.  
In some models (e.g.: MBZUAI/bactrian-x-llama-13b-merged) there is no value set but the default VERY\_LARGE\_INTEGER.

Do some tokenizers have no limit? Did the authors “forget” to enter the value?  
How can someone find out what the maximum length is?

---

<div class="post-metadata">

**Author:** ![Robin19](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@Robin19](https://discuss.huggingface.co/u/Robin19)\
**Post date:** [October 6, 2024, 4:28pm UTC](https://discuss.huggingface.co/t/model-max-length-not-set-default-value/64145/2 "2024-10-06T16:28:18Z")

</div>

Same Doubt here. Can we get an expert’s or enthusiast take on the matter ?
