allenai/dolma3_dolmino_mix-100B-1125
Preview • Updated • 22.5k • 25
How to use Ayushnangia/ModernBERT-Diffusion-Pretrained-20260119 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("fill-mask", model="Ayushnangia/ModernBERT-Diffusion-Pretrained-20260119") # Load model directly
from transformers import AutoTokenizer, AutoModelForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("Ayushnangia/ModernBERT-Diffusion-Pretrained-20260119")
model = AutoModelForMaskedLM.from_pretrained("Ayushnangia/ModernBERT-Diffusion-Pretrained-20260119", device_map="auto")A ModernBERT-large model pretrained as a diffusion language model on high-quality web text.
This model extends ModernBERT with diffusion-style training:
| Parameter | Value |
|---|---|
| Base model | answerdotai/ModernBERT-large |
| Training data | Dolma3 Common Crawl (2M high-quality samples) |
| Training steps | 5000 |
| Batch size | 16 (effective) |
| Max sequence length | 8,192 tokens |
| Masking ratio | 15-80% (variable) |
| Hardware | H100 80GB |
from transformers import AutoTokenizer, AutoModelForMaskedLM, pipeline
model_id = "Ayushnangia/ModernBERT-Diffusion-Pretrained-20260119"
fill_mask = pipeline("fill-mask", model=model_id)
# Single mask prediction
result = fill_mask("The capital of France is [MASK].")
print(result[0]['token_str']) # Paris
For text generation via iterative unmasking, fine-tune on instruction data first.
This is a pretrained checkpoint intended as a foundation for:
@misc{modernbert-diffusion,
author = {Ayush Nangia},
title = {ModernBERT Diffusion Language Model},
year = {2025},
publisher = {HuggingFace},
url = {https://huggingface.co/Ayushnangia/ModernBERT-Diffusion-Pretrained-20260119}
}
Base model
answerdotai/ModernBERT-large