/ Модель

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

Контекст
131 072 токена
Параметры
318 млн
Размер весов
1,9 ГБ
Лицензия
Apache 2.0
Архитектура
paddleocr_vl · dense
Базовая модель
PaddleOCR-VL-1.6
Библиотека
transformers
Опубликована
3 сен 2026

SenOCR-Zh

Генерация текстаТекст → текст4 профессии
72скачиваний за 30 дней0лайковвеса обновлены3 сен 2026

Описание модели

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

SenOCR-Zh — дообученная мультимодальная модель для распознавания и структурирования китайских документов, включая таблицы, формулы и исторические материалы.

SenOCR-Zh — специализированная модель оптического распознавания и разбора китайских документов от VietAlpha Lab, дообученная на PaddlePaddle/PaddleOCR-VL-1.6. Она принимает изображения документов и формирует текстовое представление их содержимого, включая текст, таблицы и формулы; предназначена также для исторических китайских материалов и оцифровки Hán-Nôm. Модель сохраняет мультимодальную архитектуру PaddleOCR-VL и доступна в формате safetensors через Transformers; карточка указывает 318,2 млн параметров и контекст 131 072 токена. В README приводится оценка 85,19 на контролируемой китайской выборке из 160 страниц, но результат пока не подтверждён официальной таблицей MDPBench. Поддерживаются китайский, вьетнамский и английский языки, причём основная специализация — китайский.

Модель показывает лучшие результаты на чистых цифровых страницах, чем на фотографиях документов. Среди сложных случаев указаны сильное размытие, перекос и перспективные искажения, выцветшие или редкие символы, рукописные пометки, сложный порядок чтения и плотные формулы. Для исторической, юридической и другой критически важной транскрипции рекомендуется проверка человеком. Лицензия — Apache-2.0.

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

  • распознавание текста на изображениях китайских документов
  • извлечение таблиц и формул со страниц документов
  • оцифровка китайских исторических архивов
  • распознавание материалов на Hán-Nôm и литературном китайском
  • разбор сфотографированных страниц документов

Ограничения

На сфотографированных страницах качество заметно ниже, чем на чистых цифровых документах; трудности также вызывают сильные искажения, редкие или повреждённые символы, рукописные пометки, сложный порядок чтения и насыщенные формулами страницы. Результат на китайской выборке является контролируемой оценкой проекта и пока не прошёл официальную проверку MDPBench; для важных транскрипций нужна проверка человеком.

Публичные бенчмарки

Результаты из открытых лидербордов в сравнении с лидерами каталога

Публичных оценок пока нет

В подключённых источниках результатов этой модели не нашлось. Отсутствие оценки не значит, что модель хуже: её могли просто не проверять.

Источники: Hugging Face Leaderboards, Hugging Face Eval Results, Open LLM v2, MTEB, timm, Open ASR, EvalPlus, LLM Stats

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

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

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

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

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

Открыть на Hugging Face

SenOCR-Zh is a Chinese-specialized document OCR model built on PaddleOCR-VL-1.6.

The model retains the approximately 0.96B-parameter PaddleOCR-VL-1.6 architecture while adapting the language decoder for Chinese text, tables, formulas, and historical CJK material. On our controlled 160-page Chinese/ZH evaluation group, SenOCR-Zh reaches an 85.19 Chinese document composite.

Fine-tuning updates 12.09M parameters, about 1.26% of the model, using decoder-only LoRA on a single NVIDIA A10G.

SenOCR-Zh is intended for Chinese document parsing, historical Chinese material, mixed text-table-formula pages, photographed documents, and Hán-Nôm digitization workflows.

Highlights

  • Chinese document parsing: 85.19 Chinese composite on the controlled 160-page ZH group, supported across 84.77 text (1 - NED), 81.57 table (TEDS) and 79.47 formula (CDM) rather than by a single task.
  • Strong on clean pages: 92.69 Chinese digital-document composite, against 82.69 on photographed documents.
  • Small and self-contained: 0.959B total parameters in a single merged checkpoint — no separate adapter branch is needed at inference.
  • Cheap to reproduce: decoder-only LoRA rank 32 / alpha 64 over 12.09M trainable parameters (~1.26% of the model), trained on 1 x NVIDIA A10G.
  • Multilingual context: 83.38 Vietnamese + English + Chinese composite, though the three-language score is supporting context rather than the optimization target.
  • Drop-in interface: identical to PaddleOCR-VL-1.6 — usable through transformers for element-level recognition, or as the recognition model inside the PaddleOCR-VL 1.6 page-parsing pipeline.

Inference examples

SenOCR-Zh follows the PaddleOCR-VL-1.6 model interface.

Transformers

For direct element recognition:

pip install "transformers>=5.0.0" torch pillow
from PIL import Image
import torch
from transformers import AutoProcessor, AutoModelForImageTextToText

model_id = "VietAlphaLabs/SenOCR-Zh"
image_path = "document.png"
task = "ocr"  # "ocr" | "table" | "formula"

prompts = {
    "ocr": "OCR:",
    "table": "Table Recognition:",
    "formula": "Formula Recognition:",
}

device = "cuda" if torch.cuda.is_available() else "cpu"

model = (
    AutoModelForImageTextToText
    .from_pretrained(model_id, torch_dtype=torch.bfloat16)
    .to(device)
    .eval()
)
processor = AutoProcessor.from_pretrained(model_id)

image = Image.open(image_path).convert("RGB")

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

inputs = processor.apply_chat_template(
    messages,
    add_generation_prompt=True,
    tokenize=True,
    return_dict=True,
    return_tensors="pt",
).to(device)

outputs = model.generate(**inputs, max_new_tokens=512)

text = processor.decode(
    outputs[0][inputs["input_ids"].shape[-1]:-1]
)

print(text)

PaddleOCR

For page-level document parsing, SenOCR-Zh can be used as the multimodal recognition model inside the PaddleOCR-VL 1.6 pipeline.

pip install -U "paddleocr[doc-parser]>=3.6.0" huggingface_hub
from pathlib import Path
from huggingface_hub import snapshot_download
from paddleocr import PaddleOCRVL

model_dir = snapshot_download(repo_id="VietAlphaLabs/SenOCR-Zh")

output_dir = Path("./output")
output_dir.mkdir(parents=True, exist_ok=True)

pipeline = PaddleOCRVL(
    pipeline_version="v1.6",
    vl_rec_model_dir=model_dir,
)

output = pipeline.predict("document.png")

for result in output:
    result.print()
    result.save_to_json(save_path=output_dir)
    result.save_to_markdown(save_path=output_dir)

See the PaddleOCR-VL documentation for PDF input, document restructuring, and optimized serving backends.

Download the model

hf download VietAlphaLabs/SenOCR-Zh --local-dir SenOCR-Zh/

Evaluation

SenOCR-Zh is evaluated on a controlled 480-page MDPBench slice covering Vietnamese, English, and Chinese, with 160 pages per language.

[!NOTE] SenOCR-Zh has not yet been officially verified on the MDPBench leaderboard. The SenOCR-Zh scores below come from our project-controlled evaluation. External comparison scores come from the official MDPBench leaderboard.

Chinese

ModelTypeChinese / ZH score
SenOCR-ZhSpecialized OCR, 0.959B85.19*
Gemini-3-pro-previewGeneral VLM85.10
PaddleOCR-VL-1.5Specialized OCR84.80
dots.mocrSpecialized OCR84.60
MonkeyOCRv2-S-ParsingSpecialized OCR84.40

* Project-controlled result; official MDPBench verification is pending.

Within this selected comparison, SenOCR-Zh is 0.09 points above Gemini-3-pro-preview, 0.39 above PaddleOCR-VL-1.5, 0.59 above dots.mocr, and 0.79 above MonkeyOCRv2-S-Parsing on Chinese/ZH.

Components

Chinese capabilityScoreEvaluation support
Composite85.19160 pages
Text, 1 - NED84.77156 pages / 3,016 instances
Table, TEDS81.5768 pages / 128 instances
Formula, CDM79.4732 pages / 88 instances

The 85.19 composite is supported across text, tables, and formulas rather than by a single task.

Document conditions

Chinese metricDigitalPhotographed
Composite92.6982.69
Text, 1 - NED91.1982.64
Table, TEDS98.7275.86
Formula, CDM95.4574.24

Photographed pages are materially harder than clean digital pages, especially for tables and formulas.

Multilingual

The controlled Vietnamese + English + Chinese composite is 83.38.

This three-language score is supporting context rather than the primary optimization target. SenOCR-Zh is specialized for Chinese document parsing.


Training

SenOCR-Zh keeps the PaddleOCR-VL-1.6 architecture intact and concentrates adaptation in the language decoder.

SettingValue
Base modelPaddlePaddle/PaddleOCR-VL-1.6
Total parameters958.6M
Trainable parameters12.09M
Trainable share~1.26%
Decoder layers18
LoRA rank32
LoRA alpha64
LoRA dropout0.0
Adapted projections126
Peak learning rate1e-4
Minimum learning rate1e-5
Warmup3%
Weight decay0.01
Gradient clipping1.0
Microbatch8
Gradient accumulation8
Effective batch size64
PrecisionBF16
Maximum sequence length4,096
Training steps2,367
Training passes~3.0
Training GPU1 x NVIDIA A10G

LoRA is applied to seven projections in each of the 18 decoder layers:

  • q_proj
  • k_proj
  • v_proj
  • o_proj
  • gate_proj
  • up_proj
  • down_proj

The vision encoder, vision-language aligner, embeddings, and output head remain frozen.

Training interleaves three task prompts:

<image>OCR:
<image>Table Recognition:
<image>Formula Recognition:

Data

SenOCR-Zh is trained on a 50,451-record Chinese OCR corpus built from open, attributable sources.

Corpus laneRecordsShare
Chinese modern historical archives18,00035.7%
Broad Chinese OCR regions14,00027.7%
Hán-Nôm and Literary Chinese12,00023.8%
Chinese table synthesis3,0005.9%
Formula recognition3,4516.8%
Total50,451100%

The lanes draw on:

The data pipeline applies source-overlap checks, duplicate-page filtering, sequence-length audits, target-token analysis, annotation review, and manuscript-level train/test separation.

Dataset licenses vary by source and each retains its original terms.

Historical OCR

SenOCR-Zh is designed for historical Chinese and Hán-Nôm document workflows where OCR must recover both transcription and document structure.

Target material includes:

  • vertical Traditional Chinese;
  • historical letters and registers;
  • catalogs, yearbooks, and textbooks;
  • woodblock and degraded printed pages;
  • rare CJK characters;
  • marginalia and handwritten corrections;
  • Hán-Nôm documents containing Nôm-specific or unencoded forms;
  • historical mathematics and scientific material combining prose, tables, and formulas.

Historical evaluation is not yet complete. Planned benchmarks include AncientDoc, ChineseOCRBench, and a manuscript-level held-out Hán-Nôm evaluation.


Limitations

The main measured weakness is the performance gap between digital and photographed pages.

Other difficult cases include:

  • severe blur, skew, perspective distortion, or uneven illumination;
  • damaged or ambiguous rare characters;
  • bleed-through and faded ink;
  • handwritten corrections and marginalia;
  • complex reading order;
  • unencoded Nôm forms;
  • formula-heavy or structurally dense pages.

For scholarly, legal, historical, or otherwise high-stakes transcription, human review is recommended.

License

SenOCR-Zh is released under the Apache License 2.0.

The model is built on PaddleOCR-VL-1.6, which is also distributed under Apache 2.0.

Dataset licenses vary by source. The training source mix includes datasets under MIT and CC-BY-4.0 terms, and each source retains its original licensing terms.

Citation

@misc{vietalphalab2026senocrzh,
      title={SenOCR-Zh: A Chinese-Specialized Document OCR Model},
      author={VietAlpha Lab},
      year={2026},
      publisher={Hugging Face},
      url={https://huggingface.co/VietAlphaLabs/SenOCR-Zh},
}

References

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

Класс архитектуры
PaddleOCRVLForConditionalGeneration
Ревизия весов
882525e

0 моделей