# Class ModelParameter (2.6.0)

2.6.0 (latest) 2.1.0 2.0.0 1.43.0 1.42.0 1.41.1 1.40.0 1.39.0 1.38.0 1.37.0 1.36.0 1.35.0 1.34.1 1.33.0 1.32.1 1.31.1 1.30.1 1.29.0 1.28.0 1.27.0 1.26.0 1.25.0 1.24.0 1.23.1 1.22.0 1.21.0 1.20.1 1.19.0 1.18.0 1.17.1 1.16.0 1.15.0 1.14.1 1.13.5 1.12.1 1.11.0 1.10.0 1.9.1 1.8.0 1.7.0 1.6.0 1.5.0 1.4.0 1.3.2 1.2.0 1.1.1 1.0.0 0.8.2 0.7.1 0.6.0 0.5.0 0.4.1 0.3.0 0.2.0 0.1.1

    ModelParameter(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Parameters to be passed to the LLM. If not set, default
values will be used.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `temperature` | `float` The temperature used for sampling. Temperature sampling occurs after both topP and topK have been applied. Valid range: \[0.0, 1.0\] Low temperature = less random. High temperature = more random. This field is a member of `oneof`_ `_temperature`. |
| `max_decode_steps` | `int` The maximum number of tokens to generate. This field is a member of `oneof`_ `_max_decode_steps`. |
| `top_p` | `float` If set, only the tokens comprising the top top_p probability mass are considered. If both top_p and top_k are set, top_p will be used for further refining candidates selected with top_k. Valid range: (0.0, 1.0\]. Small topP = less random. Large topP = more random. This field is a member of `oneof`_ `_top_p`. |
| `top_k` | `int` If set, the sampling process in each step is limited to the top_k tokens with highest probabilities. Valid range: \[1, 40\] or 1000+. Small topK = less random. Large topK = more random. This field is a member of `oneof`_ `_top_k`. |