-
Notifications
You must be signed in to change notification settings - Fork 129
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
EOFError: Ran out of input #121
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: