Skip to content
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

ValueError: Connection error, and we cannot find the requested files in the cached path. Please try again or make sure your Internet connection is on. #41

Open
wbw1111 opened this issue Sep 3, 2024 · 1 comment

Comments

@wbw1111
Copy link

wbw1111 commented Sep 3, 2024

When I called BioTransformers using transformer_bfd = BioTransformers(backend='protbert_bfd', num_gpus=num_gpus), I encountered an error. I want to download protbert_bfd locally, but I couldn't find a way to specify the path in BioTransformers. I tried to set up the model using the transformers library as follows:

from transformers import BertTokenizer, BertForMaskedLM
tokenizer = BertTokenizer.from_pretrained(model_name, local_files_only=True)
model = BertForMaskedLM.from_pretrained(model_name, local_files_only=True, output_hidden_states=True)

However, the results seem to be different.

@NHR326
Copy link

NHR326 commented Sep 26, 2024

I have the same problem. Have you solved it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants