From 9fab9a1ca6cb62067f53dfadad24eddfb0713ea0 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 10 Oct 2023 14:08:11 -0700 Subject: [PATCH] Minor fix --- modules/models_settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/models_settings.py b/modules/models_settings.py index 4c5b2f94..9b9e9bd0 100644 --- a/modules/models_settings.py +++ b/modules/models_settings.py @@ -92,7 +92,7 @@ def get_model_metadata(model): model_settings['desc_act'] = metadata['desc_act'] # Ignore rope_freq_base if set to the default value - if model_settings['rope_freq_base'] == 10000: + if 'rope_freq_base' in model_settings and model_settings['rope_freq_base'] == 10000: model_settings.pop('rope_freq_base') # Apply user settings from models/config-user.yaml