/ Модель

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

Лицензия
Apache 2.0
Базовая модель
swin_base_patch4_window12_384.ms_in22k
Библиотека
kraken
Опубликована
24 окт 2026

kraken-party-base

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

Многоязычная модель Llama Party распознаёт рукописный и печатный текст на изображениях страниц документов с учётом разметки строк.

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

Бенчмарки

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

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

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

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

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

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

Llama Party — модель распознавания текста на страницах документов, созданная Бенжамином Кисслингом и группой ALMAnaCH в Inria Paris; репозиторий Hugging Face является неизменённой копией выпуска Zenodo. Она предназначена для автоматической транскрипции рукописных и печатных исторических, современных и цифровых документов, особенно в гуманитарных исследованиях. Модель принимает изображение страницы вместе с координатами строк, заданными рамками или базовыми линиями и контурами, и выдаёт распознанный текст.

Архитектура объединяет визуальный энкодер Swin и небольшой декодер Llama примерно на 40 млн параметров. Модель обучена на многоязычном корпусе документов и поддерживает широкий набор языков и письменностей. Лицензия — Apache-2.0.

Модель задумана как основа для дообучения на целевом наборе данных, чтобы согласовать транскрипцию с нужными правилами. Качество заметно различается между языками и типами документов: обучающие данные смещены в пользу английского, французского, немецкого и латинского, а для ряда языков источников мало. В корпусе неоднородно обрабатывались сокращения, а прямое предсказание UTF-8 кодовых единиц может приводить к различиям в Unicode-нормализации.

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

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

Ограничения

Качество зависит от языка и типа документа и может быть существенно ниже для языков с малым объёмом обучающих данных. Правила обработки сокращений неоднородны, а Unicode-нормализация выходного текста может различаться.

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

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

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

Также подходит для

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

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

Открыть на Hugging Face

Llama Party: multilingual page-wise text recognition base model

Hugging Face Hub mirror

This repository mirrors the canonical Zenodo release by Benjamin Kiessling, ALMAnaCH, Inria Paris. The files are byte-identical to the Zenodo release and have not been modified by Small Models for GLAM.

Use from the Hugging Face Hub

Party needs kraken plus the party package from GitHub (the Party project on PyPI is unrelated).

pip install "kraken>=7.0" huggingface_hub git+https://github.com/mittagessen/party

hf download small-models-for-glam/kraken-party-base model.safetensors --local-dir ./kraken-party-base

# input.xml: a segmented page (ALTO/PAGE), e.g. from `kraken segment -bl`
kraken -f alto -a -i input.xml out.xml ocr -m -B 32 ./kraken-party-base/model.safetensors

Party is page-wise recognition of text-y. It is a replacement for conventional text recognizers in automatic text recognition pipelines that utilize either bounding box or baseline+bounding polygon segmentation methods for layout analysis.

Llama party is a full-page generative text recognizer that has been pretrained on a large corpus of multilingual historical, contemporary, and born-digital document page images, both handwritten and machine-printed.

Architecture

The recognizer is a deep fusion multimodal model consisting of a Swin vision encoder and a tiny Llama (40m parameters) decoder trained with octet tokenization. The network is prompted with the line positions through positional embeddings added to the encoder hidden state. Line prompts can be encoded either as bounding boxes or as baseline+bounding curves, so the model is compatible with both segmentation paradigms.

During training the encoder weights were initialized with an ImageNet-22k pretrained Swin-base from pytorch-image-models, the decoder weights came from a custom Llama 3.2 pretrained on the historical and cultural subset of the Common Corpus tokenized with a ByT5-style octet tokenizer.

Uses

Llama party is a recognition foundation model primarily targeted at automatic text recognition for the humanities. While it produces fairly accurate output on an impressive range of material it is intended to be fine-tuned on some target dataset to ensure compliance with desired transcription guidelines.

Transcription guidelines, Normalization, and Transformations

No attempts have been made to normalize the datasets or to only use data adhering to common transcription guidelines. While some subsets of the corpus are internally consistent, only a very small subset of the languages in the training data only contain datasets from a single source.

Text was normalized to Unicode NFD and whitespace was normalized during training.

Bias, Risks, and Limitations

The training corpus is heavily skewed towards a couple of languages (English, French, German, Latin, and Middle French) and frequently incorporates datasets of esoteric material transcribed for specific purposes. Especially machine-printed and born-digital material lack diversity, so error rates will most likely vary considerably across languages and document type.

Some additional limitations are to be expected:

  • For a number of languages the training material is small and/or comes from a single source (e.g. Ancient Greek, Finnish, Georgian, Malayalam, Slovak), resulting in markedly higher error rates that will require fine-tuning.
  • Some transcriptions resolved abbreviations while others did not. Inconsistent output is to be expected, in particular for European manuscripts in Latin script.
  • As the model predicts 8-bit UTF-8 code units directly the lack of consistent Unicode normalization can cause slightly different code point streams during prediction.

How to Get Started with the Model

Install kraken through pip and the party package from github and follow the instructions. Inference is handled through kraken:

$ kraken -f alto -a -i input.xml out.xml ocr -m -B 32 ~/model.safetensors

Training Details

Training Data

The model has been pretrained on a large collection of publicly available ATR datasets, in addition to a number of restricted datasets.

LanguageDatasets
Ancient GreekEPARCHOSHPGTRHTR_CPgr23Stavronikita Monastery Greek Handwritten Document Collection No. 114Stavronikita Monastery Greek Handwritten Document Collection No. 53Stavronikita Monastery Greek Handwritten Document Collection No. 7911 private datasets
ArabicAgapetMuharaf: Manuscripts of Handwritten Arabic DatasetRASAM datasetTariMaarabic_ms_dataOpenITI Arabic Print Data
CatalanFONDUE-CA-PRINT-20htromance-spa1 private dataset
Church Slavonic3 private datasets
CorsicanOCR Corse
Czech2024--medieval-czech-main2023--medieval-czechHTR Winter School 2025 - Medieval Czech - Biblioteka Jagiellonska BJ Rkp 441 IVPaderov Bible handwriting ground truth
Dutch6000 ground truth of VOC and notarial deeds / HTR of VOC, WIC and notarial deedsARlettaDagboek Ernest ClarysseFONDUE-NE-MSS-17-PR
EnglishFONDUE-EN-PRINT-20IAM Handwriting Databasejcrs_trainJosephHookerHTRsloanelabThe Revolutionary City / RevCity documentationOCR-D gt_structure_text2 private datasets
FinnishNewsEye/READ OCR Finnish Newspapers
FrenchAntoine Verard extractsCopiste-d-un-jourcorpus-HTR-lignes-mixtesdataset-celestine-doniau-danestFONDUE-FR-MSS-16FONDUE-FR-MSS-19-PRFONDUE-FR-PRINT-20genauto-td-htrHTR Front JusticeLa Correspondance Doucet-Rene JeanMemoire sur St Domingue par H. M. MichelMoonshinesNewsEye READ AS French NewspapersRecensement Valaisan (Valais Time Machine)Tapus CorpusTIMEUS CorpusTitresNobiliaires_17_18FONDUE-MLT-ARTNuBIS-OCR1 private dataset
Georgian15 private datasets
Germangt-frakturgerman_kurrent_handwritten_text_linesOCR-D gt_structure_textFONDUE-MLT-ART2024--German-Group-main2025--Early-Modern-GermanBullinger Digital Gwalther handwriting ground truthcharlottenburger-amtsschrifttumChronicling Germanydach-gtDigiTheo Ground TruthDresdner HofdiariumFibelnFONDUE-DE-MSS-16-PRFONDUE-DE-MSS-18FONDUE-DE-MSS-19-PRFONDUE-DE-MSS-20-PRFONDUE-MLT-PRINT-TESTFoNDUE_Kunsthistorisches-UZH_ArchivdatenbankGround truth for Neue Zurcher Zeitung black letterHakenkreuzbannerinzigkofenKlosterneuburg, Stiftsbibl., Cod. 48koenigsfeldenmkn-kurrent-gtNewsEye / READ OCR Austrian Newspapersnuremberg_letterbooksreichsanzeiger-gtWeisthuemerTraining Data Incunabula Reichenau1 private dataset
German (shorthand)1 private dataset
Hebrew2025-hebrew2 private datasets
ItalianDiario del Soldato Bruno CelestinoEpiSearch HTRFONDUE-IT-PRINT-20FONDUE-IT-PRINT-20-PRHTRogène Medieval Italian ManuscriptsHTRomance, Medieval Italian corpus of ground-truth for Handwritten Text RecognitionLiDi1.0-project2 private datasets
LatinOCR-D gt_structure_textNuBIS-OCRTraining Data Incunabula Reichenau2025--late-medieval-latin-mainburchards-dekret-digitalCaroline Minuscule ground truthCarolingian Latin Group HTR Wien Winter School 2025CREMMA Medii AeviDISTINGUO Latin ground truthEutychesFONDUE-LA-MSS-16-PRFONDUE-LA-MSS-17-PRFONDUE-LA-MSS-MAFONDUE-LA-PRINT-16HTR Winter School 2023/2024 - Late Medieval Latin, ONB 3891HTR Winter School 2024/2025 - Late Medieval Latin, ONB 4135; ONB 4680HTRogène Medieval Latin ManuscriptsHTRomance, Medieval Latin corpus of ground-truth for Handwritten Text Recognitionnotarial_charterParis Bible ProjectWien ONB Cod 2160 ground truth
MalayalamGround Truth data for printed Malayalam
Middle Dutchdata
Middle FrenchCremma MedievalDe la généalogie des dieuxDonnées imprimés du 16e siècleDonnées HTR incunables du 15e siècleDonnées HTR manuscrits du 15e siècleDonnées imprimés du 18e siècleFabliauxFONDUE-FR-AAEB-16FONDUE-FR-AAEB-17FONDUE-FR-MSS-18FONDUE-FR-PRINT-16FONDUE-FR-PRINT-17HTR-SETAF-Jean-MichelHTR-SETAF-LesFaictzJCHHTR-SETAF-Pierre-de-VingleHTRogene FrenchHTRomance, Medieval French corpus of ground-truth for Handwritten Text RecognitionImprimés 17e siècleLiberOCR17plusTNAH-2021-DecameronFRtranscription-chastel
MultilingualTraining Data Incunabula ReichenauTranscriboQuest25_MedVernacReligio
NorwegianNorHand v3 / Dataset for Handwritten Text Recognition in Norwegian
OccitanHTRogène Medieval Occitan Manuscripts1 private dataset
Ottoman Turkisharabic_ms_dataOpenITI Arabic Print Data
Persianarabic_ms_dataOpenITI Arabic Print Data
Picard1 private dataset
PortugueseiForal-DatasetPortuguese Handwriting 16th-19th c.
Russian2 private datasets
SlovakSlovensky Supermodel P&T1
Spanishhtromance-spaFoNDUE Spanish chapbooks 19th c. DatasetFONDUE-ES-MSS-19-PRFONDUE-ES-PRINT-19HTR - Araucania manuscript XIXHTRogène Medieval Spanish Manuscriptsohg3 private datasets
SwedishFinnish Court Records-sub500kat57 Swedish ground truth datasetNewsEye / READ OCR training dataset from Swedish Newspapersriskarchiv
Syriaczenodo.18157525winter_school_vienna2 private datasets
Ukrainian1 private dataset
UrduOpenITI Arabic Print Data
Vietnamese1 private dataset
Yiddish7 private datasets

Training Procedure and Hyperparameters

  • Training regime: 5 × A40 GPU, BF16 mixed precision, Muon optimizer (with an auxiliary AdamW group for embeddings/heads), batch size 16, gradient accumulation 16, cosine schedule with 10000 iteration warmup, max LR 3e-4, min LR 1e-5, weight decay 1e-5, gradient clipping 1.0, NFD normalization, augmentation enabled, random sampling of bounding box and curve line prompts.

Evaluation

Testing Data, Factors & Metrics

Testing Data

The model was evaluated on held-out test splits drawn from the training data sources.

Metrics

LanguageCER
Ancient Greek40.76%
Arabic7.34%
Catalan5.92%
Church Slavonic7.30%
Corsican7.48%
Czech11.03%
Dutch8.14%
English7.63%
Finnish38.16%
French7.49%
Georgian20.70%
German9.10%
Hebrew12.23%
Italian2.81%
Latin7.47%
Malayalam39.53%
Middle Dutch13.31%
Middle French1.47%
Multilingual6.27%
Norwegian1.51%
Ottoman Turkish6.77%
Persian5.41%
Portuguese7.53%
Russian7.99%
Shorthand German4.22%
Slovak19.59%
Spanish6.07%
Swedish6.10%
Syriac5.13%
Ukrainian8.21%
Urdu3.91%
Yiddish1.79%
Aggregate (micro-average)10.16%

Citation

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

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

GPU в ailist

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

Нельзя запустить

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
358024e

0 моделей