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 ccb35ac commit 00a3bc9Copy full SHA for 00a3bc9
src/diffusers/loaders/lora_base.py
@@ -432,7 +432,7 @@ def _func_optionally_disable_offloading(_pipeline):
432
is_model_cpu_offload = False
433
is_sequential_cpu_offload = False
434
435
- if _pipeline is not None and hasattr(_pipeline, hf_device_map) and _pipeline.hf_device_map is None:
+ if _pipeline is not None and hasattr(_pipeline, "hf_device_map") and _pipeline.hf_device_map is None:
436
for _, component in _pipeline.components.items():
437
if isinstance(component, nn.Module) and hasattr(component, "_hf_hook"):
438
if not is_model_cpu_offload:
0 commit comments