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 9a732f0 commit 80c5acdCopy full SHA for 80c5acd
src/diffusers/pipelines/pipeline_utils.py
@@ -1088,10 +1088,6 @@ def maybe_free_model_hooks(self):
1088
is a no-op. Make sure to add this function to the end of the `__call__` function of your pipeline so that it
1089
functions correctly when applying enable_model_cpu_offload.
1090
"""
1091
-
1092
- if hasattr(self, "_diffusers_hook"):
1093
- self._diffusers_hook.reset_state()
1094
1095
if not hasattr(self, "_all_hooks") or len(self._all_hooks) == 0:
1096
# `enable_model_cpu_offload` has not be called, so silently do nothing
1097
return
0 commit comments