HBMP icon indicating copy to clipboard operation
HBMP copied to clipboard

Could this model run on the newest pytorch version?

Open nutshell999 opened this issue 3 years ago • 3 comments

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 avatar Apr 19 '21 07:04 nutshell999

image

nutshell999 avatar Apr 19 '21 08:04 nutshell999

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.

aarnetalman avatar Apr 19 '21 08:04 aarnetalman

Ok. Thanks!

nutshell999 avatar Apr 19 '21 08:04 nutshell999

Hello, is the newest version uploaded?

yanyou426 avatar Nov 22 '22 11:11 yanyou426

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 avatar Nov 22 '22 12:11 aarnetalman

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

aarnetalman avatar Nov 22 '22 12:11 aarnetalman