Instructions to use Rostlab/prot_bert with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Rostlab/prot_bert with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Rostlab/prot_bert")# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("Rostlab/prot_bert", dtype="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
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