From 7e4c25691d2a4990d1b06cbfa7edb87d6360d544 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 7 Feb 2023 23:23:39 -0300 Subject: [PATCH] Repetition penalty has to be < 5 --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 893b556a..90ee8cf9 100644 --- a/server.py +++ b/server.py @@ -387,7 +387,7 @@ def create_settings_menus(): top_p = gr.Slider(0.0,1.0,value=defaults['top_p'],step=0.01,label="top_p") typical_p = gr.Slider(0.0,1.0,value=defaults['typical_p'],step=0.01,label="typical_p") with gr.Column(): - repetition_penalty = gr.Slider(1.0,5.0,value=defaults['repetition_penalty'],step=0.01,label="repetition_penalty") + repetition_penalty = gr.Slider(1.0,4.99,value=defaults['repetition_penalty'],step=0.01,label="repetition_penalty") top_k = gr.Slider(0,200,value=defaults['top_k'],step=1,label="top_k") no_repeat_ngram_size = gr.Slider(0, 20, step=1, value=defaults["no_repeat_ngram_size"], label="no_repeat_ngram_size")