pytorch-lightning
Add `save_on_exception` option to `ModelCheckpoint`
#20916
Merged

Add `save_on_exception` option to `ModelCheckpoint` #20916

vsey
vsey add saving of checkpoint if an exception is raised
0f731674
vsey import callback to checkpoint test file
136e59a9
vsey add test for exception in training callbacks
e0dae535
vsey split test for save checksave point on expection for expetions in tra…
2113acc2
vsey add extra condition for checking if we should save on exception
7d750e69
vsey add for saving checkpoint on exeption if the exception occurs in a va…
34e598ac
vsey add test for save model chekpoint on exception for exception in train…
d4d933be
vsey disable trainer prog bar for test of model checkpoint on exception
9f6063b8
vsey model checkpoint on eception split trainer setup over two lines
02477d5b
vsey remove trainling braket from shoukd_save_on_eception condition
e5b0498e
github-actions github-actions added pl
vsey Merge branch 'master' into feat/ModelCheckpointException
8bc93e21
pre-commit-ci[bot] [pre-commit.ci] auto fixes from pre-commit.com hooks
985c1e1e
vsey Update save checkpoint on exception tests to use a shorter more preci…
f0502ecb
vsey vsey force pushed from 6249794d to f0502ecb 342 days ago
vsey switch default on save on checkpoint on exception to false to don't i…
99af7ed1
vsey checkpoint on exception put callback tests into a pytest prametrization
c092385d
vsey change doc string to reflect new default value for save on exception …
904bd743
vsey checkpoint on exception add test function for exception in callback
3a3204e3
vsey Merge branch 'master' into feat/ModelCheckpointException
0b1eb775
vsey add prefix option to generate checkpoint file name
467c57bb
vsey add exception prefix to checkpoints saved on exception
8ba63819
vsey add test to test prefix for checkpoint name
3076ea1a
vsey add test for exceptions at diffrent position in a model
d78ea3e2
vsey add description to on exception hook in model checkpoint
42bbac12
vsey add test to check saving on exception in all relevalnt callback posit…
c4b80631
vsey also print exception when saving checkpoint
2ca6dab5
vsey test checkpointing on exception in varoius model steps
9e9e580e
vsey remove deviders in test_model_checkpoint
d2f74e98
vsey add test for run conditions for save checkpoint on exception
ac33670c
vsey vsey marked this pull request as ready for review 340 days ago
vsey vsey requested a review from lantiga lantiga 340 days ago
vsey vsey requested a review from Borda Borda 340 days ago
vsey vsey requested a review from tchaton tchaton 340 days ago
vsey vsey requested a review from justusschock justusschock 340 days ago
vsey vsey requested a review from ethanwharris ethanwharris 340 days ago
Borda
Borda commented on 2025-06-23
Borda
Borda commented on 2025-06-23
Borda
Borda commented on 2025-06-23
vsey Update model_checkpoint on_exception run condition to follow common c…
0dc9f244
vsey Merge branch 'master' into feat/ModelCheckpointException
2aa00add
vsey vsey changed the title Add save_on_exception option to ModelCheckpoint Add save_on_exception option to ModelCheckpoint [wp] 338 days ago
vsey vsey changed the title Add save_on_exception option to ModelCheckpoint [wp] Add save_on_exception option to ModelCheckpoint 338 days ago
vsey add checkpoint path variable in test_on_exceptio_incallback and set w…
c62f0e13
vsey remove exception prefix as this is already covert by last flag
f16b771b
vsey use pytest parametrization for testing callback on exception
09ba24fb
vsey add missing callback hooks for Test Troubled Callback and order them …
c921875d
vsey add missing test hooks of lighning module to test save chekpoint on e…
fd3de65a
vsey change datatype of on_exception hook from Exception to BaseException …
7dfdbc5a
vsey vsey requested a review from Borda Borda 338 days ago
codecov
vsey Merge branch 'Lightning-AI:master' into feat/ModelCheckpointException
c2447cb1
Borda Borda changed the title Add save_on_exception option to ModelCheckpoint Add `save_on_exception` option to `ModelCheckpoint` 337 days ago
vsey Merge branch 'master' into feat/ModelCheckpointException
f2cd64fd
vsey change default prefix from empty string to Optinal to better convey m…
048ad860
vsey Merge branch 'master' into feat/ModelCheckpointException
71baa1cc
vsey Merge branch 'master' into feat/ModelCheckpointException
e81e291e
vsey Merge branch 'master' into feat/ModelCheckpointException
28c61e1e
vsey Merge branch 'master' into feat/ModelCheckpointException
6b67499a
vsey Merge branch 'master' into feat/ModelCheckpointException
7e990cab
vsey Added save_on_exception option for ModelCheckpoint to changelog
f0cf90b5
vsey Fix tense of changelog entrie to be in line with rest of changelog
921c9ee1
vsey change changelog entrie tense back
e388ee7a
vsey Merge branch 'master' into feat/ModelCheckpointException
7c70d467
vsey Merge branch 'master' into feat/ModelCheckpointException
97900b1b
vsey Merge branch 'master' into feat/ModelCheckpointException
36f4bc92
vsey Merge branch 'master' into feat/ModelCheckpointException
74271845
github-actions github-actions added has conflicts
Borda Merge branch 'master' into feat/ModelCheckpointException
03364787
github-actions github-actions removed has conflicts
github-actions github-actions added has conflicts
vsey Merge branch 'master' into feat/ModelCheckpointException
744cbbf9
pre-commit-ci[bot] [pre-commit.ci] auto fixes from pre-commit.com hooks
c2c7e93d
github-actions github-actions removed has conflicts
Borda
Borda commented on 2025-08-09
Borda
Borda commented on 2025-08-09
Borda Apply suggestions from code review
37a5369f
Borda
Borda commented on 2025-08-09
vsey Change the comment for the save_checkpoint_on_exception run condition…
43eae27e
pre-commit-ci[bot] [pre-commit.ci] auto fixes from pre-commit.com hooks
f4428e5d
Borda split
c272633b
pre-commit-ci[bot] [pre-commit.ci] auto fixes from pre-commit.com hooks
2d3f833c
Borda
Borda approved these changes on 2025-08-11
Borda Borda merged 6f93a90d into master 288 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone