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

PyTorch installation may be too old #10

Open
mahuahuahua opened this issue Jan 12, 2024 · 1 comment
Open

PyTorch installation may be too old #10

mahuahuahua opened this issue Jan 12, 2024 · 1 comment

Comments

@mahuahuahua
Copy link

Hello, I followed the instructions you provided for setting up the AdvProp/graph environment and successfully executed Step 1 'bash ./scripts/train_data.sh' and Step 2 'bash ./scripts/predict.sh'. Below are the details of each step. In Step 1, the file 'qm8.pt' was generated, indicating that this step was executed correctly. However, I encountered an issue in Step 2: it displayed a message 'PyTorch installation may be too old', despite the fact that the installation version of PyTorch (1.4.0) is explicitly specified in the YAML file. Could you please provide guidance on how to address this problem? Your prompt assistance would be greatly appreciated

@mahuahuahua
Copy link
Author

mahuahuahua commented Jan 12, 2024

Loading trained medel and testing...
Traceback (most recent call last):
File "../src/predict.py", line 162, in
model.load_state_dict(torch.load(model_dir))
File "/public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/serialization.py", line 527, in load
with _open_zipfile_reader(f) as opened_zipfile:
File "/public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/serialization.py", line 224, in init
super(_open_zipfile_reader, self).init(torch.C.PyTorchFileReader(name_or_buffer))
RuntimeError: version
<= kMaxSupportedFileFormatVersion INTERNAL ASSERT FAILED at /pytorch/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 /pytorch/caffe2/serialize/inline_container.cc:132)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x33 (0x7f35156d3193 in /public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/lib/libc10.so)
frame #1: caffe2::serialize::PyTorchStreamReader::init() + 0x1f5b (0x7f3517823f8b in /public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/lib/libtorch.so)
frame #2: caffe2::serialize::PyTorchStreamReader::PyTorchStreamReader(std::string const&) + 0x64 (0x7f35178251a4 in /public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/lib/libtorch.so)
frame #3: + 0x68ea06 (0x7f3524ce8a06 in /public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/lib/libtorch_python.so)
frame #4: + 0x2701f4 (0x7f35248ca1f4 in /public/software/Miniconda37/envs/graph/lib/python3.7/site-packages/torch/lib/libtorch_python.so)

frame #29: __libc_start_main + 0xf5 (0x7f365cc55555 in /lib64/libc.so.6)

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

1 participant