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
32fea1cc
Unverified
Commit
32fea1cc
authored
Oct 30, 2023
by
Younes Belkada
Committed by
GitHub
Oct 30, 2023
Browse files
[`core` / `PEFT` ]Bump transformers min version for PEFT integration (#5579)
Update constants.py
parent
bb46be2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
src/diffusers/utils/constants.py
src/diffusers/utils/constants.py
+2
-1
No files found.
src/diffusers/utils/constants.py
View file @
32fea1cc
...
@@ -23,6 +23,7 @@ from .import_utils import is_peft_available, is_transformers_available
...
@@ -23,6 +23,7 @@ from .import_utils import is_peft_available, is_transformers_available
default_cache_path
=
HUGGINGFACE_HUB_CACHE
default_cache_path
=
HUGGINGFACE_HUB_CACHE
MIN_PEFT_VERSION
=
"0.5.0"
MIN_PEFT_VERSION
=
"0.5.0"
MIN_TRANSFORMERS_VERSION
=
"4.33.3"
CONFIG_NAME
=
"config.json"
CONFIG_NAME
=
"config.json"
...
@@ -46,6 +47,6 @@ _required_peft_version = is_peft_available() and version.parse(
...
@@ -46,6 +47,6 @@ _required_peft_version = is_peft_available() and version.parse(
)
>
version
.
parse
(
MIN_PEFT_VERSION
)
)
>
version
.
parse
(
MIN_PEFT_VERSION
)
_required_transformers_version
=
is_transformers_available
()
and
version
.
parse
(
_required_transformers_version
=
is_transformers_available
()
and
version
.
parse
(
version
.
parse
(
importlib
.
metadata
.
version
(
"transformers"
)).
base_version
version
.
parse
(
importlib
.
metadata
.
version
(
"transformers"
)).
base_version
)
>
version
.
parse
(
"4.33"
)
)
>
version
.
parse
(
MIN_TRANSFORMERS_VERSION
)
USE_PEFT_BACKEND
=
_required_peft_version
and
_required_transformers_version
USE_PEFT_BACKEND
=
_required_peft_version
and
_required_transformers_version
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