Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ def generate(
|
|
51 |
additional_inputs = [
|
52 |
gr.Textbox(label="System Prompt", max_lines=1, interactive=True),
|
53 |
gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs"),
|
54 |
-
gr.Slider(label="Max new tokens", value=
|
55 |
gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Higher values sample more low-probability tokens"),
|
56 |
gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
|
57 |
]
|
|
|
51 |
additional_inputs = [
|
52 |
gr.Textbox(label="System Prompt", max_lines=1, interactive=True),
|
53 |
gr.Slider(label="Temperature", value=0.9, minimum=0.0, maximum=1.0, step=0.05, interactive=True, info="Higher values produce more diverse outputs"),
|
54 |
+
gr.Slider(label="Max new tokens", value=4096, minimum=256, maximum=9048, step=64, interactive=True, info="The maximum numbers of new tokens"),
|
55 |
gr.Slider(label="Top-p (nucleus sampling)", value=0.90, minimum=0.0, maximum=1, step=0.05, interactive=True, info="Higher values sample more low-probability tokens"),
|
56 |
gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Penalize repeated tokens")
|
57 |
]
|