/ Модель

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

Контекст
8 192 токена
Параметры
12,3 млн
Лицензия
MIT
Архитектура
modernbert · dense
Библиотека
transformers
Опубликована
7 окт 2026

icelandic-modernbert-xs-160tpp

Заполнение пропусковТекст → текст3 профессии
74скачиваний за 30 дней0лайковвеса обновлены28 окт 2026

Описание модели

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

Компактный исландский энкодер ModernBERT для предсказания пропущенных токенов и адаптации к задачам NLP на исландском языке.

Это компактный исландский языковой энкодер Icelandic ModernBERT xs-160tpp, разработанный для исследования в статье «Beyond IceBERT: Open-Data ModernBERT Encoders for Icelandic from 12M to 1B Parameters». Модель обучена с нуля на корпусах исландского текста; её архитектура ModernBERT включает 7 слоёв, скрытый размер 256 и около 12,3 млн параметров. Контекстное окно — 8192 токена, основной режим работы — предсказание замаскированных токенов в тексте.

Модель подходит для восстановления пропусков и как энкодерная основа для задач исландского NLP, включая распознавание именованных сущностей, разметку частей речи и классификацию приемлемости предложений после дообучения. В опубликованных экспериментах она уступает IceBERT на нескольких задачах; увеличение обучающего бюджета с 80 до 160 токенов на параметр дало лишь небольшие изменения. Веса доступны по лицензии MIT. Обучающий корпус не опубликован целиком из-за различий в лицензиях его источников.

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

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

Ограничения

В опубликованных сравнениях модель уступает IceBERT по результатам на нескольких задачах; прирост от удвоения бюджета предобучения был небольшим. Для предсказания маски её рекомендуется ставить сразу после предыдущего слова без пробела, иначе модель может предсказывать цифры.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus

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

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

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

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

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

Открыть на Hugging Face

Icelandic ModernBERT, size xs-160tpp

Paper: Beyond IceBERT: Open-Data ModernBERT Encoders for Icelandic from 12M to 1B Parameters (arXiv:2610.36230). If you use this model, please cite the paper. The BibTeX entry is at the end of this card.

Question this run answers. What does doubling the training tokens buy? This is the 160 tokens/parameter arm (8x Chinchilla) of the xs model. It has the same architecture, tokenizer, schedule shape (3% warmup, 15% 1-sqrt decay, last 10% at 8,192 tokens) and seed as hafsteinn/icelandic-modernbert-xs (80 tokens/parameter). The only other change is the CulturaX unique remainder (+0.34B tokens, +3.7%) added to the mix to reduce repetition. It is one rung of a size ladder (xs, s, m, base, large) trained with one recipe, so the rungs can be compared with each other and with existing Icelandic encoders (IceBERT, ELECTRA/ConvBERT-IGC, XLM-R, mmBERT, ScandiBERT) under one fine-tuning protocol.

Release. Released under the MIT licence with the paper, as one rung of its scratch-trained size ladder (xs to large, at 80 and 160 tokens per parameter); the training corpus is not released, because not every source states a licence that permits redistribution. Parts of the training data carry licences that require attribution (CC BY 4.0: IGC; CC BY-SA: Wikipedia, Wikisource) or come from web crawls with mixed rights (FineWeb-2, FinePDFs, HPLT 3.0, MaCoCu, MADLAD-400; IC3-v2 states no licence). The IGC restricted-licence parts (News2, Books) were not used. MIM-GOLD-NER, used only for evaluation, has a research-only licence, so no model fine-tuned on it is released.

Model

ArchitectureModernBERT (Warner et al. 2024): pre-norm, GeGLU, RoPE (global theta 160k, local 10k), alternating attention (global every 3rd layer, local window 128), no biases, tied embeddings
Shape7 layers, hidden 256, GeGLU inner 384, 4 heads (Ettin/ModernBERT ladder)
Parameters12.4M total = 8.4M embedding + 4.0M non-embedding
TokenizerIcelandic byte-level BPE, 32,768 tokens, trained for this project (NFC, prefix space, digits split, BERT specials). It was trained on a 4 GB stratified sample of the final deduplicated and decontaminated corpus (all 9 sources; held-out documents excluded). Fertility on held-out documents is 1.541 tokens per whitespace word, against 1.507 for IceBERT's 50k BPE. A 50,176-token variant was also trained and measured (1.481) but not used: its gain (3.9%) was below the 8% bar set in the plan. The same tokenizer is used for every size and for both the 80 and the 160 tokens/parameter arms.
Contexttrained at 1,024 tokens, last 10% of tokens at 8,192
Loads withtransformers AutoModelForMaskedLM (model_type modernbert)

Fill-mask. Write the mask token right after the previous word, with no space: Reykjavík er höfuðborg[MASK]. The tokenizer keeps each word's leading space inside the word's token, so a space typed before the mask becomes a token of its own. In training such a lone space comes mostly before a number, because digits are split off, so with the space the model predicts digits.

Training

Tokens seen1.98B = 160.0 tokens/parameter (8x Chinchilla, counting all parameters as Hoffmann et al.); 495 per non-embedding parameter
Steps7,562 at 262,144 tokens per step
ObjectiveMLM, 30% masking (80/10/10), 15% in the decay phase; loss on masked tokens only
OptimiserAdamW (0.9, 0.98), eps 1e-6, decoupled weight decay 0.0003, grad clip 1.0, bf16 autocast
Schedulewarmup 59M tokens, constant peak LR 0.002, 1-sqrt decay to 0 over the last 15%
HardwareMareNostrum 5 accelerated partition (4x H100 64 GB per node), DDP, FlexAttention with document masks (no cross-document attention)

Data

Deduplicated (exact + MinHash 0.75 across all sources, curated sources kept first), quality- and language-filtered, and decontaminated against every evaluation set (13-gram and whole-sentence matching). Per-source epochs below are for the 1,024-token phase.

sourcedocstokens (unique, after filtering)epochs
culturax523,4740.337B0.19
dynaword63,0340.059B0.38
finepdfs230,7221.862B0.19
fineweb21,977,5021.614B0.19
hplt31,715,2381.376B0.19
ic3v2964,1000.364B0.19
igc2,012,8832.012B0.19
macocu2,083,5951.173B0.19
madlad604,8250.559B0.19
wiki8,8430.001B0.38
all10,184,2169.36B

Sources: IGC-2024 open part (arnastofnun/IGC-2024, CC BY 4.0); the non-IGC subsets of danish-foundation-models/icelandic-dynaword (government gazette and Rafbókavefur under Icelandic copyright law's exemptions; Wikipedia, Wikisource, Wikibooks, wiki comments, radio talks CC BY-SA; sagas CC BY; Gutenberg); Icelandic Wikipedia (wikimedia/wikipedia 20231101.is); MaCoCu-is 2.0 (CC0); FineWeb-2 and FinePDFs isl_Latn (ODC-By); HPLT 3.0 isl_Latn; MADLAD-400 is, clean split (ODC-By); IC3-v2 (Miðeind; licence not stated, Common Crawl derived). CulturaX is (uonlp/CulturaX; mC4 + OSCAR, terms accepted 7 Oct; only the 0.34B tokens not already in the other sources). IcePaHC excluded (evaluation source); restricted IGC parts (News2, Books) not used.

Results

Held-out MLM (15% masking) loss per source at the end of training: {"culturax": 2.419, "dynaword": 1.371, "finepdfs": 2.423, "fineweb2": 2.325, "hplt3": 2.393, "ic3v2": 1.925, "igc": 1.844, "macocu": 2.256, "madlad": 2.003, "wiki": 1.906}.

Fine-tuning (same protocol for every model: learning rate picked on dev from a 3-value grid with seed 0, then 5 seeds at that rate; best-dev epoch; 95% CI from a hierarchical bootstrap over seeds and test items):

task (metric)this model95% CIseedsIceBERT (reference)difference vs IceBERT [95% CI]
iceec (mcc)39.637.1 to 42.0547.1-7.6 [-9.9, -5.4]
ner (f1)89.288.3 to 90.2594.1-4.9 [-5.7, -4.1]
pos (acc)93.993.5 to 94.3595.4-1.5 [-1.8, -1.2]
qa (f1)46.545.1 to 48.0557.5-11.0 [-12.2, -9.7]
scala (mcc)46.441.6 to 51.1573.6-27.2 [-32.3, -21.9]

160 vs 80 tokens/parameter (same size; paired over the same test-item draws; x100):

task (metric)160 tpp80 tppdifference [95% CI]
iceec (mcc)39.638.6+1.0 [-1.1, +2.9]
ner (f1)89.288.7+0.5 [-0.0, +1.1]
pos (acc)93.993.8+0.1 [-0.1, +0.3]
qa (f1)46.548.2-1.7 [-2.8, -0.6]
scala (mcc)46.445.1+1.2 [-3.4, +5.8]

Tasks: NER = MIM-GOLD-NER (IceBERT split, entity micro F1); POS = UD Icelandic-Modern + GC (UPOS accuracy); ScaLA = acceptability built from the same UD splits (MCC); IceEC = error vs no error (MCC); QA = NQiI + RUQuAD-1 (token F1).

Caveats

  • One pretraining seed per size; differences between sizes include pretraining-seed noise that the CIs do not cover.
  • The 8x Chinchilla budget is a decoder-derived heuristic; no compute-optimal law for MLM encoders is established.
  • Larger sizes repeat the data several times (see epochs); returns from repetition fall off beyond about 4 epochs (Muennighoff et al. 2023).
  • IGC JSONL documents were not used for the 8,192-token phase because their paragraph order is not guaranteed.
  • AdamW with gradient clipping replaces ModernBERT's StableAdamW; global RoPE theta is 160k from the start.
  • The fine-tuning learning rate comes from a 3-value grid per size class. For large only, the grid was extended upward on NER, POS and QA, because the chosen rate had sat at the top edge. The extension used the same seeds and the same dev-based selection (7 Oct). POS moved to 8e-5 (95.3 -> 95.5) and QA moved to 6e-5 (55.6 -> 56.0); NER was unchanged. The baselines kept their 3-value grids.
  • Fine-tuning used bf16 autocast; ScandiBERT gave non-finite losses in bf16 and was fine-tuned in fp32 (flagged per run).

Full numbers: the paper, arXiv:2610.36230. The fine-tuning results above are the first round; the paper extends every learning-rate grid until the chosen rate is not at an edge, so its numbers differ slightly. Export parity check (ours vs transformers logits): see export_check.json.

Citation

@misc{einarsson2026icebertopendatamodernbertencoders,
  title         = {Beyond {IceBERT}: Open-Data {ModernBERT} Encoders for {Icelandic} from {12M} to {1B} Parameters},
  author        = {Hafsteinn Einarsson},
  year          = {2026},
  eprint        = {2610.36230},
  archivePrefix = {arXiv},
  primaryClass  = {cs.CL},
  url           = {https://arxiv.org/abs/2610.36230}
}

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей