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)
This commit is contained in:
oobabooga 2023-01-08 15:00:02 -03:00
parent b801e0d50d
commit b871f76aac

View file

@ -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)