Instructions to use answerdotai/ModernBERT-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use answerdotai/ModernBERT-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="answerdotai/ModernBERT-base")# Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("answerdotai/ModernBERT-base") model = AutoModelForMaskedLM.from_pretrained("answerdotai/ModernBERT-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 134 Bytes
6d46980 | 1 2 3 4 | version https://git-lfs.github.com/spec/v1
oid sha256:fba16e64c4df66d18dcbd14988354cb062f7fc7ba3a9d58b81881c81b9e99dac
size 151074463
|