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
Bug on Example 1 & 2
#8
by cyrilgabriele - opened
Hi guys
Just a short observation: When executing the examples 1 and/or 2, the given prompt has a bug. This as the [MASK]-token is wrong or in an old "style".
Example 1 prompt:
Paris is the
=> results in an error, as it should be:
Paris is the [MASK] of France.
Furthermore, these examples does not make sense anyway, right? I would suggest to use the examples given below:
D L I P T S S K L V V [MASK] D T S L Q V K K A F F A L V T