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
d1832dd8
Unverified
Commit
d1832dd8
authored
Aug 16, 2023
by
Yun Dai
Committed by
GitHub
Aug 17, 2023
Browse files
Update trainer.py (#25553)
parent
db816c6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/trainer.py
src/transformers/trainer.py
+1
-1
No files found.
src/transformers/trainer.py
View file @
d1832dd8
...
@@ -466,7 +466,7 @@ class Trainer:
...
@@ -466,7 +466,7 @@ class Trainer:
self
.
backward_prefetch
=
BackwardPrefetch
.
BACKWARD_POST
self
.
backward_prefetch
=
BackwardPrefetch
.
BACKWARD_POST
self
.
forward_prefetch
=
False
self
.
forward_prefetch
=
False
if
self
.
args
.
fsdp_config
.
get
(
"forward_prefe
c
t"
,
False
):
if
self
.
args
.
fsdp_config
.
get
(
"forward_prefet
ch
"
,
False
):
self
.
forward_prefetch
=
True
self
.
forward_prefetch
=
True
self
.
limit_all_gathers
=
False
self
.
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