Skip to content

Commit b57f376

Browse files
committed
test
1 parent a78058d commit b57f376

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

src/maxdiffusion/models/lora_nnx.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +285,6 @@ def merge_lora_for_scanned(
285285

286286
assigned_count = 0
287287
for path, module in nnx.iter_graph(model):
288-
if not isinstance(module, (nnx.Linear, nnx.Conv, nnx.LayerNorm, nnx.RMSNorm, nnx.Embed)):
289-
continue
290288

291289
nnx_path_str = ".".join(map(str, path))
292290
lora_key_template = translate_fn(nnx_path_str) if translate_fn else None
@@ -296,6 +294,13 @@ def merge_lora_for_scanned(
296294
max_logging.log(f"lora_key_template: {lora_key_template}")
297295
max_logging.log(f"Module: {module}")
298296
max_logging.log(f"Module Type: {type(module)}")
297+
continue
298+
299+
if not isinstance(module, (nnx.Linear, nnx.Conv, nnx.LayerNorm, nnx.RMSNorm, nnx.Embed)):
300+
continue
301+
302+
nnx_path_str = ".".join(map(str, path))
303+
lora_key_template = translate_fn(nnx_path_str) if translate_fn else None
299304

300305
if not lora_key_template:
301306
continue

0 commit comments

Comments
 (0)