/ Модель

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

Контекст
262 144 токена
Лицензия
CC BY 4.0
Архитектура
qwen3_5 · dense
Опубликована
20 мая 2026

Medusa0.2Line-9B

Описание изображенийИзображение → текст3 профессии

MEDUSA 0.2 Line 9B — модель для транскрипции отдельных строк средневековых рукописей на многих европейских языках.

2 007скачиваний за 30 дней0лайковвеса обновлены20 мая 2026

Бенчмарки

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

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Распознавание текста» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

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

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

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

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

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

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

MEDUSA 0.2 Line 9B — мультиязычная vision-language-модель для распознавания рукописного текста в средневековых европейских документах. Её разработали в École nationale des chartes – PSL; модель основана на архитектуре Qwen3.5 и дообучена для распознавания текста на уровне строки.

Модель принимает изображение одной предварительно выделенной строки рукописи и возвращает её транскрипцию. Она обучалась на исторических рукописях IX–XV веков и охватывает более 20 языков, включая старофранцузский, среднеанглийский, латынь, старочешский и старопольский. Версия 0.2 включает предварительный этап обучения на 500 тысячах синтетических строк для расширения покрытия языков с малым объёмом данных. Транскрипции ориентированы на правила CATMuS.

Модель предназначена для распознавания строк, а не страниц целиком: изображения страниц требуется предварительно сегментировать. Для соответствия правилам CATMuS может потребоваться отдельная постобработка. Лицензия — CC BY 4.0.

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

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

Ограничения

Принимает только заранее выделенное изображение одной строки и не распознаёт страницу целиком. Для применения правил транскрипции CATMuS может понадобиться отдельная постобработка.

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

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

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

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

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

Открыть на Hugging Face

MEDUSA 0.2 — Medieval European Documents Unified System for Automated text recognition

MEDUSA is a family of Vision Language Models (VLMs) fine-tuned for multilingual medieval handwritten text recognition (HTR) at the line level. These models were developed at the École nationale des chartes – PSL.

Note on versioning. The 0.1 variants correspond to the models submitted to the ICDAR 2026 competition, trained exclusively on Gold and Platinum image–text pairs. The 0.2 variants add a prior Silver stage using 500,000 synthetic lines, improving coverage of under-resourced languages.


System report

For full details on data, training procedure, and results, see the accompanying system report.


Languages and scripts

MEDUSA was trained on a corpus of over 640k lines + 500k generated lines spanning more than twenty repositories, covering the following language families and scripts:

  • Romance / Latin: Old French (fro), Occitan (pro), Old Italian (ita), Old Spanish (osp), Catalan (cat), Old Portuguese (opor), Navarrese (nav), Latin (lat), Venetian (vec), Galician (glg)
  • Germanic: Middle High German (gmh), Middle Low German (gml), Old Icelandic (ice), Middle English (enm), Middle Dutch (dum), Old English (ang), Old Norwegian (non), Swedish (swe)
  • Celtic: Welsh (wlm), Old Irish (gle)
  • Slavic: Old Czech (cze), Old Polish (pol)

Manuscripts dated roughly from the 9th to the 15th century.


Training data and curriculum

MEDUSA 0.2 is trained in three successive stages:

Stage 1 — Silver (synthetic)

The Silver stage uses text-only historical corpora to generate 500,000 synthetic line images, providing lexical and script coverage for languages that are absent or scarce in the image–text tiers. Text is sampled from over 20 million words across medieval languages, rendered onto real manuscript background patches with stochastic ink, scan, and document degradation effects.

The synthetic lines are available as a separate dataset: ENC-PSL/MEDUSA-synthetic-lines.

The underlying text-only corpora are listed below.

DatasetLanguageReference
Helsinki CorpusOld English / Middle English[1]
Floris and BlancheflourOld English[2]
DiakorpOld Czech[3]
HadewijchMiddle Dutch[4]
CELTOld Irish / Middle Irish[5]
Referenzkorpus AltdeutschOld High German[6]
Referenzkorpus MittelhochdeutschMiddle High German[7]
Referenzkorpus MittelniederdeutschMiddle Low German[8]
CTAOld / Middle Portuguese[9]
CIPMOld / Middle Portuguese[10]
CODEAOld Castilian[11]
OSTAOld Castilian[12]
Biblia MedievalOld Castilian[13]
MilioneVenetian[14]
BFMOld / Middle French[15]
Chrétien de TroyesOld / Middle French[16]
GesteOld / Middle French[17]
OtinelOld / Middle French[18]
MenotaOld Norse / Icelandic[19]
EAEOld Norse / Icelandic[20]
Flores och BlanzeflorOld Swedish[21]
Italian PaleographyOld Italian[22]
CLTK Latin LibraryLatin[23]
Medieval LatinLatin[24]
KochanowskiOld Polish[25]

Stage 2 — Gold

MEDUSA was trained on a corpus of over 640,000 lines spanning more than twenty repositories, covering the following language families and scripts:

Romance / Latin: Old French (fro), Occitan (pro), Old Italian (ita), Old Spanish (osp), Catalan (cat), Old Portuguese (opor), Navarrese (nav), Latin (lat), Venetian (vec), Galician (glg)
Germanic: Middle High German (gmh), Middle Low German (gml), Old Icelandic (ice), Middle English (enm), Middle Dutch (dum), Old English (ang), Old Norwegian (non), Swedish (swe)
Celtic: Welsh (wlm), Old Irish (gle)
Slavic: Old Czech (cze), Old Polish (pol)

Mnuscripts dated roughly from the 9th to the 15th century.

Paired image–text data following heterogeneous transcription conventions, used for visual adaptation across manuscript styles and editorial traditions (~423,000 lines). See the MEDUSA 0.1 model card for the full dataset table.

Stage 3 — Platinum

Image–text pairs aligned with the CATMuS diplomatic transcription guidelines, used for final specialization toward the target task (~222,000 lines). See the MEDUSA 0.1 model card for the full dataset table.


Silver-stage references

[1] Helsinki Corpus TEI XML Edition (2011). Designed by Alpo Honkapohja et al. Based on The Helsinki Corpus of English Texts (1991).

[2] Draschner, M., Edlich-Muth, M. Raw text edition of the Middle English 'Floris and Blancheflour' in Edinburgh, National Library of Scotland, MS Advocates 19.2.1 (Jan 2026). https://doi.org/10.5281/zenodo.18244892

[3] Kučera, K., Řehořková, A., Stluka, M. Diakorp v6: Diachronic Corpus of Czech. LINDAT/CLARIAH-CZ (2015). http://hdl.handle.net/11234/1-5413

[4] Haverals, W., Kestemont, M. From exemplar to copy: the scribal appropriation of a Hadewijch manuscript computationally explored. JDMDH 23. https://doi.org/10.46298/jdmdh.10206

[5] Ó Corráin, D. et al. CELT: Corpus of Electronic Texts (1997). http://www.ucc.ie/celt

[6] Donhauser, K. et al. Referenzkorpus Altdeutsch (750–1050) (2022), version 1.2. https://www.deutschdiachrondigital.de/rea/

[7] Roussel, A. et al. Referenzkorpus Mittelhochdeutsch (1050–1350) (2024), version 2.1. https://www.linguistics.ruhr-uni-bochum.de/rem/

[8] ReN-Team. Reference Corpus Middle Low German/Low Rhenish (1200–1650) (2021), version 1.1. https://doi.org/10.25592/uhhfdm.9195

[9] Sobral, C., Cardeira, E. Corpus de Textos Antigos (CTA). http://teitok.clul.ul.pt/teitok/cta/

[10] Xavier, M.F. O CIPM — Corpus Informatizado do Português Medieval. In: Kabatek, J. (ed.), De Gruyter (2016). https://doi.org/10.1515/9783110462357-007

[11] GITHE. CODEA+ 2022. Corpus de documentos españoles anteriores a 1900 (2022). https://doi.org/10.37536/CODEA.2015

[12] Old Spanish Textual Archive (OSTA) (2026). https://github.com/hispanicseminary/OSTA

[13] Enrique-Arias, A., Pueyo Mena, F.J. Biblia Medieval (2008). https://bibliamedieval.es

[14] Burgio, E. et al. Dei Viaggi di Messer Marco Polo [...]: Edizione digitale (2015). https://risorse-esterne.edizionicafoscari.it/

[15] Guillot, C., Heiden, S., Lavrentiev, A. Base de français médiéval. Diachroniques 7, 168–184 (2018). https://shs.hal.science/halshs-01809581

[16] Kunstmann, P., Martineau, F. Chrétien de Troyes sur le web (2000). https://doi.org/10.16995/dscn.176

[17] Camps, J.-B. et al. Geste: un corpus de chansons de geste, 2016–... (Apr 2019). https://doi.org/10.5281/zenodo.2630574

[18] Camps, J.-B. La Chanson d'Otinel: édition complète du corpus manuscrit (Dec 2017). https://doi.org/10.5281/zenodo.1116736

[19] Medieval Nordic Text Archive (Menota). https://clarino.uib.no/menota/home. Founded 2001, part of CLARIN since 2016.

[20] The Arnamagnæan Institute, Copenhagen. Editiones Arnamagnæanæ Electronicæ (EAE). https://eae.ku.dk/

[21] Worrall, E., Edlich-Muth, M. Raw text edition of the Old Swedish "Flores och Blanzeflor" (Sep 2025). https://doi.org/10.5281/zenodo.17093371

[22] Magni, I., Markey, L., Signorini, M. Italian Paleography (2019). https://italian.newberry.t-pen.org/

[23] Classical Language Toolkit (CLTK): lat_text_latin_library. https://github.com/cltk/lat_text_latin_library. Texts in the public domain.

[24] Corbara, S. et al. Two datasets for the computational authorship analysis of medieval Latin texts (Jun 2020). https://doi.org/10.5281/zenodo.4298503

[25] Kochanowski, J. Works of Jan Kochanowski. Wikiźródła (Polish Wikisource). https://pl.wikisource.org/wiki/Autor:Jan_Kochanowski


Intended use

These models are designed for line-level HTR on pre-segmented medieval manuscript images. They are not page-level OCR systems: they expect a cropped image of a single text line as input and return the transcription of that line.

The models target CATMuS transcription guidelines, which govern abbreviation expansion, allograph normalisation, and the character set used.


Usage with DocWorkflow

The recommended way to use MEDUSA is via DocWorkflow, the document analysis framework developed at the École nationale des chartes.

Installation

git clone https://github.com/TheoMoins/DocWorkflow
cd docworkflow
pip install -e .

Configuration file

run_name: "Medusa0.2Line-9B"
output_dir: "results"
device: "cuda"
save_image: true

data:
  test: "path/to/your/alto/data"

tasks:
  htr:
    type: VLMLineHTR
    config:
      use_metadata: true
      model_name: 'outputs/Medusa0.2Line-9B'
      device_map: "auto"
      max_new_tokens: 128
      line_batch_size: 8
      max_pixels: 401408

      prompt: >
        Transcribe the handwritten text in this line image.
        Keep abbreviations as written, do not expand them.
        Modernize word segmentation (split or join words following modern usage).
        Use only u and i, never v and j, regardless of the original or modern usage.
        Do not record allographic variants, use standard letter forms.
        Output ONLY the transcription.

Running inference

docworkflow -c Medusa0.1Line-9B.yml predict -t htr -d test

Direct usage with transformers

The models can also be used directly outside of DocWorkflow, though the CATMuS post-processing step will need to be applied manually if desired.

from transformers import AutoProcessor, AutoModelForImageTextToText
from PIL import Image

model_id = "ENC-PSL/Medusa0.1Line-9B"

processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForImageTextToText.from_pretrained(model_id, device_map="auto")

image = Image.open("path/to/line_image.jpg").convert("RGB")

prompt = "Transcribe the handwritten text in this line image.\nOutput ONLY the transcription."

messages = [
    {
        "role": "user",
        "content": [
            {"type": "text", "text": prompt},
            {"type": "image", "image": image},
        ],
    }
]

inputs = processor.apply_chat_template(
    [messages],
    tokenize=True,
    add_generation_prompt=True,
    return_dict=True,
    enable_thinking=False,
    return_tensors="pt",
).to(model.device)

with torch.no_grad():
    generated_ids = model.generate(**inputs, max_new_tokens=128, do_sample=False)

trimmed = generated_ids[0][inputs["input_ids"].shape[1]:]
transcription = processor.decode(trimmed, skip_special_tokens=True).strip()
print(transcription)

Important. The model is optimised for the prompt given above. Results may degrade if the prompt is modified. The model outputs raw text; to enforce CATMuS compliance (character whitelist, allograph normalisation), apply the post-processing step provided in DocWorkflow (src/tasks/htr/postprocessing.py).


CATMuS conventions

Transcriptions follow the CATMuS guidelines.


Citation

If you use MEDUSA in your research, please cite:

@unpublished{moins:hal-05600991,
  TITLE = {{MEDUSA 0.1: Medieval European Documents Unified System for Automated text recognition System Report for the ICDAR 2026 Competition on Multilingual Medieval Handwritten Text Recognition}},
  AUTHOR = {Moins, Th{\'e}o and Cafiero, Florian and Camps, Jean-Baptiste and Conte, Lilla and Guidi, Emilie and Hensley, Brenna and Kapitan, Katarzyna and Macedo, Carolina and Peratello, Paola and Vermaas, Cecile and Vidal-Gor{\`e}ne, Chahan},
  URL = {https://enc.hal.science/hal-05600991},
  NOTE = {working paper or preprint},
  YEAR = {2026},
  MONTH = Apr,
  PDF = {https://enc.hal.science/hal-05600991v1/file/MEDUSA__MEDieval_Universal_Script_Analysis-6.pdf},
  HAL_ID = {hal-05600991},
  HAL_VERSION = {v3},
}

Funding

Funded by the European Union (ERC, LostMA, 101117408). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council. Neither the European Union nor the granting authority can be held responsible for them.

This work has received support under the Major Research Program of PSL Research University ``CultureLab'' launched by PSL Research University and implemented by ANR with the references ANR-10-IDEX-0001.

Ce travail a bénéficié d'une aide de l’État gérée par l'Agence Nationale de la Recherche au titre de France 2030 portant la référence « ANR-23-IACL-0008»).

Biblissima+ bénéficie d’une aide de l'Etat gérée par l'ANR au titre du Programme d’investissements d’avenir intégré à France 2030, portant la référence ANR-21-ESRE-0005.

This work was granted access to the HPC resources of IDRIS under the allocation 2026-AD011015914R1 made by GENCI.

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

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

GPU в ailist

Универсальный рантайм

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

Подбираем GPU…

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

0 моделей