🤖 fill-mask

ModernBERT-base

answerdotai/ModernBERT-base

Get AI Model →
⬇
4.9M
Downloads
❤️
1.1K
Likes
🏷️
13
Tags
📦
transformers
Library
Model Details
Full Model IDanswerdotai/ModernBERT-base
Pipeline / Taskfill-mask
Librarytransformers
Downloads (all-time)4.9M
Likes1.1K
Last Modified1/15/2025
Author / Organswerdotai
PrivateNo — public
⚡ Quick Usage (Python)

Using the 🤗 Transformers library. Install with pip install transformers

from transformers import pipeline

# Load the model
pipe = pipeline("fill-mask", model="answerdotai/ModernBERT-base")

# Run inference
result = pipe("Your input here")
print(result)
🏷️ Tags
transformerspytorchonnxsafetensorsmodernbertfill-maskmasked-lmlong-contextenarxiv:2412.13663license:apache-2.0deploy:azureregion:us
More fill-mask Models
See all →
bert-base-uncased

google-bert/bert-base-uncased

⬇ 28.2M❤️ 3.1K
Get AI Model →
all-mpnet-base-v2

sentence-transformers/all-mpnet-base-v2

⬇ 17.9M❤️ 1.4K
Get AI Model →
xlm-roberta-base

FacebookAI/xlm-roberta-base

⬇ 8.1M❤️ 961
Get AI Model →
🚀 Use This Model

Access model files, inference API, and full documentation on Hugging Face.

Open on Hugging Face →Browse Model Files ↗← Browse All Models
🤖 Task: fill-mask

This model is designed for the fill-mask task. Explore more models for this use case.

All fill-mask Models →
📊 Popularity
⬇ Downloads4.9M
❤️ Community Likes1.1K
🛠️ Requirements
  • →Install: pip install transformers
  • →Python 3.8+ recommended for Transformers.
  • →GPU (CUDA) speeds up inference significantly.
  • →Use model.half() for fp16 on limited VRAM.
👋 Need help with code?