Skip to content

Commit 1d1248a

Browse files
committed
print
1 parent 360935c commit 1d1248a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -988,6 +988,7 @@ def remove_all_hooks(self):
988988
if isinstance(model, torch.nn.Module) and hasattr(model, "_hf_hook"):
989989
print(f"{model.__class__.__name__=}")
990990
accelerate.hooks.remove_hook_from_module(model, recurse=True)
991+
print("Done removing from the current model.")
991992
self._all_hooks = []
992993

993994
def enable_model_cpu_offload(self, gpu_id: Optional[int] = None, device: Union[torch.device, str] = "cuda"):

0 commit comments

Comments
 (0)