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

Saving checkpoint before and after swa #32

Closed
wants to merge 26 commits into from

Conversation

davkovacs
Copy link
Collaborator

No description provided.

@davkovacs
Copy link
Collaborator Author

This pull request implements the following:

  • save the model with lowest validation loss both before and after swa
  • evaluate both of the best models at the end of the training
  • save both models as .model at the end of the training
  • restart latest from swa checkpoint if present

@davkovacs
Copy link
Collaborator Author

There are two more bugs to be fixed before merging:

  • when the second checkpoint (swa checkpoint) is loaded it throws error because of model and data not being on the same device ???
  • The swa learning rate flag seems to be ignored.

@davkovacs davkovacs closed this Oct 24, 2022
@davkovacs davkovacs deleted the swa_checkpoint branch October 24, 2022 13:00
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.

2 participants