Downloads · 30 days
24
6% of all-time downloads
yhavinga/modernbert-dutch-base-wide
modernbert-dutch-base-wide is a fill-mask model from yhavinga. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as apache-2.0.
A ModernBERT model pretrained on Dutch mc4nlcleaned dataset. This model has 22 layers (like ModernBERT-base) but with wider hidden dimensions (1024 instead of 768), placing it between base and large in terms of parame…
Downloads · 30 days
24
6% of all-time downloads
All-time downloads
396
Public
Parameters
263M
1.1 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors1.1 GB · 100%
From the Hugging Face model README
A ModernBERT model pretrained on Dutch mc4_nl_cleaned dataset. This model has 22 layers (like ModernBERT-base) but with wider hidden dimensions (1024 instead of 768), placing it between base and large in terms of parameters (230M).
yhavinga/dutch-llama-tokenizer (SentencePiece, Dutch-optimized)yhavinga/mc4_nl_cleaned (full config)from transformers import AutoTokenizer, ModernBertForMaskedLM
model = ModernBertForMaskedLM.from_pretrained("yhavinga/modernbert-dutch-base-wide")
tokenizer = AutoTokenizer.from_pretrained("yhavinga/modernbert-dutch-base-wide")
# Masked language modeling
inputs = tokenizer("Amsterdam is de<mask> van Nederland.", return_tensors="pt")
outputs = model(**inputs)
predictions = tokenizer.decode(outputs.logits[0, 4].topk(5).indices[0])
# Expected: "hoofdstad" (capital)
If you use this model, please cite:
@model{modernbert_dutch_base_wide,
title={ModernBERT Dutch Base Wide},
author={havinga, y havinga},
year={2025},
publisher={Hugging Face},
url={https://huggingface.co/yhavinga/modernbert-dutch-base-wide}
}