Replies: 1 comment
-
I've posted my solution to issues on my repository. You can check it out here: asarigun/esm#1 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
Hi Ahmet Sarıgün,
Because I use RTX 4090 to run CUDA, the PyTorch version must be 2.0.0 or higher. Therefore, I first installed OpenFold's 2.0.0 version according to OpenFold's requirements, and then used pip to install ESM related files
I followed the relevant recommendations of OpenFold for testing, and in fact, I did pass all the tests:
scripts/run_unit_tests.sh
Here is my virtual environment software version:
name: openfold2
dependencies:
variables:
CUTLASS_PATH: /public/home/design1/software/openfold-2.0.0/cutlass
KMP_AFFINITY: none
prefix: /public/home/design1/miniconda3/envs/openfold2
Finally, when I ran the following command:
model = esm.pretrained.esmfold_v1()
I encountered the following error:
[2025-02-17 22:18:38,434] [INFO] [real_accelerator.py:222:get_accelerator] Setting ds_accelerator to cuda (auto detect)
Traceback (most recent call last):
File "/public/home/design1/data/cas12/esm_fold/download.py", line 7, in
model = esm.pretrained.esmfold_v1()
File "/public/home/design1/miniconda3/envs/openfold2/lib/python3.9/site-packages/esm/pretrained.py", line 420, in esmfold_v1
return esm.esmfold.v1.pretrained.esmfold_v1()
File "/public/home/design1/miniconda3/envs/openfold2/lib/python3.9/site-packages/esm/esmfold/v1/pretrained.py", line 54, in esmfold_v1
return _load_model("esmfold_3B_v1")
File "/public/home/design1/miniconda3/envs/openfold2/lib/python3.9/site-packages/esm/esmfold/v1/pretrained.py", line 29, in _load_model
raise RuntimeError(f"Keys '{', '.join(missing_essential_keys)}' are missing.")
RuntimeError: Keys 'trunk.structure_module.ipa.linear_kv_points.linear.weight, trunk.structure_module.ipa.linear_q_points.linear.bias, trunk.structure_module.ipa.linear_kv_points.linear.bias, trunk.structure_module.ipa.linear_q_points.linear.weight' are missing.
Thank you again for your help!
Beta Was this translation helpful? Give feedback.
All reactions