From a49cc69a4a504efb6d493e7d2257f34b3ea775d8 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Tue, 10 Oct 2023 13:57:40 -0700 Subject: [PATCH] Ignore rope_freq_base if value is 10000 --- modules/models_settings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/models_settings.py b/modules/models_settings.py index aecb7a89..4c5b2f94 100644 --- a/modules/models_settings.py +++ b/modules/models_settings.py @@ -91,6 +91,10 @@ def get_model_metadata(model): if 'desc_act' in metadata: model_settings['desc_act'] = metadata['desc_act'] + # Ignore rope_freq_base if set to the default value + if model_settings['rope_freq_base'] == 10000: + model_settings.pop('rope_freq_base') + # Apply user settings from models/config-user.yaml settings = shared.user_config for pat in settings: