Spaces:
Runtime error
Runtime error
Commit
·
cb0d838
1
Parent(s):
3464b1e
default values
Browse files- app_dialogue.py +4 -4
app_dialogue.py
CHANGED
@@ -425,7 +425,7 @@ with gr.Blocks(title="D", theme=gr.themes.Base()) as demo:
|
|
425 |
max_new_tokens = gr.Slider(
|
426 |
minimum=8,
|
427 |
maximum=1024,
|
428 |
-
value=
|
429 |
step=1,
|
430 |
interactive=True,
|
431 |
label="Maximum number of new tokens to generate",
|
@@ -433,7 +433,7 @@ with gr.Blocks(title="D", theme=gr.themes.Base()) as demo:
|
|
433 |
repetition_penalty = gr.Slider(
|
434 |
minimum=0.0,
|
435 |
maximum=5.0,
|
436 |
-
value=1.
|
437 |
step=0.01,
|
438 |
interactive=True,
|
439 |
label="Repetition penalty",
|
@@ -455,7 +455,7 @@ with gr.Blocks(title="D", theme=gr.themes.Base()) as demo:
|
|
455 |
value=0.6,
|
456 |
step=0.1,
|
457 |
interactive=True,
|
458 |
-
visible=
|
459 |
label="Sampling temperature",
|
460 |
info="Higher values will produce more diverse outputs.",
|
461 |
)
|
@@ -474,7 +474,7 @@ with gr.Blocks(title="D", theme=gr.themes.Base()) as demo:
|
|
474 |
value=0.8,
|
475 |
step=0.01,
|
476 |
interactive=True,
|
477 |
-
visible=
|
478 |
label="Top P",
|
479 |
info="Higher values is equivalent to sampling more low-probability tokens.",
|
480 |
)
|
|
|
425 |
max_new_tokens = gr.Slider(
|
426 |
minimum=8,
|
427 |
maximum=1024,
|
428 |
+
value=256,
|
429 |
step=1,
|
430 |
interactive=True,
|
431 |
label="Maximum number of new tokens to generate",
|
|
|
433 |
repetition_penalty = gr.Slider(
|
434 |
minimum=0.0,
|
435 |
maximum=5.0,
|
436 |
+
value=1.2,
|
437 |
step=0.01,
|
438 |
interactive=True,
|
439 |
label="Repetition penalty",
|
|
|
455 |
value=0.6,
|
456 |
step=0.1,
|
457 |
interactive=True,
|
458 |
+
visible=True,
|
459 |
label="Sampling temperature",
|
460 |
info="Higher values will produce more diverse outputs.",
|
461 |
)
|
|
|
474 |
value=0.8,
|
475 |
step=0.01,
|
476 |
interactive=True,
|
477 |
+
visible=True,
|
478 |
label="Top P",
|
479 |
info="Higher values is equivalent to sampling more low-probability tokens.",
|
480 |
)
|