Skip to content

Commit 2e13836

Browse files
committed
version check.
1 parent c18e2eb commit 2e13836

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/diffusers/loaders/lora_pipeline.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
)
4343

4444

45+
_LOW_CPU_MEM_USAGE_DEFAULT_LORA = False
4546
if is_torch_version(">=", "1.9.0"):
4647
if (
4748
is_peft_available()
@@ -50,8 +51,6 @@
5051
and is_transformers_version(">", "4.45.1")
5152
):
5253
_LOW_CPU_MEM_USAGE_DEFAULT_LORA = True
53-
else:
54-
_LOW_CPU_MEM_USAGE_DEFAULT_LORA = False
5554

5655

5756
if is_transformers_available():

0 commit comments

Comments
 (0)