Skip to content

How to save a checkpoint every n steps and overwrite the previous saved checkpoints? #6329

Discussion options

You must be logged in to vote

Just to be sure, do you mean every n step or every n epoch.
For doing it every n epoch, you can initialize model checkpoint with period parameter

checkpoint = pl.callbacks.ModelCheckpoint(period=n)

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@SkafteNicki
Comment options

@stanleyshly
Comment options

Answer selected by SkafteNicki
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment