/ Модель

Характеристики

Контекст
8 192 токена
Параметры
150 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Базовая модель
MrBERT
Библиотека
transformers
Опубликована
23 дек 2025

MrBERT-es

Заполнение пропусковТекст → текст4 профессии

Двуязычная encoder-модель ModernBERT для заполнения пропусков и дальнейшей настройки на задачи анализа испанского и английского текста.

1 352скачиваний за 30 дней12лайковвеса обновлены9 апр 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

MrBERT-es — двуязычная языковая модель на архитектуре ModernBERT, разработанная лабораторией Language Technologies Lab Барселонского суперкомпьютерного центра. Это encoder-модель с 149,6 млн параметров, обученная предсказывать замаскированные токены; она принимает текст и подходит для заполнения пропусков, а также может служить основой для задач анализа испанского и английского текста. Контекст модели составляет до 8192 токенов.

Модель инициализирована весами MrBERT с адаптацией матрицы эмбеддингов для различий между токенизаторами, а затем продолжительно предобучена на сбалансированном англо-испанском корпусе объёмом 615 млрд токенов. В карточке приведены результаты оценки испанского языка на задачах разметки частей речи, распознавания сущностей и семантического сходства. Репозиторий содержит веса в формате safetensors; лицензия — Apache-2.0.

Модель предназначена прежде всего для испанского и английского языков. Как masked language model, она не является генеративным чат-ассистентом и сама по себе не выдаёт готовые метки для прикладных задач без соответствующей настройки. Авторы предупреждают о возможных смещениях и искажениях в результатах.

Сценарии применения

  • заполнение пропущенных слов в испанском тексте
  • заполнение пропусков в английском тексте
  • дообучение модели для распознавания именованных сущностей на испанском
  • дообучение для разметки частей речи
  • оценка семантического сходства испанских предложений

Ограничения

Модель предсказывает замаскированные токены и не предназначена сама по себе для диалоговой генерации или прямой классификации без дообучения. Авторы отмечают возможность смещений и непреднамеренных искажений.

Для каких профессий подходит4

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

MrBERT-es Model Card

MrBERT-es is a new foundational bilingual language model for Spanish and English built on the ModernBERT architecture. It uses vocabulary adaptation from MrBERT, a method that initializes all weights from MrBERT while applying a specialized treatment to the embedding matrix. This treatment carefully handles the differences between the two tokenizers.

Following initialization, the model is continually pretrained on a bilingual corpus of 615 billion tokens, evenly balanced between English and Spanish.

Technical Description

Technical details of the MrBERT-es model.

DescriptionValue
Model Parameters150M
Tokenizer TypeSPM
Vocabulary size51200
Precisionbfloat16
Context length8192

Training Hyperparemeters

HyperparameterValue
Pretraining ObjectiveMasked Language Modeling
Learning Rate4E-04
Learning Rate SchedulerWSD
Warmup3,000,000,000 tokens
Optimizerdecoupled_stableadamw
Optimizer HyperparametersAdamW (β1=0.9,β2=0.98,ε =1e-06 )
Weight Decay1E-05
Global Batch Size480
Dropout1E-01
Activation FunctionGeLU

How to use

>>> from transformers import pipeline
>>> from pprint import pprint

>>> unmasker = pipeline('fill-mask', model='BSC-LT/MrBERT-es')

>>> pprint(unmasker("Me encanta la<mask>de Barcelona.",top_k=3))
[{'score': 0.2312059849500656,
  'sequence': 'Me encanta la ciudad de Barcelona.',
  'token': 2634,
  'token_str': 'ciudad'},
 {'score': 0.0812854915857315,
  'sequence': 'Me encanta la gente de Barcelona.',
  'token': 4475,
  'token_str': 'gente'},
 {'score': 0.07678654044866562,
  'sequence': 'Me encanta la gastronomía de Barcelona.',
  'token': 18096,
  'token_str': 'gastronomía'}]
>>> pprint(unmasker("La ciencia engloba disciplinas como la<mask>y las matemáticas.",top_k=3))
[{'score': 0.8801143765449524,
  'sequence': 'La ciencia engloba disciplinas como la física y las '
              'matemáticas.',
  'token': 9204,
  'token_str': 'física'},
 {'score': 0.07342680543661118,
  'sequence': 'La ciencia engloba disciplinas como la biología y las '
              'matemáticas.',
  'token': 40678,
  'token_str': 'biología'},
 {'score': 0.02307266741991043,
  'sequence': 'La ciencia engloba disciplinas como la química y las '
              'matemáticas.',
  'token': 25047,
  'token_str': 'química'}]
>>> pprint(unmasker("Since I can't conquer the world yet, I'll just hide my weights under your<mask>and wait patiently.", top_k=3))
[{'score': 0.12437283992767334,
  'sequence': "Since I can't conquer the world yet, I'll just hide my weights "
              'under your pillow and wait patiently.',
  'token': 40389,
  'token_str': 'pillow'},
 {'score': 0.09473687410354614,
  'sequence': "Since I can't conquer the world yet, I'll just hide my weights "
              'under your arm and wait patiently.',
  'token': 6198,
  'token_str': 'arm'},
 {'score': 0.08770021051168442,
  'sequence': "Since I can't conquer the world yet, I'll just hide my weights "
              'under your feet and wait patiently.',
  'token': 6985,
  'token_str': 'feet'}]

Which is equivalent to the following torch script:

from transformers import AutoTokenizer, AutoModelForMaskedLM
import torch

model = AutoModelForMaskedLM.from_pretrained("BSC-LT/MrBERT-es")
tokenizer = AutoTokenizer.from_pretrained("BSC-LT/MrBERT-es")

# The index of "<mask>" token is -3 given that the -1 position is the EOS token "</s>" and -2 the position of the "." token.
outputs = model(**tokenizer("La capital de España es<mask>.", return_tensors="pt")).logits
predicted_token = tokenizer.decode(torch.argmax(outputs[0,-3,:]))

print(f"The prediction is \"{predicted_token}\"." ) # The prediction is "Madrid"

EVALUATION: EvalES Benchmark

Model performance in Spanish Language is assessed using the EvalES benchmark. The EvalES benchmark consists of 7 tasks: Named Entity Recognition and Classification (CoNLL-NERC), Part-of-Speech Tagging (UD-POS), Text Classification (MLDoc), Paraphrase Identification (PAWS-X), Semantic Textual Similarity (STS), Question Answering (SQAC), and Textual Entailment (XNLI). This benchmark evaluates the model's capabilities in the Spanish language.

In addition to the MrBERT family, the following base foundation models were considered:

Multilingual Foundational ModelNumber of ParametersVocab SizeDescription
xlm-roberta-base279M250KFoundational RoBERTa model pretrained with CommonCrawl data containing 100 languages.
mRoBERTa283M256KRoBERTa base model pretrained with 35 European languages and a larger vocabulary size.
mmBERT308M250KMultilingual ModernBERT pre-trained with staged language learning.
mGTE306M250KMultilingual encoder also adapted for retrieval tasks.
tasksxlm-roberta-base (278M)mRoBERTa (283M)mmBERT (308M)mGTE (306M)MrBERT (308M)MrBERT-es (150M)
pos (f1)99.0199.0399.0998.9299.0699.08
ner (f1)86.9187.7787.0186.9687.4287.77
sts (person)80.8879.6982.8884.5284.1885.23
tc - paws-x (acc)90.3591.3091.3589.7091.2591.90
tc - mldoc (acc)47.6791.2895.1096.1395.2895.55
tc - massivenew (acc)21.8986.4586.7987.1987.4687.05
qa (f1)74.4877.0379.7976.7881.9682.19
Average71.6087.5188.8688.6089.5289.83

Additional information

Author

The Language Technologies Lab from Barcelona Supercomputing Center.

Contact

For further information, please send an email to langtech@bsc.es.

Copyright

Copyright(c) 2026 by Language Technologies Lab, Barcelona Supercomputing Center.

Funding

This work has been supported and funded by the Ministerio para la Transformación Digital y de la Función Pública and the Plan de Recuperación, Transformación y Resiliencia – funded by the EU through NextGenerationEU, within the framework of the Modelos del Lenguaje project, as well as by the European Union – NextGenerationEU. Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or European Commission. Neither the European Union nor the European Commission can be held responsible for them.

Acknowledgements

This project has benefited from the contributions of numerous teams and institutions through data contributions.

In Catalonia, many institutions have been involved in the project. Our thanks to Òmnium Cultural, Parlament de Catalunya, Institut d'Estudis Aranesos, Racó Català, Vilaweb, ACN, Nació Digital, El món and Aquí Berguedà.

At national level, we are especially grateful to our ILENIA project partners: CENID, HiTZ and CiTIUS for their participation. We also extend our genuine gratitude to the Spanish Senate and Congress, Fundación Dialnet, Fundación Elcano, the "Instituto de Ingenieria del Conocimiento" and the ‘Instituto Universitario de Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)’ of the University of Las Palmas de Gran Canaria.

At the international level, we thank the Welsh government, DFKI, Occiglot project, especially Malte Ostendorff, and The Common Crawl Foundation, especially Pedro Ortiz, for their collaboration.

Their valuable efforts have been instrumental in the development of this work.

Disclaimer

Be aware that the model may contain biases or other unintended distortions. When third parties deploy systems or provide services based on this model, or use the model themselves, they bear the responsibility for mitigating any associated risks and ensuring compliance with applicable regulations, including those governing the use of Artificial Intelligence.

The Barcelona Supercomputing Center, as the owner and creator of the model, shall not be held liable for any outcomes resulting from third-party use.

Citation

@article{tamayo2026mrbert,
  title={MrBERT: Modern Multilingual Encoders via Vocabulary, Domain, and Dimensional Adaptation},
  author={Tamayo, Daniel and Lacunza, I{\~n}aki and Rivera-Hidalgo, Paula and Da Dalt, Severino and Aula-Blasco, Javier and Gonzalez-Agirre, Aitor and Villegas, Marta},
  journal={arXiv preprint arXiv:2602.21379},
  year={2026}
}

License

Apache License, Version 2.0

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · fill-mask

Можно запустить

Подбираем GPU…

Класс архитектуры
ModernBertForMaskedLM
Ревизия весов
34a7cc8

0 моделей