Commit 3987139
committed
Restore optimizer weights from fp16 when ZeRO checkpoints are missing
When loading a checkpoint that doesn't have ZeRO checkpoint files,
restore the optimizer weights from the fp16 parameters instead of
leaving them uninitialized.
Without this fix, DeepSpeed behaves incorrectly on checkpoints that
were trained without DeepSpeed.1 parent 86cc636 commit 3987139
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1596 | 1596 | | |
1597 | 1597 | | |
1598 | 1598 | | |
| 1599 | + | |
1599 | 1600 | | |
1600 | 1601 | | |
1601 | 1602 | | |
| |||
0 commit comments