SaulLu commited on
Commit
20792b9
1 Parent(s): 45de332

set the maximum value of Top p parameter to 1

Browse files

My 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?

Files changed (1) hide show
  1. app.py +1 -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, 10, default=0.9, step=0.05, label="Top P"),
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"),