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")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("Rostlab/prot_bert", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Download vocab.txt from Rostlab/prot_bert: direct link, hf CLI and curl.
- Browser
- Download file 81 Bytes
-
https://huggingface.co/Rostlab/prot_bert/resolve/refs%2Fpr%2F7/vocab.txt
- Command line
-
hf download hf://Rostlab/prot_bert@refs/pr/7/vocab.txt
-
curl -L -o vocab.txt https://huggingface.co/Rostlab/prot_bert/resolve/refs%2Fpr%2F7/vocab.txt
81 Bytes
| [PAD] | |
| [UNK] | |
| [CLS] | |
| [SEP] | |
| [MASK] | |
| L | |
| A | |
| G | |
| V | |
| E | |
| S | |
| I | |
| K | |
| R | |
| D | |
| T | |
| P | |
| N | |
| Q | |
| F | |
| Y | |
| M | |
| H | |
| C | |
| W | |
| X | |
| U | |
| B | |
| Z | |
| O | |