Skip to content

Commit 7d96d88

Browse files
committed
fix is_peft_version is_bitsandbytes_version
1 parent 9e2e165 commit 7d96d88

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/diffusers/utils/import_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -815,7 +815,7 @@ def is_peft_version(operation: str, version: str):
815815
version (`str`):
816816
A version string
817817
"""
818-
if not _peft_version:
818+
if not _peft_available:
819819
return False
820820
return compare_versions(parse(_peft_version), operation, version)
821821

@@ -829,7 +829,7 @@ def is_bitsandbytes_version(operation: str, version: str):
829829
version (`str`):
830830
A version string
831831
"""
832-
if not _bitsandbytes_version:
832+
if not _bitsandbytes_available:
833833
return False
834834
return compare_versions(parse(_bitsandbytes_version), operation, version)
835835

0 commit comments

Comments
 (0)