From b871f76aacd858e808d7d9537cf1b87cd13a8b8f Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 8 Jan 2023 15:00:02 -0300 Subject: [PATCH] Better default for chat output length Ideally, generation should stop at '\n', but this feature is brand new on transformers (https://github.com/huggingface/transformers/pull/20727) --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 8c184985..75729159 100644 --- a/server.py +++ b/server.py @@ -181,7 +181,7 @@ elif args.chat: with gr.Column(): with gr.Row(equal_height=True): with gr.Column(): - length_slider = gr.Slider(minimum=1, maximum=2000, step=1, label='max_length', value=200) + length_slider = gr.Slider(minimum=1, maximum=2000, step=1, label='max_length', value=100) preset_menu = gr.Dropdown(choices=available_presets, value="NovelAI-Sphinx Moth", label='Preset') with gr.Column(): temp_slider = gr.Slider(minimum=0.0, maximum=1.0, step=0.01, label='Temperature', value=0.7)