We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06b3919 commit b062bd9Copy full SHA for b062bd9
src/diffusers/pipelines/pipeline_utils.py
@@ -983,6 +983,7 @@ def remove_all_hooks(self):
983
r"""
984
Removes all hooks that were added when using `enable_sequential_cpu_offload` or `enable_model_cpu_offload`.
985
"""
986
+ print("Within remove_all_hooks().")
987
for _, model in self.components.items():
988
if isinstance(model, torch.nn.Module) and hasattr(model, "_hf_hook"):
989
accelerate.hooks.remove_hook_from_module(model, recurse=True)
0 commit comments