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
chenpangpang
transformers
Commits
a5f5568d
Unverified
Commit
a5f5568d
authored
Oct 16, 2023
by
Sourab Mangrulkar
Committed by
GitHub
Oct 16, 2023
Browse files
Make fsdp ram efficient loading optional (#26631)
make fsdp ram efficient loading optional
parent
5d997f22
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/modeling_utils.py
src/transformers/modeling_utils.py
+1
-0
No files found.
src/transformers/modeling_utils.py
View file @
a5f5568d
...
@@ -125,6 +125,7 @@ def is_fsdp_enabled():
...
@@ -125,6 +125,7 @@ def is_fsdp_enabled():
torch
.
distributed
.
is_available
()
torch
.
distributed
.
is_available
()
and
torch
.
distributed
.
is_initialized
()
and
torch
.
distributed
.
is_initialized
()
and
strtobool
(
os
.
environ
.
get
(
"ACCELERATE_USE_FSDP"
,
"False"
))
==
1
and
strtobool
(
os
.
environ
.
get
(
"ACCELERATE_USE_FSDP"
,
"False"
))
==
1
and
strtobool
(
os
.
environ
.
get
(
"FSDP_CPU_RAM_EFFICIENT_LOADING"
,
"False"
))
==
1
)
)
...
...
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