Traceback (most recent call last): File…
- User
Traceback (most recent call last): File "/gpfs/work/pha/cadd/DeepScreen/data/benchmark/generate_esm2_t6_8M_UR50D_h5.py", line 22, in model, alphabet = esm.pretrained.load_model_and_alphabet( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/gpfs/work/pha/daiyunhuang/.conda/envs/DeepScreen_py311_cu118_torch210/lib/python3.11/site-packages/esm/pretrained.py", line 26, in load_model_and_alphabet return load_model_and_alphabet_local(model_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/gpfs/work/pha/daiyunhuang/.conda/envs/DeepScreen_py311_cu118_torch210/lib/python3.11/site-packages/esm/pretrained.py", line 74, in load_model_and_alphabet_local regression_data = torch.load(regression_location, map_location="cpu") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/gpfs/work/pha/daiyunhuang/.conda/envs/DeepScreen_py311_cu118_torch210/lib/python3.11/site-packages/torch/serialization.py", line 986, in load with _open_file_like(f, 'rb') as opened_file: ^^^^^^^^^^^^^^^^^^^^^^^^ File "/gpfs/work/pha/daiyunhuang/.conda/envs/DeepScreen_py311_cu118_torch210/lib/python3.11/site-packages/torch/serialization.py", line 435, in _open_file_like return _open_file(name_or_buffer, mode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/gpfs/work/pha/daiyunhuang/.conda/envs/DeepScreen_py311_cu118_torch210/lib/python3.11/site-packages/torch/serialization.py", line 416, in init super().init(open(name, mode)) ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/gpfs/work/pha/xinliu/WavyWaffle/resources/models/esm/esm2_t6_8M_UR50D-contact-regression.pt'
model, alphabet = esm.pretrained.load_model_and_alphabet( '/gpfs/work/pha/xinliu/WavyWaffle/resources/models/esm/esm2_t48_15B_UR50D.pt' )
Assistant
The error message "FileNotFoundError: [Errno 2] No such file or directory" indicates that the Python script is unable to find the file specified in the
load_model_and_alphabetfunction. In this case, it's looking for the contact regression data file:/gpfs/work/pha/xinliu/WavyWaffle/resources/models/esm/esm2_t6_8M_UR50D-contact-regression.ptwhich is associated with theesm2_t6_8M_UR50Dmodel.