Skip to content

Commit

Permalink
Fix test for sagemaker and TPU integrations
Browse files Browse the repository at this point in the history
  • Loading branch information
sgugger committed Feb 4, 2021
1 parent 21b3922 commit 4739ce1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transformers/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def train(
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:
Expand Down

0 comments on commit 4739ce1

Please sign in to comment.