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
9d8e8a87
Unverified
Commit
9d8e8a87
authored
Apr 13, 2021
by
Sylvain Gugger
Committed by
GitHub
Apr 13, 2021
Browse files
Avoid using no_sync on SageMaker DP (#11229)
parent
9fa29959
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/transformers/training_args.py
src/transformers/training_args.py
+1
-1
No files found.
src/transformers/training_args.py
View file @
9d8e8a87
...
@@ -805,7 +805,7 @@ class TrainingArguments:
...
@@ -805,7 +805,7 @@ class TrainingArguments:
"""
"""
Whether or not to use no_sync for the gradients when doing gradient accumulation.
Whether or not to use no_sync for the gradients when doing gradient accumulation.
"""
"""
return
not
(
self
.
deepspeed
or
is_sagemaker_mp_enabled
())
return
not
(
self
.
deepspeed
or
is_sagemaker_dp_enabled
()
or
is_sagemaker_mp_enabled
())
def
to_dict
(
self
):
def
to_dict
(
self
):
"""
"""
...
...
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