Skip to content

Commit a19bdb8

Browse files
committed
[Minor] Note about resuming.
1 parent 9e672d8 commit a19bdb8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/template_package_name/template_experiment.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ def main(config: DictConfig) -> None:
8484
last_file = files[-1]
8585
logger.info(f"Resuming from {last_file.stem}")
8686
i = int(last_file.stem.split("_")[1]) + 1
87+
# Important:
88+
# When resuming, you should recover the state of the experiment as it was when it was interrupted.
89+
# I.e., the random state, the state of the model, the optimizer, etc.
8790
else:
8891
i = 0
8992

0 commit comments

Comments
 (0)