VadimP commited on
Commit
d9583e9
1 Parent(s): dc5c63f

Set allowed minimum on temperature (#14)

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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
  )