mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
Fix test for sagemaker and TPU integrations
This commit is contained in:
parent
21b3922e35
commit
4739ce177d
@ -793,7 +793,7 @@ class Trainer:
|
||||
model = ShardedDDP(model, self.optimizer)
|
||||
elif is_sagemaker_distributed_available():
|
||||
model = DDP(model, device_ids=[dist.get_local_rank()], broadcast_buffers=False)
|
||||
if self.deepspeed:
|
||||
elif self.deepspeed:
|
||||
pass # already initialized its own DDP earlier
|
||||
elif self.args.local_rank != -1:
|
||||
if self.args.ddp_find_unused_parameters is not None:
|
||||
|
Loading…
Reference in New Issue
Block a user