You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when loading pretrained model, this error occurs sometimes, not every time, but it happens.
"""
Traceback (most recent call last):
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/gxr/yangzheng/protein_sim/sim_handler/tape_sim.py", line 26, in get_tape
model = ProteinBertModel.from_pretrained('bert-base')
File "/home/zheng.yang/.local/lib/python3.7/site-packages/tape/models/modeling_utils.py", line 523, in from_pretrained
state_dict = torch.load(resolved_archive_file, map_location='cpu')
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/site-packages/torch/serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/site-packages/torch/serialization.py", line 762, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input
"""
is there a solution?
The text was updated successfully, but these errors were encountered:
when loading pretrained model, this error occurs sometimes, not every time, but it happens.
"""
Traceback (most recent call last):
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/multiprocessing/pool.py", line 121, in worker
result = (True, func(*args, **kwds))
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/multiprocessing/pool.py", line 44, in mapstar
return list(map(*args))
File "/gxr/yangzheng/protein_sim/sim_handler/tape_sim.py", line 26, in get_tape
model = ProteinBertModel.from_pretrained('bert-base')
File "/home/zheng.yang/.local/lib/python3.7/site-packages/tape/models/modeling_utils.py", line 523, in from_pretrained
state_dict = torch.load(resolved_archive_file, map_location='cpu')
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/site-packages/torch/serialization.py", line 593, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "/gxr/siqi/anaconda3/envs/protein_similarity/lib/python3.7/site-packages/torch/serialization.py", line 762, in _legacy_load
magic_number = pickle_module.load(f, **pickle_load_args)
EOFError: Ran out of input
"""
is there a solution?
The text was updated successfully, but these errors were encountered: