Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add policy-based model checkpointing callback #106

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nkrishnaswami
Copy link

This PR adds

  • PolicyBasedModelCheckpointingCallback to use a policy to perform model checkpointing, optionally including the iteration number to allow saving multiple checkpoints
  • ABC CheckpointPolicy to control when to save a checkpoint
  • IterationFrequencyCheckpointPolicy to provide the same policy as the existing ModelCheckpointingCallback
  • MetricImprovementCheckpointPolicy to save a checkpoint when the target metric improves

Finally, ModelCheckpointingCallback is replaced with a PolicyBasedModelCheckpointingCallback subclass that uses IterationFrequencyCheckpointPolicy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant