mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Avoid using no_sync on SageMaker DP (#11229)
This commit is contained in:
parent
9fa2995993
commit
9d8e8a8703
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user