/ Модель

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

Контекст
16 000 токенов
Параметры
143 млн
Лицензия
Apache 2.0
Архитектура
modernbert · dense
Библиотека
transformers
Опубликована
23 июн 2025

finnish-modernbert-base

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

Энкодер ModernBERT для заполнения маски и получения представлений многоязычного текста, особенно на финском, шведском и северносаамском языках.

657скачиваний за 30 дней0лайковвеса обновлены13 ноя 2025

Бенчмарки

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

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

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

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

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

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

Finnish ModernBERT base — энкодерная модель архитектуры ModernBERT, разработанная TurkuNLP и предварительно обученная на финском, шведском, английском, коде, латыни и северносаамском языках. Модель содержит около 142,7 млн параметров, состоит из 22 слоёв и обучалась на 410,2 млрд токенов. Метаданные указывают контекстное окно 16 000 токенов; в карточке также отмечена теоретическая возможность экстраполяции до 128 тысяч токенов.

Модель предназначена для заполнения маскированных токенов и получения контекстных представлений текста. Её можно применять как основу для задач обработки естественного языка и поиска по текстам; авторы сообщают о сильных результатах в задачах поиска вне обучающего домена на финском, шведском и английском языках. Модель конкурентоспособна в задачах NLU на коротком контексте, хотя в приведённом сравнении XLM-R-large показала лучшие результаты.

Модель выпущена под лицензией Apache-2.0. Обучающие данные содержат источники с предвзятым и потенциально вредным содержанием, поэтому представления модели могут отражать эти свойства; их следует оценивать с учётом возможного влияния на уязвимые группы.

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

  • заполнение пропущенных слов в финском тексте
  • получение контекстных представлений финских и шведских текстов
  • поиск релевантных документов вне обучающего домена
  • создание основы для NLU-моделей на финском, шведском и английском

Ограничения

В сравнении авторов XLM-R-large превосходит модель на задачах NLU с коротким контекстом. Обучающие данные содержат предвзятый и вредный контент, поэтому выходные представления требуют оценки на предмет возможного смещения.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Finnish ModernBERT Model Card

Finnish ModernBERT base is an encoder model following the ModernBERT architecture, pretrained on Finnish, Swedish, English, Code, Latin, and Northern Sámi. It was trained on 410.2B tokens. This model can theoretically extrapolate to a context length of 128K. Training was conducted on the LUMI supercomputer. The project aimed to train multilingual encoder models that support long context and all official Finnish languages¹.

¹Multiple Sámi languages are spoken in Finland, but Northern Sámi is the most widespread and thus included in the training data. English is not the official language of Finland, but it is widely used. Latin was included for potential clinical use.

Full descriptions of training, data and evaluation are available in the article.

Table of Contents

  1. Model Overview
  2. Evaluation
  3. Data
  4. Training
  5. Ethical Considerations
  6. Aknowledgements
  7. Licence
  8. Citation information

Model Overview

HyperparameterValue
n_parameters143M
n_layers22
RoPE base10K / 1M
vocab_size42K
sequence_length16K / 128K

Evaluation

The Finnish ModernBERT models were competitive with other multilingual models (XLM-R-large and mmBERT-base) on short-context NLU tasks in Finnish, Swedish, and English, where XLM-R-large was the strongest model. The Finnish ModernBERTs are the strongest multilingual encoder models in out-of-domain retrieval tasks, outperforming the others with a large margin.

Data

We used text datasets from diverse sources, including web crawls, news, scientific articles, classical literature, historical texts, Wikipedia, forums, and authoritative sources. Sources underwent various levels of pre-processing, including the removal of low-quality text or boilerplate, PII removal, and deduplication. Note that more datasets were used for the training than listed in this repository metadata.

Training

Pretraining was done using Distributed Data Parallelism, AdamW with ZeroRedundancyOptimizer, and the WSD learning rate schedule. We describe the training as a three-step process where:

  1. Models' parameters are first optimized for short context representations of the tokens (stable phase)
  2. Refine the token representations for longer dependencies (context extension phase)
  3. Reinforce the representations for the inputs that we believe the model will be used for in the future (annealing phase)

Ethical Considerations and Limitations

Finnish ModernBERTs' training data include sources regarded as biased and harmful, and the models' outputs may mirror these biased properties. The training data were not filtered for toxic, harmful, or offensive content to serve various use cases. The representations produced by the models should not be used without caution and without evaluating their effects on vulnerable population groups.

Licence

Finnish ModernBERT base is released under the Apache 2.0 license.

Aknowledgements

We acknowledge CSC, IT Center for Science, Finland, for awarding this project access to the LUMI supercomputer, owned by the EuroHPC Joint Undertaking, hosted by CSC (Finland) and the LUMI consortium. We acknowledge the HPLT-project for supporting this research. This project has received funding from the European Union’s Horizon Europe research and innovation programme under grant agreement No. 101070350, and it has also received funding from the Finnish Cultural Foundation. We thank The Language Bank of Finland for additional resources for Finnish, Finland-Swedish, and Swedish.

Citation information

If you use Finnish ModernBERTs or need to reference the work, please use the citation below:

@misc{reunamo2025pretrainingfinnishmodernberts,
      title={Pretraining Finnish ModernBERTs}, 
      author={Akseli Reunamo and Laura-Maria Peltonen and Hans Moen and Sampo Pyysalo},
      year={2025},
      eprint={2511.09213},
      archivePrefix={arXiv},
      primaryClass={cs.CL},
      url={https://arxiv.org/abs/2511.09213}, 
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей