Closed nibtehaz closed 1 year ago
This is strange and indicates that something went wrong in installation. Could you have a conflicting or wrong version of OpenFold installed? Since the structure modules internal import directly from openfold, see https://github.com/facebookresearch/esm/blob/main/esm/esmfold/v1/trunk.py#L11
Hi, actually I've found out the issue. I did have the right version of openfold, but for some weird network reasons the model download was somewhat faulty. I downloaded the model from a different network and everything works perfectly.
Apologies for the delay, and thank you so much for open-sourcing such inspiring works :)
Thank you and thanks for reporting back!
@nibtehaz Hi,Could you please provide specific instructions on how to download this model?
@nibtehaz Hi, I couldn't load the model. Following your words, I've tried to download openfold again.
First, I tried command pip install 'openfold @ git+https://github.com/aqlaboratory/openfold.git'
But still has the runtime error.
Then, I uninstall it, and tried command pip install 'openfold @ git+https://github.com/aqlaboratory/openfold.git@4b41059694619831a7db195b7e0988'
But still the same error.
Could you please provide the specific instructions on how to download the model from a different network?
Hi @awer-A and @martino27 , apologies for the delay.
For my case the downloaded model file had some issues. It got resolved when I deleted the model file from the torch hub directory and downloaded it again.
I would suggest you to just load the state_dict file and manually check whether the layers raising the errors are there or not.
Regarding openfold version, I followed the version mentioned in the readme file of this repo
pip install "fair-esm[esmfold]"
# OpenFold and its remaining dependency
pip install 'dllogger @ git+https://github.com/NVIDIA/dllogger.git'
pip install 'openfold @ git+https://github.com/aqlaboratory/openfold.git@4b41059694619831a7db195b7e0988fc4ff3a307'
I hope this helps.
@nibtehaz Now I have solved this problem. Thank you very much for your response
@nibtehaz Hi, I couldn't load the model. Following your words, I've tried to download openfold again.
First, I tried command
pip install 'openfold @ git+https://github.com/aqlaboratory/openfold.git'
But still has the runtime error.Then, I uninstall it, and tried command
pip install 'openfold @ git+https://github.com/aqlaboratory/openfold.git@4b41059694619831a7db195b7e0988'
But still the same error.Could you please provide the specific instructions on how to download the model from a different network?
I used version 1.0.1 of OpenFold and it worked.
@nibtehaz Sorry for the delay. I've solved the problem. Thank you for your help.
I also have this issue, but pip install 'openfold @ git+https://github.com/aqlaboratory/openfold.git always fails. I downloaded it locally and then uploaded it.
× git clone --quiet https://github.com/aqlaboratory/openfold.git /tmp/pip-install-tg5fh56v/openfold_8895216bd78c449ba1df7efd9e46aecc did not run successfully. │ exit code: 128 ╰─> See above for output.
Same issue and solved, thank you all, you saved my day.
I also had the same issue and found that I had the wrong version of OpenFold installed. Because I installed OpenFold manually and the version was 2.0.0. But is seemed that the version should be 1.0.0. Thank you all!!
Hi, thank you for making the ESMFold codes and weights publicly available.
Unfortunately, I can't load the model as it says some layer weights are missing
Bug description
When I load the pretrained model, some layer weights in trunk.structure_module.ipa are missing
Reproduction steps
Expected behavior
The model should have been loaded without any errors
Logs Please paste the command line output: