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
"tests/data2vec/test_modeling_data2vec_vision.py" did not exist on "29c10a41d04f855c433a6cde7797b325651417d2"
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
Show 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