ytu-ce-cosmos / modernbert-tr-base-1k

huggingface.co
Total runs: 1.7K
24-hour runs: 0
7-day runs: -583
30-day runs: -1.3K
Model's Last Updated: July 10 2026
fill-mask

Introduction of modernbert-tr-base-1k

Model Details of modernbert-tr-base-1k

ModernBERT-TR

ModernBERT-TR

A Modern Encoder Foundation Model for Turkish

Besher Alkurdi, Himmet Toprak Kesgin, Muzaffer Kaan Yuce, Mehmet Fatih Amasyali

Web Page · Paper (soon) · Training Code · Evaluation Code

Overview

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.

Architecture: 22 layers, 768 hidden, 12 heads, RoPE, GLU, alternating local-global attention, Flash Attention, sequence-packed training.

Results
Frozen Linear Probing (11 Turkish NLP tasks)
Model Params Avg
ModernBERT-TR (ours) 150M 60.2
Turkish-E5-large 560M 53.2
mmBERT 307M 54.9
TabiBERT ~150M 49.1
BERTurk 111M 35.3

+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)
Training Details
Data FineWeb-2 Turkish (41.2B tokens) + BertTurk Corpus 5x (31.0B tokens) = 72.2B/epoch, 2 epochs
Tokenizer 50K WordPiece, trained on Turkish data
Optimizer StableAdamW, peak LR 2e-4, cosine schedule
Batch size 256 sequences (262K tokens/step)
MLM masking 30% (train) / 15% (eval)
Hardware 4x NVIDIA H100, 623 GPU-hours
Precision BF16 mixed precision
Context 1,024 tokens
Citation
@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}
}
Acknowledgments

Supported by Yildiz Technical University (FDK-2024-6070) and TUBITAK (124E055). Built on the ModernBERT codebase with FineWeb-2 and BertTurk Corpus data.

Runs of ytu-ce-cosmos modernbert-tr-base-1k on huggingface.co

1.7K
Total runs
0
24-hour runs
-368
3-day runs
-583
7-day runs
-1.3K
30-day runs

More Information About modernbert-tr-base-1k huggingface.co Model

More modernbert-tr-base-1k license Visit here:

https://choosealicense.com/licenses/apache-2.0

modernbert-tr-base-1k huggingface.co

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 Url

https://huggingface.co/ytu-ce-cosmos/modernbert-tr-base-1k

ytu-ce-cosmos modernbert-tr-base-1k online free

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:

https://huggingface.co/ytu-ce-cosmos/modernbert-tr-base-1k

modernbert-tr-base-1k install

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:

https://huggingface.co/ytu-ce-cosmos/modernbert-tr-base-1k

Url of modernbert-tr-base-1k

modernbert-tr-base-1k huggingface.co Url

Provider of modernbert-tr-base-1k huggingface.co

ytu-ce-cosmos
ORGANIZATIONS

Other API from ytu-ce-cosmos

huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:December 02 2024