Commit c70c473
(fix): handle is_last_step in DeepSpeedTrainStrategy.save_checkpoint
Previously, is_last_step was passed via **kwargs and transparently
forwarded to DeepSpeedEngine.save_checkpoint(), which does not accept
this argument, causing a TypeError at checkpoint time.
Fix by explicitly declaring is_last_step=None in the signature (consistent
with megatron_strategy and fsdp2_strategy), and applying the same
async_upload guard logic as the other strategies.
Signed-off-by: Xuchun Shang <xuchun.shang@linux.alibaba.com>1 parent ae69fd8 commit c70c473
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
503 | 503 | | |
504 | 504 | | |
505 | 505 | | |
506 | | - | |
| 506 | + | |
507 | 507 | | |
508 | 508 | | |
509 | 509 | | |
| |||
540 | 540 | | |
541 | 541 | | |
542 | 542 | | |
543 | | - | |
| 543 | + | |
544 | 544 | | |
545 | 545 | | |
546 | 546 | | |
| |||
0 commit comments