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

feat(training): Add initial TimeLimit callback #115

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

HCookie
Copy link
Member

@HCookie HCookie commented Feb 4, 2025

Add TimeLimit Callback

  • Stops training if time limit is reached
  • Log to file the last checkpoint

Closes #114

from anemoi.training.diagnostics.callbacks.stopping import TimeLimit

TimeLimit(limit = '24h', record_file = 'PATH/TO/LOG.txt')
# Will stop training after 24 hours is reached

- Stops training if time limit is reached
- Log to file the last checkpoint
@HCookie HCookie self-assigned this Feb 4, 2025
@HCookie HCookie linked an issue Feb 4, 2025 that may be closed by this pull request
@FussyDuck
Copy link

FussyDuck commented Feb 5, 2025

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Under Review
Development

Successfully merging this pull request may close these issues.

Add timelimit callback
3 participants