We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb7820f commit b120ea9Copy full SHA for b120ea9
1 file changed
src/lightning/pytorch/loops/fit_loop.py
@@ -522,11 +522,13 @@ def on_save_checkpoint(self) -> dict:
522
state_dict = super().on_save_checkpoint()
523
if self._combined_loader is not None and (loader_states := self._combined_loader._state_dicts()):
524
state_dict["combined_loader"] = loader_states
525
+ state_dict["last_train_dl_reload_epoch"] = self._last_train_dl_reload_epoch
526
return state_dict
527
528
@override
529
def on_load_checkpoint(self, state_dict: dict) -> None:
530
self._combined_loader_states_to_load = state_dict.get("combined_loader", [])
531
+ self._last_train_dl_reload_epoch = state_dict.get("last_train_dl_reload_epoch", float("-inf"))
532
super().on_load_checkpoint(state_dict)
533
534
def _warn_if_modules_in_eval_mode(self) -> None:
0 commit comments