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")# pip install -U transformers accelerate # 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
Download model.safetensors from answerdotai/ModernBERT-base: direct link, hf CLI and curl.
- Browser
- Download file 599 MB
-
https://huggingface.co/answerdotai/ModernBERT-base/resolve/main/model.safetensors
- Command line
-
hf download hf://answerdotai/ModernBERT-base/model.safetensors
-
curl -L -o model.safetensors https://huggingface.co/answerdotai/ModernBERT-base/resolve/main/model.safetensors
599 MB
- Xet hash:
- 52074fe98eef697fbd728eb3628e1bbf5b4d79223a96a23f9179af1e457baeb9
- Size of remote file:
- 599 MB
- SHA256:
- 340ac08b74eef0d7bdec2d7981a6a3d4249bf0e6aab60634b72ad02c2b8023a9
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.