# Default parameters when querying models with TGI

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdefault-parameters-when-querying-models-with-tgi%2F83388%3E%5C
**Category:** Intermediate\
**Created:** [April 23, 2024, 7:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdefault-parameters-when-querying-models-with-tgi%2F83388 "2024-04-23T19:50:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shaily99](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/shaily99/32/32341_2.png) [@shaily99](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fshaily99)%5C
**Post date:** [April 23, 2024, 7:50pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdefault-parameters-when-querying-models-with-tgi%2F83388%2F1 "2024-04-23T19:50:21Z")

</div>

I am using the `AsyncClient()` from `Text Generation Inference` to query a bunch of models including Llama3, Mixtral, Llama2, Vicuna, and Command-R. I am using the `generate()` function from the AsyncClient. I see that unless passed, the value of `top_p` and `temperature` are set to `None`.  
However, I am assuming that there must be some default `temperature` and `top_p` setting. Where do I find this information? Is this model specific or set by TGI?
