Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
9366c8f8
Unverified
Commit
9366c8f8
authored
Oct 23, 2024
by
Fanli Lin
Committed by
GitHub
Oct 23, 2024
Browse files
fix bug in `require_accelerate_version_greater` (#9746)
fix bug
parent
e45c25d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/testing_utils.py
src/diffusers/utils/testing_utils.py
+1
-1
No files found.
src/diffusers/utils/testing_utils.py
View file @
9366c8f8
...
...
@@ -425,7 +425,7 @@ def require_transformers_version_greater(transformers_version):
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
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment