# Modify generation params for a model in the Model hub

**URL:** <https://discuss.huggingface.co/t/modify-generation-params-for-a-model-in-the-model-hub/12402>\
**Category:** Beginners\
**Created:** [November 30, 2021, 10:19pm UTC](https://discuss.huggingface.co/t/modify-generation-params-for-a-model-in-the-model-hub/12402 "2021-11-30T22:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nouamanetazi](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/nouamanetazi/32/4869_2.png) [@nouamanetazi](https://discuss.huggingface.co/u/nouamanetazi)\
**Post date:** [November 30, 2021, 10:19pm UTC](https://discuss.huggingface.co/t/modify-generation-params-for-a-model-in-the-model-hub/12402/1 "2021-11-30T22:19:09Z")

</div>

Hello, I would like to increase the `max_length` param on my model [nouamanetazi/cover-letter-t5-base · Hugging Face](https://huggingface.co/nouamanetazi/cover-letter-t5-base) but I can’t seem to find how to do it in docs. Should I edit the config.json file? Can anyone provide an example please.

---

<div class="post-metadata">

**Author:** ![osanseviero](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/osanseviero/32/38738_2.png) [@osanseviero](https://discuss.huggingface.co/u/osanseviero)\
**Post date:** [December 1, 2021, 8:34am UTC](https://discuss.huggingface.co/t/modify-generation-params-for-a-model-in-the-model-hub/12402/2 "2021-12-01T08:34:29Z")

</div>

Hey there! You can change the inference parameters as documented [here](https://huggingface.co/docs/hub/model-repos#how-can-i-control-my-models-widget-inference-api-parameters).

In short, you can do something like this in the metadata of the model card (README.md file)

```auto
inference:
  parameters:
    temperature: 0.7

```
