We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0735a5 commit 9993393Copy full SHA for 9993393
1 file changed
src/maxdiffusion/scripts/convert_ltx2_vae_weights.py
@@ -66,7 +66,7 @@ def convert_ltx2_vae(hf_repo, output_path):
66
# We need to run a dummy forward or init to get parameters if they are lazy,
67
# but nnx.Module usually has them after init if shape is provided?
68
# Wait, nnx modules need to be split to see params.
69
- graphdef, params = nnx.split(model, nnx.Param)
+ graphdef, state = nnx.split(model); params = state.filter(nnx.Param)
70
flat_params = nnx.traverse_util.flatten_dict(params)
71
sorted_flat_keys = sorted(flat_params.keys())
72
for k in sorted_flat_keys:
0 commit comments