# How can I change the max\_length of my own model in huggingface inference API?

**URL:** <https://discuss.huggingface.co/t/how-can-i-change-the-max-length-of-my-own-model-in-huggingface-inference-api/68114>\
**Category:** Inference Endpoints on the Hub\
**Created:** [January 5, 2024, 9:53pm UTC](https://discuss.huggingface.co/t/how-can-i-change-the-max-length-of-my-own-model-in-huggingface-inference-api/68114 "2024-01-05T21:53:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Omaratef3221](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/omaratef3221/32/39946_2.png) [@Omaratef3221](https://discuss.huggingface.co/u/Omaratef3221)\
**Post date:** [January 5, 2024, 9:53pm UTC](https://discuss.huggingface.co/t/how-can-i-change-the-max-length-of-my-own-model-in-huggingface-inference-api/68114/1 "2024-01-05T21:53:17Z")

</div>

I have build a model which is here: Omaratef3221/flan-t5-base-dialogue-generator. The model generates dialogues from small texts so its a text2text generation. When I try using the model with the huggingface inference API in the model home page on the hub it has a limited max\_length. I would like to increase this max\_length in the model setting in the hub.

Is there a way of doing that?

Thanks.
