Skip to content

Commit

Permalink
fix bug in require_accelerate_version_greater (#9746)
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
faaany authored Oct 23, 2024
1 parent e45c25d commit 9366c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/utils/testing_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ def decorator(test_case):

def require_accelerate_version_greater(accelerate_version):
def decorator(test_case):
correct_accelerate_version = is_peft_available() and version.parse(
correct_accelerate_version = is_accelerate_available() and version.parse(
version.parse(importlib.metadata.version("accelerate")).base_version
) > version.parse(accelerate_version)
return unittest.skipUnless(
Expand Down

0 comments on commit 9366c8f

Please sign in to comment.