Skip to content

Commit 8fd0717

Browse files
Comment out unused norm_final in lumina/z image model. (comfyanonymous#11545)
1 parent 2943093 commit 8fd0717

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

comfy/ldm/lumina/model.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,7 +491,8 @@ def __init__(
491491
for layer_id in range(n_layers)
492492
]
493493
)
494-
self.norm_final = operation_settings.get("operations").RMSNorm(dim, eps=norm_eps, elementwise_affine=True, device=operation_settings.get("device"), dtype=operation_settings.get("dtype"))
494+
# This norm final is in the lumina 2.0 code but isn't actually used for anything.
495+
# self.norm_final = operation_settings.get("operations").RMSNorm(dim, eps=norm_eps, elementwise_affine=True, device=operation_settings.get("device"), dtype=operation_settings.get("dtype"))
495496
self.final_layer = FinalLayer(dim, patch_size, self.out_channels, z_image_modulation=z_image_modulation, operation_settings=operation_settings)
496497

497498
if self.pad_tokens_multiple is not None:

0 commit comments

Comments
 (0)