We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64adc55 commit 701fb6aCopy full SHA for 701fb6a
pytorch_lightning/plugins/training_type/deepspeed.py
@@ -746,6 +746,8 @@ def lightning_restore_optimizer_and_schedulers(self) -> bool:
746
return False
747
748
def load_model_state_dict(self, checkpoint: Mapping[str, Any]) -> None:
749
+ if "state_dict" not in checkpoint and self._has_loaded_state_dict:
750
+ return
751
# override to do nothing, deepspeed engine already loaded the weights in `load_checkpoint()`
752
if self.load_full_weights and self.zero_stage_3:
753
self.model_to_device()
0 commit comments