/ Модель

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

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

icelandic-modernbert-m-160tpp

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

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

68скачиваний за 30 дней0лайковвеса обновлены28 окт 2026

Бенчмарки

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

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

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

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

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

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

Это исследовательский исландский энкодер Hafsteinn на архитектуре ModernBERT, обученный с нуля для предсказания замаскированных токенов. Модель среднего размера содержит около 59 млн параметров, имеет 19 слоёв и контекст до 8192 токенов. Она использует чередование глобального внимания и локального окна, а также RoPE и GeGLU.

Модель предназначена прежде всего для заполнения пропусков в исландском тексте и как основа для дообучения под задачи классификации, распознавания сущностей и разметки частей речи. В карточке приведены результаты на исландских наборах NER, POS и оценки приемлемости текста; это результаты дообучения для оценки, а не дополнительные готовые pipeline-задачи репозитория. Чекпойнт обучен на открытых исландских текстовых данных, однако сам корпус не опубликован из-за смешанных условий лицензирования. Модель распространяется по лицензии MIT.

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

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

Ограничения

Опубликован только один seed предобучения для этого размера, поэтому сравнения размеров включают шум от случайности обучения. Результаты по NER, POS и другим прикладным задачам требуют отдельного дообучения; обучающий корпус не распространяется.

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

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

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

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

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

Открыть на Hugging Face

Icelandic ModernBERT, size m-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 m 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-m (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
Shape19 layers, hidden 512, GeGLU inner 768, 8 heads (Ettin/ModernBERT ladder)
Parameters59.4M total = 16.8M embedding + 42.7M 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 seen9.51B = 160.0 tokens/parameter (8x Chinchilla, counting all parameters as Hoffmann et al.); 223 per non-embedding parameter
Steps18,136 at 524,288 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 285M tokens, constant peak LR 0.0015, 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.91
dynaword63,0340.059B1.82
finepdfs230,7221.862B0.91
fineweb21,977,5021.614B0.91
hplt31,715,2381.376B0.91
ic3v2964,1000.364B0.91
igc2,012,8832.012B0.91
macocu2,083,5951.173B0.91
madlad604,8250.559B0.91
wiki8,8430.001B1.82
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": 1.532, "dynaword": 0.743, "finepdfs": 1.652, "fineweb2": 1.533, "hplt3": 1.589, "ic3v2": 1.148, "igc": 1.09, "macocu": 1.424, "madlad": 1.259, "wiki": 1.2}.

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)46.444.2 to 48.6547.1-0.8 [-2.6, +1.1]
ner (f1)92.892.0 to 93.6594.1-1.3 [-1.9, -0.8]
pos (acc)94.894.4 to 95.2595.4-0.6 [-0.9, -0.4]
qa (f1)53.251.7 to 54.6557.5-4.3 [-5.2, -3.4]
scala (mcc)66.262.0 to 70.3573.6-7.4 [-11.4, -3.4]

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

task (metric)160 tpp80 tppdifference [95% CI]
iceec (mcc)46.445.2+1.2 [-0.6, +2.9]
ner (f1)92.892.2+0.6 [+0.1, +1.0]
pos (acc)94.894.7+0.1 [-0.1, +0.3]
qa (f1)53.252.2+1.0 [+0.1, +1.9]
scala (mcc)66.263.2+2.9 [-1.0, +6.6]

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
Ревизия весов
426cbee

0 моделей