Skip to content

Commit 4cd5a3c

Browse files
committed
print
1 parent f5550e3 commit 4cd5a3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/pipelines/pipeline_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1050,6 +1050,7 @@ def enable_model_cpu_offload(self, gpu_id: Optional[int] = None, device: Union[t
10501050
self._all_hooks = []
10511051
hook = None
10521052
for model_str in self.model_cpu_offload_seq.split("->"):
1053+
print(f"Entering with {model_str}")
10531054
model = all_model_components.pop(model_str, None)
10541055

10551056
if not isinstance(model, torch.nn.Module):
@@ -1079,8 +1080,7 @@ def enable_model_cpu_offload(self, gpu_id: Optional[int] = None, device: Union[t
10791080
else:
10801081
_, hook = cpu_offload_with_hook(model, device)
10811082
self._all_hooks.append(hook)
1082-
print("Done second time.")
1083-
1083+
10841084
def maybe_free_model_hooks(self):
10851085
r"""
10861086
Function that offloads all components, removes all model hooks that were added when using

0 commit comments

Comments
 (0)