All models

EuroBERT-210m

Llama 3-style multilingual masked-language encoders for 15 languages, code and math, in 210M, 610M and 2.1B sizes.

Language · 674 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (15 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
EuroBERT
Parameters
310.3M
Operations
674
Framework
PyTorch
Recurrent
No
Published
2025
Cited by
82 (as of 22 November 2026)
Authors
Nicolas Boizard, Hippolyte Gisserot-Boukhlef, Duarte M. Alves and others
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m924
Graph hash
11cfe4b8f17e75cd1b5d536aec57f4abed71c2235ddcbef25c9cee2f13465fed
Skeleton hash
54d06a9bb327453c6bdc5d599c129eadb54e80e6f3b99f78703e829ba980223a
Architecture hash
d04f97bc663a370e86e9f0ef58407814a268a2d02964bdd4663a99df02f189a2
Diagram SHA-256
d2876a18f868d916161b4c788d070438c32a931006f7130cac7142a5b030d2d2
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

The 210 million parameter size, the smallest of the three. The card says the smaller EuroBERT-210m generally outperforms all similarly sized systems.

About this model's family

EuroBERT is a family of multilingual encoder models for European and widely spoken global languages, built to produce the general-purpose vector representations that retrieval, regression and classification systems rely on. The traced members are the three released sizes, with 210M, 610M and 2.1B parameters. The Hub card loads them as masked language models with remote code through AutoModelForMaskedLM. Its usage example masks the capital of France and gets Paris back.

The paper's premise is that encoders have been overshadowed by generative decoder-only models, yet many of the innovations driving that progress are not inherently tied to decoders. In response, the models closely follow the Llama 3 architecture. They are a standard dense transformer with all biases removed, plus grouped query attention, swish gated linear units, root mean square layer normalization and rotary position embeddings. To train them the authors construct a multilingual 5T-token corpus covering 15 languages. The pipeline has two stages, pre-training and annealing, under the masked language modeling objective. Pre-training uses a 50% masking ratio, following findings that masking 15% and 30% of tokens is sub-optimal. In the annealing phase the RoPE theta rises to 250,000 and training documents are randomly cropped to lengths between 12 and 8,192 tokens.

The result is a set of encoders that natively support sequences of up to 8,192 tokens. On the paper's benchmarks, EuroBERT-2.1B ranks first on 10 out of 18 tasks, competing closely with the larger XLM-RoBERTa-3.5B. The ablations hold some surprises: including code and mathematics data improves multilingual retrieval but degrades classification accuracy. Contrary to the authors' expectations, selecting only documents with high educational value degraded performance. The model architectures, weights and training codebase are released under the Apache 2.0 license. The GitHub repository is the Optimus training library, a framework built to train language models across CPU, AMD and NVIDIA GPUs. Training ran on Adastra, using 92 MI250X GPUs for EuroBERT-210M, 384 MI250X GPUs for EuroBERT-610M and 96 MI300A GPUs for EuroBERT-2.1B, for a total of 200k GPU hours.

Key idea. A refreshed recipe for general-purpose multilingual encoders that borrows the architectural advances of recent decoder models. The released family has three models with 210M, 610M and 2.1B parameters, trained with masked language modeling and natively supporting sequences of up to 8,192 tokens.

  • eurobert
  • EuroBERT-210m
  • EuroBERT-610m
  • EuroBERT-2.1B
  • multilingual encoder
  • european languages
  • masked language model
  • fill-mask
  • bert
  • retrieval
  • long context
  • optimus

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{boizard2026eurobertscalingmultilingualencoders,
      title={EuroBERT: Scaling Multilingual Encoders for European Languages}, 
      author={Nicolas Boizard and Hippolyte Gisserot-Boukhlef and Duarte M. Alves and André Martins and Ayoub Hammal and Caio Corro and Céline Hudelot and Emmanuel Malherbe and Etienne Malaboeuf and Fanny Jourdan and Gabriel Hautreux and João Alves and Kevin El Haddad and Manuel Faysse and Maxime Peyrard and Nuno M. Guerreiro and Patrick Fernandes and Ricardo Rei and Pierre Colombo},
      year={2026},
      eprint={2503.05500},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2503.05500}, 
}