Skip to content

Commit 8c038f0

Browse files
authored
Update src/diffusers/loaders/lora_base.py
1 parent 5917d70 commit 8c038f0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/diffusers/loaders/lora_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def _func_optionally_disable_offloading(_pipeline):
438438
is_model_cpu_offload = False
439439
is_sequential_cpu_offload = False
440440

441-
if _pipeline is not None and hasattr(_pipeline, "hf_device_map") and _pipeline.hf_device_map is None:
441+
if _pipeline is not None and _pipeline.hf_device_map is None:
442442
for _, component in _pipeline.components.items():
443443
if isinstance(component, nn.Module) and hasattr(component, "_hf_hook"):
444444
if not is_model_cpu_offload:

0 commit comments

Comments
 (0)