Skip to content

Commit a1133d6

Browse files
authored
fix compile repeated blocks (#191)
1 parent 6f8073c commit a1133d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

diffsynth_engine/models/flux/flux_dit.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,5 +515,8 @@ def compile_repeated_blocks(self, *args, **kwargs):
515515
for block in self.blocks:
516516
block.compile(*args, **kwargs)
517517

518+
for block in self.single_blocks:
519+
block.compile(*args, **kwargs)
520+
518521
def get_fsdp_module_cls(self):
519522
return {FluxDoubleTransformerBlock, FluxSingleTransformerBlock}

diffsynth_engine/models/wan/wan_dit.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,5 @@ def compile_repeated_blocks(self, *args, **kwargs):
499499
for block in self.blocks:
500500
block.compile(*args, **kwargs)
501501

502-
for block in self.single_blocks:
503-
block.compile(*args, **kwargs)
504-
505502
def get_fsdp_module_cls(self):
506503
return {DiTBlock}

0 commit comments

Comments
 (0)