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

Error resuming training of a NER model #2886

Closed
fmafelipe opened this issue Aug 4, 2022 · 5 comments
Closed

Error resuming training of a NER model #2886

fmafelipe opened this issue Aug 4, 2022 · 5 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@fmafelipe
Copy link

I want to resume training a NER model as shown in the tutorials, loading the model checkpoint but running it with :

trainer.resume(trained_model, base_path=path + '-resume', max_epochs=25, )

It simply shows me the metrics of the loaded model and does not perform any training.

@fmafelipe fmafelipe added the bug Something isn't working label Aug 4, 2022
@helpmefindaname
Copy link
Member

hi @fmafelipe ,
setting max_epochs=25 means that the model will be trained for a total of 25 epochs, not for additional 25 epochs.
if you have already trained the model for 25 epochs, then the model will be trained for 0 epochs (e.g. not at all).

@fmafelipe
Copy link
Author

Hi @helpmefindaname
So following this example, if I want to train the model for an additional 25 epochs, do I need to set max_epochs=50 ?
Thanks for the help

@helpmefindaname
Copy link
Member

assuming that you trained for 25 epochs, yes.

If you are using the latest master branch, (where #2895 is merged) you can also use additional_epochs=25 instead.

@fmafelipe
Copy link
Author

Thank you so much 👍👌

@stale
Copy link

stale bot commented Dec 24, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix This will not be worked on label Dec 24, 2022
@stale stale bot closed this as completed Jan 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants