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

Resuming training #80

Closed
dimagalat opened this issue Jul 8, 2022 · 2 comments
Closed

Resuming training #80

dimagalat opened this issue Jul 8, 2022 · 2 comments

Comments

@dimagalat
Copy link

Hello,

I'm trying to implement the following scenarios:

  • load a learner to continue training on the same dataset
  • load a learner to train on a different dataset

Unfortunately, I get the following error when trying to load a learner:
runtimeerror: pytorchstreamreader failed reading zip archive: failed finding central directory
I've read that load_learner, "requires all your custom code be in the exact same place as when exporting". Could someone clarify what that means in practice? Re-loading all the same objects in the environment?

Can anyone point out an example where a learner is used on a different dataset?

Thanks in advance, I really appreciate your help

@dimagalat
Copy link
Author

learn.hf_model.save_pretrained("model")
hf_tokenizer.save_pretrained("model")
solves it

@ohmeow
Copy link
Owner

ohmeow commented Oct 11, 2022 via email

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