---
title: "mmBERT: ModernBERT goes Multilingual"
description: "mmBERT is a massively multilingual encoder built on the ModernBERT architecture with the Gemma 2 tokenizer, trained on over 3T tokens covering 1,833 languages."
url: "https://swe.quest/articles/mmbert-modernbert-goes-multilingual-ef8a6ca2e930c6ea"
canonical: "https://huggingface.co/blog/mmbert"
source: "Hugging Face"
published: "2025-09-09"
difficulty: "hard"
kind: "Research"
reading_minutes: 15
tags: ["model-training","llms","search"]
---

# mmBERT: ModernBERT goes Multilingual

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2025-09-09, 15 min read, Research. Original: [https://huggingface.co/blog/mmbert](https://huggingface.co/blog/mmbert)

## Summary

mmBERT is a massively multilingual encoder built on the ModernBERT architecture with the Gemma 2 tokenizer, trained on over 3T tokens covering 1,833 languages. It is the first model to clearly beat XLM-R on XTREME, GLUE and MTEB v2 retrieval, and it runs 2-4x faster with an 8,192-token context. The training recipe has three phases that add languages progressively (60 → 110 → 1,833), anneal the sampling temperature (0.7 → 0.5 → 0.3) and lower the mask ratio (30% → 15% → 5%), then combines decay-phase variants with TIES merging. Low-resource languages added only in the final 100B-token decay phase are still learned effectively, and on Faroese QA the model outperforms Gemini 2.5 Pro and o3.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)
- [Search](https://swe.quest/tags/search.md) (Backend & APIs)

## Prerequisites

- transformer encoders
- masked language modeling
- embedding models

## Keywords

mmBERT, ModernBERT, XLM-R, FineWeb2, TIES merging, Sentence Transformers, Flash Attention 2, MTEB

## Related posts

- [Fine-Tune MMS Adapter Models for low-resource ASR](https://swe.quest/articles/fine-tune-mms-adapter-models-for-low-resource-asr-870510273b1ec1b7.md): Hugging Face · 2023-06-19 · Medium · 27 min read · Speech & audio, Model training, Python
  MMS adapter training fine-tunes only about 2.5M language-specific adapter weights on Meta's mms-1b-all checkpoint, reaching low word error rates after 10-20 minutes of training on small datasets.
- [Granite Embedding Multilingual R2: Open Apache 2.0 Multilingual Embeddings with 32K Context — Best Sub-100M Retrieval Quality](https://swe.quest/articles/granite-embedding-multilingual-r2-open-apache-2-0-multilingual-embeddings-with-3523dab9fcdbdf6c.md): Hugging Face · 2026-05-14 · Medium · 16 min read · RAG & retrieval, Machine learning, Model training, Evaluation, Search
  IBM's Granite Embedding Multilingual R2 is a pair of Apache 2.0 ModernBERT-based embedding models covering 200+ languages and 9 programming languages, with 32K-token context (64x R1).
- [Finally, a Replacement for BERT: Introducing ModernBERT](https://swe.quest/articles/finally-a-replacement-for-bert-introducing-modernbert-95bd85fcbbb49537.md): Hugging Face · 2024-12-19 · Medium · 23 min read · Machine learning, Model training, Inference & serving, RAG & retrieval, LLMs
  ModernBERT is a family of encoder-only models (149M base, 395M large) that ports recent LLM architecture and training advances back to the BERT style, raising context length to 8,192 tokens and including large amounts of code in pretraining.
- [MTEB: Massive Text Embedding Benchmark](https://swe.quest/articles/mteb-massive-text-embedding-benchmark-25d46b3f4051ff19.md): Hugging Face · 2022-10-19 · Medium · 3 min read · Evaluation, Machine learning, Search, Python
  MTEB is a benchmark of 56 datasets across 8 embedding tasks (classification, clustering, retrieval, STS, bitext mining and more) covering up to 112 languages, with a public leaderboard of over 2000 results.
- [Fine-Tune W2V2-Bert for low-resource ASR with 🤗 Transformers](https://swe.quest/articles/fine-tune-w2v2-bert-for-low-resource-asr-with-transformers-c92730274dccb3a7.md): Hugging Face · 2024-01-19 · Medium · 26 min read · Speech & audio, Model training, Python
  Wav2Vec2-BERT (facebook/w2v-bert-2.0), a 580M-parameter audio model pre-trained on 4.5M hours across 143+ languages, can be fine-tuned with CTC for ASR in low-resource languages using Hugging Face Transformers, demonstrated on ~14h of Mongolian Common Voice 16.0 data.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
