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
bc403988
Unverified
Commit
bc403988
authored
Oct 24, 2025
by
Sayak Paul
Committed by
GitHub
Oct 24, 2025
Browse files
fix constants.py to user `upper()` (#12479)
parent
9c3b58dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/utils/constants.py
src/diffusers/utils/constants.py
+1
-1
No files found.
src/diffusers/utils/constants.py
View file @
bc403988
...
...
@@ -45,7 +45,7 @@ DIFFUSERS_ATTN_BACKEND = os.getenv("DIFFUSERS_ATTN_BACKEND", "native")
DIFFUSERS_ATTN_CHECKS
=
os
.
getenv
(
"DIFFUSERS_ATTN_CHECKS"
,
"0"
)
in
ENV_VARS_TRUE_VALUES
DEFAULT_HF_PARALLEL_LOADING_WORKERS
=
8
HF_ENABLE_PARALLEL_LOADING
=
os
.
environ
.
get
(
"HF_ENABLE_PARALLEL_LOADING"
,
""
).
upper
()
in
ENV_VARS_TRUE_VALUES
DIFFUSERS_DISABLE_REMOTE_CODE
=
os
.
getenv
(
"DIFFUSERS_DISABLE_REMOTE_CODE"
,
"false"
).
low
er
()
in
ENV_VARS_TRUE_VALUES
DIFFUSERS_DISABLE_REMOTE_CODE
=
os
.
getenv
(
"DIFFUSERS_DISABLE_REMOTE_CODE"
,
"false"
).
upp
er
()
in
ENV_VARS_TRUE_VALUES
DIFFUSERS_ENABLE_HUB_KERNELS
=
os
.
environ
.
get
(
"DIFFUSERS_ENABLE_HUB_KERNELS"
,
""
).
upper
()
in
ENV_VARS_TRUE_VALUES
# Below should be `True` if the current version of `peft` and `transformers` are compatible with
...
...
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