ModernBERT-TR is a 150M-parameter Turkish encoder pretrained from scratch on
144.4B tokens
using the
ModernBERT
architecture. It uses a custom 50K WordPiece tokenizer optimized for Turkish morphology.
+13.1% relative over next-best. +70.3% relative over BERTurk. Outperforms models up to 4x larger.
TabiBench Full Fine-Tuning (28 tasks)
Model
Params
Avg
ModernBERT-TR (ours)
150M
77.28
TabiBERT
~150M
77.58
BERTurk
110M
75.96
Leads in 5/8 categories (text classification, STS, NLI, academic understanding, information retrieval). TabiBERT leads in code retrieval and QA (trained on code/math data).
Usage
from transformers import AutoModelForMaskedLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("ytu-ce-cosmos/modernbert-tr-base-1k")
model = AutoModelForMaskedLM.from_pretrained("ytu-ce-cosmos/modernbert-tr-base-1k")
text = "Türkiye'nin başkenti [MASK]'dır."
inputs = tokenizer(text, return_tensors="pt")
outputs = model(**inputs)
@article{alkurdi2025modernberttr,
title={ModernBERT-TR: A Modern Encoder Foundation Model for Turkish},
author={Alkurdi, Besher and Kesgin, Himmet Toprak and Yuce, Muzaffer Kaan and Amasyali, Mehmet Fatih},
year={2025}
}
modernbert-tr-base-1k huggingface.co is an AI model on huggingface.co that provides modernbert-tr-base-1k's model effect (), which can be used instantly with this ytu-ce-cosmos modernbert-tr-base-1k model. huggingface.co supports a free trial of the modernbert-tr-base-1k model, and also provides paid use of the modernbert-tr-base-1k. Support call modernbert-tr-base-1k model through api, including Node.js, Python, http.
modernbert-tr-base-1k huggingface.co is an online trial and call api platform, which integrates modernbert-tr-base-1k's modeling effects, including api services, and provides a free online trial of modernbert-tr-base-1k, you can try modernbert-tr-base-1k online for free by clicking the link below.
ytu-ce-cosmos modernbert-tr-base-1k online free url in huggingface.co:
modernbert-tr-base-1k is an open source model from GitHub that offers a free installation service, and any user can find modernbert-tr-base-1k on GitHub to install. At the same time, huggingface.co provides the effect of modernbert-tr-base-1k install, users can directly use modernbert-tr-base-1k installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
modernbert-tr-base-1k install url in huggingface.co: