Set allowed minimum on temperature (#14)
Browse files
main.py
CHANGED
@@ -371,7 +371,7 @@ def inference_tab():
|
|
371 |
with gr.Column():
|
372 |
# temperature, top_p, top_k, repeat_penalty, max_new_tokens
|
373 |
temperature = gr.Slider(
|
374 |
-
minimum=0, maximum=1.99, value=0.4, step=0.01,
|
375 |
label="Temperature",
|
376 |
info="Controls the 'temperature' of the softmax distribution during sampling. Higher values (e.g., 1.0) make the model generate more diverse and random outputs, while lower values (e.g., 0.1) make it more deterministic and focused on the highest probability tokens."
|
377 |
)
|
|
|
371 |
with gr.Column():
|
372 |
# temperature, top_p, top_k, repeat_penalty, max_new_tokens
|
373 |
temperature = gr.Slider(
|
374 |
+
minimum=0.01, maximum=1.99, value=0.4, step=0.01,
|
375 |
label="Temperature",
|
376 |
info="Controls the 'temperature' of the softmax distribution during sampling. Higher values (e.g., 1.0) make the model generate more diverse and random outputs, while lower values (e.g., 0.1) make it more deterministic and focused on the highest probability tokens."
|
377 |
)
|