Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
a8a3a20d
Unverified
Commit
a8a3a20d
authored
Oct 05, 2022
by
Patrick von Platen
Committed by
GitHub
Oct 05, 2022
Browse files
[Tests] Add accelerate to testing (#729)
* fix accelerate for testing * fix copies * uP
parent
7265dd8c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
setup.py
setup.py
+9
-2
src/diffusers/utils/dummy_flax_objects.py
src/diffusers/utils/dummy_flax_objects.py
+7
-0
No files found.
setup.py
View file @
a8a3a20d
...
...
@@ -104,7 +104,6 @@ _deps = [
"torch>=1.4"
,
"torchvision"
,
"transformers>=4.21.0"
,
"accelerate>=0.12.0"
]
# this is a lookup table with items like:
...
...
@@ -179,7 +178,15 @@ extras["quality"] = deps_list("black", "isort", "flake8", "hf-doc-builder")
extras
[
"docs"
]
=
deps_list
(
"hf-doc-builder"
)
extras
[
"training"
]
=
deps_list
(
"accelerate"
,
"datasets"
,
"tensorboard"
,
"modelcards"
)
extras
[
"test"
]
=
deps_list
(
"datasets"
,
"onnxruntime"
,
"pytest"
,
"pytest-timeout"
,
"pytest-xdist"
,
"scipy"
,
"torchvision"
,
"transformers"
"accelerate"
,
"datasets"
,
"onnxruntime"
,
"pytest"
,
"pytest-timeout"
,
"pytest-xdist"
,
"scipy"
,
"torchvision"
,
"transformers"
)
extras
[
"torch"
]
=
deps_list
(
"torch"
)
...
...
src/diffusers/utils/dummy_flax_objects.py
View file @
a8a3a20d
...
...
@@ -67,6 +67,13 @@ class FlaxPNDMScheduler(metaclass=DummyObject):
requires_backends
(
self
,
[
"flax"
])
class
FlaxSchedulerMixin
(
metaclass
=
DummyObject
):
_backends
=
[
"flax"
]
def
__init__
(
self
,
*
args
,
**
kwargs
):
requires_backends
(
self
,
[
"flax"
])
class
FlaxScoreSdeVeScheduler
(
metaclass
=
DummyObject
):
_backends
=
[
"flax"
]
...
...
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