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
f2cc8ffd
Unverified
Commit
f2cc8ffd
authored
Apr 07, 2023
by
Seung-Moo Yang
Committed by
GitHub
Apr 07, 2023
Browse files
Fix typo (#22650)
parent
1de8ce9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/transformers/trainer.py
src/transformers/trainer.py
+3
-3
No files found.
src/transformers/trainer.py
View file @
f2cc8ffd
...
...
@@ -462,9 +462,9 @@ class Trainer:
if
"backward_prefetch"
in
self
.
args
.
fsdp_config
and
"backward_pos"
not
in
self
.
backward_prefetch
:
self
.
backward_prefetch
=
BackwardPrefetch
.
BACKWARD_POST
self
.
forw
o
rd_prefetch
=
False
if
self
.
args
.
fsdp_config
.
get
(
"forw
o
rd_prefect"
,
False
):
self
.
forw
o
rd_prefetch
=
True
self
.
forw
a
rd_prefetch
=
False
if
self
.
args
.
fsdp_config
.
get
(
"forw
a
rd_prefect"
,
False
):
self
.
forw
a
rd_prefetch
=
True
self
.
limit_all_gathers
=
False
if
self
.
args
.
fsdp_config
.
get
(
"limit_all_gathers"
,
False
):
...
...
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