Spaces:
Runtime error
Runtime error
set the maximum value of Top p parameter to 1
Browse filesMy understanding was that the API was using the arguments for the generations defined [here](https://huggingface.co/docs/transformers/main/en/main_classes/text_generation#transformers.generation_utils.GenerationMixin.generate.inputs), if this is the case, shouldn't the maximum value of top_p be 1?
app.py
CHANGED
@@ -54,7 +54,7 @@ gr.Interface(
|
|
54 |
gr.inputs.Slider(1, 64, default=8, label="Tokens to generate"),
|
55 |
gr.inputs.Slider(0.0, 1.0, default=0.1, step=0.05, label="Temperature"),
|
56 |
gr.inputs.Slider(0, 64, default=0, step=1, label="Top K"),
|
57 |
-
gr.inputs.Slider(0.0,
|
58 |
gr.inputs.Checkbox(False, label="Greedy decoding"),
|
59 |
],
|
60 |
gr.outputs.Textbox(label="Output"),
|
|
|
54 |
gr.inputs.Slider(1, 64, default=8, label="Tokens to generate"),
|
55 |
gr.inputs.Slider(0.0, 1.0, default=0.1, step=0.05, label="Temperature"),
|
56 |
gr.inputs.Slider(0, 64, default=0, step=1, label="Top K"),
|
57 |
+
gr.inputs.Slider(0.0, 1, default=0.9, step=0.05, label="Top P"),
|
58 |
gr.inputs.Checkbox(False, label="Greedy decoding"),
|
59 |
],
|
60 |
gr.outputs.Textbox(label="Output"),
|