Avoid using no_sync on SageMaker DP (#11229)

This commit is contained in:
Sylvain Gugger 2021-04-13 15:34:00 -04:00 committed by GitHub
parent 9fa2995993
commit 9d8e8a8703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -805,7 +805,7 @@ class TrainingArguments:
"""
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):
"""