This commit is contained in:
saibit
2025-04-22 16:12:06 +08:00
parent 7c61c0dfe0
commit d33d5eccd1

View File

@@ -1004,8 +1004,7 @@ class Flux(nn.Module):
if self.blocks_to_swap is None or self.blocks_to_swap == 0:
return
self.offloader_double.prepare_block_devices_before_forward(self.double_blocks)
self.offloader_single.prepare_block_devices_before_forward(self.single_blocks)
self.offloader_single.prepare_block_devices_before_forward(self.single_blocks)
def forward(
self,
img: Tensor,