Skip to content

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

Description

@wbw1111

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions