Skip to content

Commit bbffe46

Browse files
committed
weight loading debug
1 parent be231da commit bbffe46

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/maxdiffusion/models/ltx2/ltx2_3_utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ def load_transformer_weights_2_3(
186186
renamed_pt_key = rename_key(pt_key)
187187
renamed_pt_key = rename_for_ltx2_3_transformer(renamed_pt_key)
188188

189+
if "prompt_scale_shift_table" in renamed_pt_key:
190+
print(f"DEBUG Weight: {renamed_pt_key} shape: {tensor.shape} min: {jnp.min(tensor)} max: {jnp.max(tensor)}")
191+
189192
pt_tuple_key = tuple(renamed_pt_key.split("."))
190193

191194
flax_key, flax_tensor = get_key_and_value(

0 commit comments

Comments
 (0)