/ Модель

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

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

icelandic-modernbert-base-160tpp

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

Исландский энкодер ModernBERT для заполнения масок и тонкой настройки на задачи анализа текста.

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

Бенчмарки

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

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

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

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

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

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

hafsteinn/icelandic-modernbert-base-160tpp — базовый энкодер ModernBERT для исландского языка, разработанный авторами исследования «Beyond IceBERT: Open-Data ModernBERT Encoders for Icelandic from 12M to 1B Parameters». Модель обучена с нуля как вариант размера base с бюджетом 160 токенов на параметр; в карточке указано 136,1 млн параметров, а в метаданных — 135,5 млн. Она предназначена прежде всего для предсказания замаскированных слов и последующего тонкого дообучения для задач анализа исландского текста.

Архитектура включает 22 слоя, размер скрытого состояния 768 и 12 голов внимания; модель использует MLM-цель и поддерживает контекст до 8192 токенов. В описанных экспериментах её дообучали для распознавания именованных сущностей, POS-разметки, оценки приемлемости и выявления ошибок. Авторы отмечают, что результаты близки к варианту той же модели с 80 токенами на параметр, а различия между ними невелики. Для заполнения маски следует ставить токен [MASK] сразу после предыдущего слова, без пробела.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Icelandic ModernBERT, size base-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 base 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-base (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
Shape22 layers, hidden 768, GeGLU inner 1152, 12 heads (Ettin/ModernBERT ladder)
Parameters136.1M total = 25.2M embedding + 111.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 seen21.78B = 160.0 tokens/parameter (8x Chinchilla, counting all parameters as Hoffmann et al.); 196 per non-embedding parameter
Steps20,770 at 1,048,576 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 1e-05, grad clip 1.0, bf16 autocast
Schedulewarmup 653M tokens, constant peak LR 0.0008, 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.337B2.08
dynaword63,0340.059B4.16
finepdfs230,7221.862B2.08
fineweb21,977,5021.614B2.08
hplt31,715,2381.376B2.08
ic3v2964,1000.364B2.08
igc2,012,8832.012B2.08
macocu2,083,5951.173B2.08
madlad604,8250.559B2.08
wiki8,8430.001B4.16
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.229, "dynaword": 0.542, "finepdfs": 1.369, "fineweb2": 1.252, "hplt3": 1.299, "ic3v2": 0.893, "igc": 0.853, "macocu": 1.148, "madlad": 1.007, "wiki": 0.931}.

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)48.245.6 to 50.7547.1+1.0 [-1.1, +3.3]
ner (f1)93.692.9 to 94.2594.1-0.5 [-1.0, -0.0]
pos (acc)95.294.8 to 95.5595.4-0.2 [-0.5, +0.0]
qa (f1)54.653.2 to 56.0557.5-2.9 [-3.7, -2.0]
scala (mcc)70.066.0 to 74.4573.6-3.6 [-7.1, +0.1]

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

task (metric)160 tpp80 tppdifference [95% CI]
iceec (mcc)48.247.4+0.8 [-1.3, +2.9]
ner (f1)93.693.3+0.3 [-0.1, +0.8]
pos (acc)95.295.1+0.1 [-0.1, +0.3]
qa (f1)54.654.3+0.3 [-0.5, +1.1]
scala (mcc)70.067.5+2.5 [-1.1, +6.1]

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

0 моделей