Instructions to use mosaicml/mosaic-bert-base-seqlen-2048 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mosaicml/mosaic-bert-base-seqlen-2048 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="mosaicml/mosaic-bert-base-seqlen-2048", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("mosaicml/mosaic-bert-base-seqlen-2048", trust_remote_code=True) model = AutoModelForMaskedLM.from_pretrained("mosaicml/mosaic-bert-base-seqlen-2048", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#6 opened over 1 year ago
by
SFconvertbot
Add AutoModelForSequenceClassification to auto_map
👍 1
#3 opened almost 3 years ago
by
calpt
I am getting assert error even though I am using GPUs
1
#2 opened almost 3 years ago
by
nvishi7
How to generate sentence embedding using this model.
1
#1 opened almost 3 years ago
by
rajug45