# Modify generation params for a model in the Model hub

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-generation-params-for-a-model-in-the-model-hub%2F12402%3E%5C
**Category:** Beginners\
**Created:** [November 30, 2021, 10:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-generation-params-for-a-model-in-the-model-hub%2F12402 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fnouamanetazi)%5C
**Post date:** [November 30, 2021, 10:19pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-generation-params-for-a-model-in-the-model-hub%2F12402%2F1 "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](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fosanseviero)%5C
**Post date:** [December 1, 2021, 8:34am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fmodify-generation-params-for-a-model-in-the-model-hub%2F12402%2F2 "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

```
