/ Модель

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

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

mmbert-yigchung-v2

Разметка токеновТекст → label3 профессии

Модель ModernBERT для выделения символьных интервалов yigchung в плоском тексте на классическом тибетском языке.

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

Бенчмарки

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

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

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

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

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

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

mmBERT Yigchung v2 — модель для поиска yigchung, мелкой межстрочной аннотации под основной строкой классического тибетского текста. Её разработал автор репозитория karma689, дообучив jhu-clsp/mmBERT-base с архитектурой ModernBERT для классификации токенов. Модель принимает плоскую строку текста и возвращает символьные интервалы; изображения страниц она не обрабатывает.

Модель содержит 306,9 млн параметров и поддерживает контекст до 8192 токенов. Она обучена на версии v2.0 набора karma689/yigchung_detection. На тесте F1 составил 0,564, однако результат существенно различается по источникам: модель хорошо справилась с BDRC и Lotsawa, но хуже — с проверенными OPF книгами; набор Nalanda оказался особенно сложным. Границы предсказанных интервалов могут быть неточны, а небольшие ошибки границ снижают оценку. Лицензия — Apache-2.0.

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

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

Ограничения

Модель анализирует только плоский текст и не видит изображения страниц; найденные границы могут содержать ошибки. Качество заметно зависит от источника: особенно низкий результат показан на проверенных OPF книгах и наборе Nalanda.

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

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

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

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

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

Открыть на Hugging Face

mmBERT Yigchung v2

Token classifier for Yigchung in Classical Tibetan: the small-print interlinear annotation written under the main line. The model reads a flat base string and returns character spans. It does not see page images.

Fine-tune of jhu-clsp/mmBERT-base (ModernBertForTokenClassification, 22 layers, max length 8192) on karma689/yigchung_detection, revision v2.0 (reviewed OPF, Lotsawa House, Nalanda, and BDRC).

This is a new experiment line. Do not compare these scores to the 0.389 baseline from the earlier 15-class run on karma689/layer_detection.

Weights are the best validation checkpoint, step 2412 (epoch 2.25). Training ran on to step 6700 and was early-stopped; that later checkpoint is not the one published here.

Test predictions and the score file are in this repo:

How to run inference

Spans are inclusive on both ends: text[start:end + 1].

Books are longer than the 8192-token window. Cut the same windows used in training, keep each content token from the first window that covers it, then Viterbi-decode. break_penalty=8 is the value chosen on the validation split of this checkpoint.

SettingValue
Window length8192 tokens (2 specials + 8190 content)
Overlap / step3276 / 4914
Labels0 O, 1 B-YIGCHUNG, 2 I-YIGCHUNG
Stitchtoken is scored by the first window that contains it
DecodeViterbi. O → I is illegal. Leaving a span (B/I → O) costs break_penalty
Selected penalty8 (validation F1 0.667; test scored once at this value)

The repo script src/script/infer_yigchung.py still defaults to karma689/mmbert-yigchung and break_penalty=1. For this checkpoint pass the v2 model id and penalty 8.

Results

Greedy one-to-one span match at IoU ≥ 0.5. These are the training-protocol scores (no whitespace trim) and match result/result.json.

SplitPrecisionRecallF1TPFPFN
validation, penalty 80.6830.6530.6671721800916
test, penalty 80.7820.4410.56417895002270

Validation F1 by break_penalty on this checkpoint: 0 → 0.650, 1 → 0.658, 2 → 0.661, 4 → 0.665, 8 → 0.667.

Test by source

SourceBooksPrecisionRecallF1TPFPFN
bdrc50.9610.9990.9801569631
lotsawa470.7760.8520.81252159
reviewed_opf240.3710.1960.256166282682
nalanda10.0140.0010.00221401578
reviewed only (opf + lotsawa + nalanda)720.3350.0880.1402204372269
all sources (micro)770.7820.4410.56417895002270

The micro F1 of 0.564 is carried by the five BDRC test volumes (1,570 of 4,059 gold spans, F1 0.980). On the 72 reviewed books the F1 is 0.140. Nalanda (1,580 gold spans, 2 true positives) accounts for most of that miss.

Comparison

Same 72 books (the five BDRC test volumes are not in the baseline prediction file). Spans trimmed of edge whitespace, then the same IoU ≥ 0.5 match. Baseline is BDRC/Bo-Yigchung-Detection, scored in result/Latest_benchmark.

Setv2 F1baseline F1v2 P / Rbaseline P / R
reviewed OPF (24 books, 848 spans)0.2590.4540.376 / 0.1970.501 / 0.415
Lotsawa (47 books, 61 spans)0.8120.5890.776 / 0.8520.824 / 0.459
Nalanda (1 book, 1,580 spans)0.0020.0010.014 / 0.0010.091 / 0.001
those 72 books0.1410.2350.338 / 0.0890.509 / 0.153

v2 is ahead on Lotsawa and behind on the reviewed OPF books. Both models miss Nalanda. The published v1 checkpoint karma689/mmbert-yigchung scored F1 0.431 on these same 24 OPF books under the pre-review gold (873 spans), so that number is not on the same gold.

Validation on reviewed OPF was F1 0.514; test on the same source is 0.256.

Training

Datakarma689/yigchung_detection, revision v2.0, config windowed_w8192_s4914
Objectiveweighted token cross-entropy, ignore_index=-100
Class weightsO 0.07, B-YIGCHUNG 5.0, I-YIGCHUNG 5.0
ScheduleAdamW, lr 1e-5, weight decay 0.01, warmup 20% of a 10-epoch reference
Batch2 per device, grad accumulation 4, bf16, max grad norm 1.0
Selectionspan IoU@0.5 F1, in-loop break_penalty 2.0; best step 2412
Stopearly stop at step 6700 (epoch 6.24 of a 15-epoch budget)
Seed42

Train / validation / test windows: 8,585 / 1,043 / 1,189. About 64% of train windows contain no Yigchung token.

Label scheme

idlabel
0O
1B-YIGCHUNG
2I-YIGCHUNG

Label -100 is the loss mask for specials and for tokens already owned by an earlier window. It is not a class.

Limitations

  • The tagger sees the base string only. Yigchung is a typographic layer; many spans are not lexically obvious.
  • The headline test F1 mixes an easy BDRC slice with the reviewed books. Cite the per-source table when comparing releases.
  • Boundary errors of a few syllables fail the IoU@0.5 match even when the region is roughly right.
  • break_penalty 8 is the validation pick for this checkpoint. The v1 release used penalty 1.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей