Skip to content

Commit c15b36b

Browse files
committed
some fix in ltx2_utils.py
1 parent 38fd3c7 commit c15b36b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/models/ltx2/ltx2_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def replace_suffix(lst, old, new):
9191
lst[-1] = new
9292
return lst
9393

94-
if "transformer_blocks" in flax_key_str:
94+
if "transformer_blocks" in flax_key_str or ("attn1" in flax_key_str and len(flax_key_str) >= 2 and "attn1" in flax_key_str[-2]):
9595
if flax_key_str[-1] == "query":
9696
flax_key_str[-1] = "to_q"
9797
elif flax_key_str[-1] == "key":

0 commit comments

Comments
 (0)