From ea21a229406737d6cd4bf484c2cfc702452dd0ce Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Wed, 22 Feb 2023 01:01:26 -0300 Subject: [PATCH] Remove redundant preset --- presets/FlexGen.txt | 2 -- server.py | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) delete mode 100644 presets/FlexGen.txt diff --git a/presets/FlexGen.txt b/presets/FlexGen.txt deleted file mode 100644 index d1760a06..00000000 --- a/presets/FlexGen.txt +++ /dev/null @@ -1,2 +0,0 @@ -do_sample=True -temperature=0.5 diff --git a/server.py b/server.py index ecc9679b..d475b1e2 100644 --- a/server.py +++ b/server.py @@ -502,7 +502,7 @@ def create_extensions_block(): btn_extensions.click(update_extensions_parameters, [*extensions_ui_elements], []) def create_settings_menus(): - generate_params = load_preset_values(settings[f'preset{suffix}'] if not args.flexgen else 'FlexGen', return_dict=True) + generate_params = load_preset_values(settings[f'preset{suffix}'] if not args.flexgen else 'Naive', return_dict=True) with gr.Row(): with gr.Column(): @@ -511,7 +511,7 @@ def create_settings_menus(): create_refresh_button(model_menu, lambda : None, lambda : {"choices": get_available_models()}, "refresh-button") with gr.Column(): with gr.Row(): - preset_menu = gr.Dropdown(choices=available_presets, value=settings[f'preset{suffix}'] if not args.flexgen else 'FlexGen', label='Generation parameters preset') + preset_menu = gr.Dropdown(choices=available_presets, value=settings[f'preset{suffix}'] if not args.flexgen else 'Naive', label='Generation parameters preset') create_refresh_button(preset_menu, lambda : None, lambda : {"choices": get_available_presets()}, "refresh-button") with gr.Accordion("Custom generation parameters", open=False, elem_id="accordion"):