Skip to content

Commit 00a3bc9

Browse files
committed
fix
1 parent ccb35ac commit 00a3bc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/loaders/lora_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ def _func_optionally_disable_offloading(_pipeline):
432432
is_model_cpu_offload = False
433433
is_sequential_cpu_offload = False
434434

435-
if _pipeline is not None and hasattr(_pipeline, hf_device_map) and _pipeline.hf_device_map is None:
435+
if _pipeline is not None and hasattr(_pipeline, "hf_device_map") and _pipeline.hf_device_map is None:
436436
for _, component in _pipeline.components.items():
437437
if isinstance(component, nn.Module) and hasattr(component, "_hf_hook"):
438438
if not is_model_cpu_offload:

0 commit comments

Comments
 (0)