bio-transformers icon indicating copy to clipboard operation
bio-transformers copied to clipboard

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.

Open wbw1111 opened this issue 1 year ago • 1 comments

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.

wbw1111 avatar Sep 03 '24 20:09 wbw1111

I have the same problem. Have you solved it?

NHR326 avatar Sep 26 '24 07:09 NHR326