Update app.py
Browse files
app.py
CHANGED
|
@@ -315,7 +315,7 @@ temperature_slider = gr.Slider(
|
|
| 315 |
minimum=0.0,
|
| 316 |
maximum=2.0,
|
| 317 |
step=0.01, # Finer control for temperature
|
| 318 |
-
value=
|
| 319 |
label="Temperature",
|
| 320 |
info="Controls randomness. Lower=more deterministic, Higher=more random. Only active if 'Enable Sampling' is checked."
|
| 321 |
)
|
|
@@ -333,7 +333,7 @@ top_p_slider = gr.Slider(
|
|
| 333 |
minimum=0.0,
|
| 334 |
maximum=1.0,
|
| 335 |
step=0.01, # Finer control for Top-P
|
| 336 |
-
value=0.
|
| 337 |
label="Top-P (Nucleus Sampling)",
|
| 338 |
info="Fraction of highest probability tokens to consider whose cumulative probability exceeds P. Only active if 'Enable Sampling' is checked."
|
| 339 |
)
|
|
|
|
| 315 |
minimum=0.0,
|
| 316 |
maximum=2.0,
|
| 317 |
step=0.01, # Finer control for temperature
|
| 318 |
+
value=0.75, # Default for sampling
|
| 319 |
label="Temperature",
|
| 320 |
info="Controls randomness. Lower=more deterministic, Higher=more random. Only active if 'Enable Sampling' is checked."
|
| 321 |
)
|
|
|
|
| 333 |
minimum=0.0,
|
| 334 |
maximum=1.0,
|
| 335 |
step=0.01, # Finer control for Top-P
|
| 336 |
+
value=0.95, # Common value for nucleus sampling
|
| 337 |
label="Top-P (Nucleus Sampling)",
|
| 338 |
info="Fraction of highest probability tokens to consider whose cumulative probability exceeds P. Only active if 'Enable Sampling' is checked."
|
| 339 |
)
|