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

Could this model run on the newest pytorch version? #10

Closed
nutshell999 opened this issue Apr 19, 2021 · 6 comments
Closed

Could this model run on the newest pytorch version? #10

nutshell999 opened this issue Apr 19, 2021 · 6 comments

Comments

@nutshell999
Copy link

Hello, my friend! When I run the model, I found that the version of the dependency which model need is too old , and now we use pytorch 1.8.0+、python 3.7+. So I just want to know this model could run in the newest pytorch version? More important , i find a problem that :

RuntimeError: version_ <= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /tmp/pip-req-build-ufslq_a9/caffe2/serialize/inline_container.cc:132, please report a bug to PyTorch. Attempted to read a PyTorch file with version 3, but the maximum supported version for reading is 2. Your PyTorch installation may be too old. (init at /tmp/pip-req-build-ufslq_a9/caffe2/serialize/inline_container.cc:132)

and my environment is:
pytorch(1.8.1)
spacy(3.0.5)
torchtext(0.9.1)
cudatoolkit(cudatoolkit)

What should i do for this problem . Look forward your early reply!

@nutshell999
Copy link
Author

image

@aarnetalman
Copy link
Member

Hi. Thanks for your interest. I have not had time to update the code on Github but I do have a version that runs on a newer version of PyTorch. I will try to get it online sometime soon. I will comment below with a link when done.

@nutshell999
Copy link
Author

Ok. Thanks!

@nutshell999 nutshell999 changed the title Could this model run the newest pytorch version? Could this model run on the newest pytorch version? Apr 19, 2021
@yanyou426
Copy link

Hello, is the newest version uploaded?

@aarnetalman
Copy link
Member

Unfortunately, I've not had time to maintain this repository. You should be able to make the required changes looking at the error messages and following this migration guide: https://pytorch.org/blog/pytorch-0_4_0-migration-guide/

@aarnetalman
Copy link
Member

Actually there was a pull request that has the required changes. I've merged the changes but have not tested.

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

3 participants