From 81947630ee09477b30634614e24831352952749a Mon Sep 17 00:00:00 2001 From: Daniel Ruggeri Date: Sat, 9 May 2026 22:11:28 -0500 Subject: [PATCH] Allow "-" when matching lora strengths to accomodate negative numbers --- config_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config_utils.py b/config_utils.py index 38df45b..621b241 100644 --- a/config_utils.py +++ b/config_utils.py @@ -218,7 +218,7 @@ def _expand_lora_weight_arrays(lora_string): # Check for bracket notation in strength values # Match pattern: name:[array_or_value]:[array_or_value] or name:[array_or_value] - bracket_match = re.search(r'\[[\d.,\s]+\]', part) + bracket_match = re.search(r'\[[\d.,\s-]+\]', part) if not bracket_match: # No arrays in this part, keep as-is parts_expansions.append([part])