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 7bfc1ee commit 7ee9465Copy full SHA for 7ee9465
src/diffusers/loaders/lora.py
@@ -355,7 +355,7 @@ def _optionally_disable_offloading(cls, _pipeline):
355
if not is_model_cpu_offload:
356
is_model_cpu_offload = isinstance(component._hf_hook, CpuOffload)
357
if not is_sequential_cpu_offload:
358
- is_sequential_cpu_offload = (
+ is_sequential_cpu_offload = component.device.type == "cpu" and (
359
isinstance(component._hf_hook, AlignDevicesHook)
360
or hasattr(component._hf_hook, "hooks")
361
and isinstance(component._hf_hook.hooks[0], AlignDevicesHook)
0 commit comments