# Model max length not set. Default value

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-max-length-not-set-default-value%2F64145%3E%5C
**Category:** 🤗Transformers\
**Created:** [November 30, 2023, 4:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-max-length-not-set-default-value%2F64145 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fphuszar)%5C
**Post date:** [November 30, 2023, 4:38pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-max-length-not-set-default-value%2F64145%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRobin19)%5C
**Post date:** [October 6, 2024, 4:28pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodel-max-length-not-set-default-value%2F64145%2F2 "2024-10-06T16:28:18Z")

</div>

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