We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0240929 commit 4c43475Copy full SHA for 4c43475
1 file changed
src/maxdiffusion/models/lora_nnx.py
@@ -122,7 +122,11 @@ def parse_lora_dict(state_dict, dtype):
122
continue
123
124
# Standard LoRA
125
- m = re.match(r"^(.*?)\.(lora_down|lora_up)\.weight$", k)
+ m = re.match(r"^(.*?)_lora\.(down|up)\.weight$", k)
126
+ if not m:
127
+ m = re.match(r"^(.*?)\.lora\.(down|up)\.weight$", k)
128
129
+ m = re.match(r"^(.*?)\.(lora_down|lora_up)\.weight$", k)
130
if not m:
131
m = re.match(r"^(.*?)\.(lora_A|lora_B)\.weight$", k)
132
0 commit comments