Skip to content

Commit 4c43475

Browse files
committed
test
1 parent 0240929 commit 4c43475

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/maxdiffusion/models/lora_nnx.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,11 @@ def parse_lora_dict(state_dict, dtype):
122122
continue
123123

124124
# Standard LoRA
125-
m = re.match(r"^(.*?)\.(lora_down|lora_up)\.weight$", k)
125+
m = re.match(r"^(.*?)_lora\.(down|up)\.weight$", k)
126+
if not m:
127+
m = re.match(r"^(.*?)\.lora\.(down|up)\.weight$", k)
128+
if not m:
129+
m = re.match(r"^(.*?)\.(lora_down|lora_up)\.weight$", k)
126130
if not m:
127131
m = re.match(r"^(.*?)\.(lora_A|lora_B)\.weight$", k)
128132

0 commit comments

Comments
 (0)