Skip to content

Commit 9993393

Browse files
committed
fix
1 parent d0735a5 commit 9993393

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/scripts/convert_ltx2_vae_weights.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def convert_ltx2_vae(hf_repo, output_path):
6666
# We need to run a dummy forward or init to get parameters if they are lazy,
6767
# but nnx.Module usually has them after init if shape is provided?
6868
# Wait, nnx modules need to be split to see params.
69-
graphdef, params = nnx.split(model, nnx.Param)
69+
graphdef, state = nnx.split(model); params = state.filter(nnx.Param)
7070
flat_params = nnx.traverse_util.flatten_dict(params)
7171
sorted_flat_keys = sorted(flat_params.keys())
7272
for k in sorted_flat_keys:

0 commit comments

Comments
 (0)