Skip to content

Commit

Permalink
[deepspeed] fix resume from checkpoint (huggingface#11352)
Browse files Browse the repository at this point in the history
This PR fixes a bug that most likely somehow got exposed (not caused) by huggingface#11318 - surprisingly the same test worked just fine before that other PR.
  • Loading branch information
stas00 authored Apr 21, 2021
1 parent 74712e2 commit ca7ff64
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 @@ -1017,7 +1017,7 @@ def train(
"yield to errors or unwanted behaviors."
)

if self.deepspeed:
if args.deepspeed:
# will be resumed in deepspeed_init
pass
else:
Expand Down

0 comments on commit ca7ff64

Please sign in to comment.