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

early stopping callback requires load_best_model_at_end to be True #28

Closed
winglian opened this issue May 11, 2023 · 3 comments
Closed

Comments

@winglian
Copy link
Collaborator

there are a lot of factors that affect how load_best_model_at_end gets set from eval steps and save_steps. we need to figure out what the best way to handle this is.

@winglian
Copy link
Collaborator Author

winglian commented Jun 8, 2023

I think a good solution is allow explicit disabling of load_best_model_at_end via configuration to override all those, and if it's not specifically disabled, then add some warning in validation https://github.com/OpenAccess-AI-Collective/axolotl/blob/main/src/axolotl/utils/validation.py
if cfg.load_best_model_at_end is not False and cfg. early_stopping_patience:

@flotos
Copy link
Contributor

flotos commented Jun 25, 2023

I also got this error, my config worked well with eval_steps: 5, but when changed to eval_steps:30 I receive this error.

@winglian
Copy link
Collaborator Author

this can be set explicitly now.

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

No branches or pull requests

2 participants