Skip to content

Commit 1e79c0b

Browse files
committed
wan_utils.py fixed
1 parent af2b144 commit 1e79c0b

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

src/maxdiffusion/models/wan/wan_utils.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -283,11 +283,6 @@ def load_base_wan_transformer(
283283
# Rename weight to kernel
284284
if "weight" in renamed_pt_key:
285285
renamed_pt_key = renamed_pt_key.replace("weight", "kernel")
286-
287-
# CRITICAL FIX: Transpose the weights
288-
# PyTorch Linear is (Out, In), JAX Dense is (In, Out).
289-
# Ensure 'pt_tensor' is the variable holding your weight tensor.
290-
pt_tensor = pt_tensor.T
291286

292287
# 5. Fix for 'norm_added_q' which showed up in your missing keys list
293288
# The error said 'kernel' was missing, implying this specific norm might act like a dense layer

0 commit comments

Comments
 (0)