feat(server): Remove temperature bounds checks for server. Closes #1384

This commit is contained in:
Andrei Betlen 2024-05-03 15:23:06 -04:00
parent 2117122396
commit 0a454bebe6

View file

@ -18,8 +18,6 @@ max_tokens_field = Field(
temperature_field = Field( temperature_field = Field(
default=0.8, default=0.8,
ge=0.0,
le=2.0,
description="Adjust the randomness of the generated text.\n\n" description="Adjust the randomness of the generated text.\n\n"
+ "Temperature is a hyperparameter that controls the randomness of the generated text. It affects the probability distribution of the model's output tokens. A higher temperature (e.g., 1.5) makes the output more random and creative, while a lower temperature (e.g., 0.5) makes the output more focused, deterministic, and conservative. The default value is 0.8, which provides a balance between randomness and determinism. At the extreme, a temperature of 0 will always pick the most likely next token, leading to identical outputs in each run.", + "Temperature is a hyperparameter that controls the randomness of the generated text. It affects the probability distribution of the model's output tokens. A higher temperature (e.g., 1.5) makes the output more random and creative, while a lower temperature (e.g., 0.5) makes the output more focused, deterministic, and conservative. The default value is 0.8, which provides a balance between randomness and determinism. At the extreme, a temperature of 0 will always pick the most likely next token, leading to identical outputs in each run.",
) )