OSError: data/tokenizer is not a local folder and is not a valid model identifier

#9
by carolina-alvarez - opened

Hello,

I encountered an OSError when trying to load the Rostlab/prot_bertmodel directly from Hugging Face in my script. I'm passing the model identifier "Rostlab/prot_bert" as an argument, but the script fails to recognize it as a valid model identifier.

Error message:

OSError: data/tokenizer is not a local folder and is not a valid model identifier listed on 'https://huggingface.co/models'
If this is a private repository, make sure to pass a token having permission to this repo either by logging in with huggingface-cli login or by passing token=<your_token>

I'm working with the following:

  • Python 3.9.6
  • transformers version 4.43.3
  • tokenizer version 0.19.1

Do you know what this could be? Thanks!

Best,
Carolina

Sign up or log in to comment