Instructions to use Yale-CompBio/ablang2-hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Yale-CompBio/ablang2-hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="Yale-CompBio/ablang2-hf")# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("Yale-CompBio/ablang2-hf", dtype="auto") - Notebooks
- Google Colab
- Kaggle
architecture not recognized
#1
by aeolianine - opened
Does anyone else have problems loading this model with transformers?
I get this error:ValueError: The checkpoint you are trying to load has model type ablang2 but Transformers does not recognize this architecture. This could be because of an issue with the checkpoint, or because your version of Transformers is out of date.
Latest or .git version of transformers does not work, also tried loading the model with AutoModelForMaskedLM.