mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 21:00:08 +06:00
[deepspeed] fix resume from checkpoint (#11352)
This PR fixes a bug that most likely somehow got exposed (not caused) by https://github.com/huggingface/transformers/pull/11318 - surprisingly the same test worked just fine before that other PR.
This commit is contained in:
parent
74712e22f3
commit
ca7ff64f5b
@ -1017,7 +1017,7 @@ class Trainer:
|
|||||||
"yield to errors or unwanted behaviors."
|
"yield to errors or unwanted behaviors."
|
||||||
)
|
)
|
||||||
|
|
||||||
if self.deepspeed:
|
if args.deepspeed:
|
||||||
# will be resumed in deepspeed_init
|
# will be resumed in deepspeed_init
|
||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user