We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5917d70 commit 8c038f0Copy full SHA for 8c038f0
1 file changed
src/diffusers/loaders/lora_base.py
@@ -438,7 +438,7 @@ def _func_optionally_disable_offloading(_pipeline):
438
is_model_cpu_offload = False
439
is_sequential_cpu_offload = False
440
441
- if _pipeline is not None and hasattr(_pipeline, "hf_device_map") and _pipeline.hf_device_map is None:
+ if _pipeline is not None and _pipeline.hf_device_map is None:
442
for _, component in _pipeline.components.items():
443
if isinstance(component, nn.Module) and hasattr(component, "_hf_hook"):
444
if not is_model_cpu_offload:
0 commit comments