/ Модель

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

Лицензия
MIT
Базовая модель
Unlimited-OCR
Библиотека
llama.cpp
Опубликована
16 окт 2026

unlimited-ocr

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

Unlimited-OCR от Baidu читает изображения страниц и выдаёт текст документа с порядком чтения, типами блоков и координатами.

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

Бенчмарки

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

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

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

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

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

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

Unlimited-OCR от Baidu — мультимодальная модель для чтения и структурированного разбора страниц документов по изображениям. В этой сборке веса языковой модели представлены в GGUF для llama.cpp, а визуальный энкодер использует SAM ViT-B и CLIP-L. Модель выводит текстовые блоки в порядке чтения, указывая их тип и координаты; поддерживаются основной текст, заголовки, таблицы, формулы, подписи к изображениям, сноски и номера страниц. Таблицы выдаются в HTML, формулы — в LaTeX.

Сборка включает отдельный детектор текста PaddleOCR PP-OCRv5 Mobile в формате ONNX, который оценивает вероятность текста для каждого пикселя. Вместе компоненты предназначены для преобразования фотографий страниц и сканированных PDF в структурированный текст или Markdown. Лицензия — MIT.

Для длинных страниц llama.cpp требует вручную поддерживать скользящее окно внимания: без этого при объёме свыше примерно 1 500 сгенерированных токенов модель может повторять уже прочитанные фрагменты. README сообщает, что при корректном управлении окном проверена обработка страниц до 3 100 токенов; производительность зависит от оборудования.

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

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

Ограничения

В сборке llama.cpp без ручного управления скользящим окном внимания на длинных страницах возможны повторы фрагментов примерно после 1 500 сгенерированных токенов. Обнаружение текстовых областей предоставляется отдельным компонентом PP-OCRv5 Mobile и требует заданной в README предобработки изображения.

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

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

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

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

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

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

Открыть на Hugging Face

Unlimited-OCR for llama.cpp, with a text finder

Baidu's Unlimited-OCR as GGUF for llama.cpp, which reads a page — prose, columns, tables, formulas, figures and their captions — into its text in reading order, each block marked with what it is and where it stands; and PaddleOCR's PP-OCRv5 mobile text detector as ONNX, which says in a few tens of milliseconds on a CPU whether, and where, a picture holds writing. Built for Nexaflow, whose AI host runs both from C# to turn pictures and scanned PDF pages into Markdown.

FileWhatPrecisionSize
reader/unlimited-ocr-q8_0.ggufThe language model: DeepSeek-V2 mixture of experts, 3B parameters, 0.5B active8-bit3.1 GB
reader/unlimited-ocr-mmproj-f16.ggufThe vision encoder (SAM ViT-B and CLIP-L) and its projectorfp160.8 GB
text-finder/pp-ocrv5-mobile-det.onnxThe text detector: a probability of text at every pixelfp324.8 MB

How it was built

Build-PageReading.ps1 fetches the makers' weights at pinned revisions, checked by hash, and llama.cpp's converter at the commit of release b11606, whose own quantizer makes the 8-bit build. On the sample pages a 4-bit build read the same, but in llama.cpp's own tests 4- and 5-bit builds gave nothing back for a page of three lines. build_text_finder.py converts the detector with paddle2onnx and holds it to Paddle's own predictor: the probabilities agree to 1e-4.

page_reference.py runs the makers' transformers code on the sample pages — pages of the Unlimited-OCR paper, the paper's text set in small print on one page, and in two scanned columns — and text_finder_reference.py runs Paddle's detector on them; that is what a port is held to.

Using it

Reading a page. Load the language model with the projector (llama.cpp's mtmd), and give it the page picture and document parsing. — the start token, the picture, the words, no roles: the GGUF carries the makers' own chat template (chat_template.jinja) after the start token their code puts first, in place of the converter's, which prints a turn given as parts as a list. Decode greedily, as the makers do, and forbid any token that would repeat a 35-token run from the last 128. The block markers are special tokens: keep them when turning tokens into text.

The decoder was trained with reference sliding-window attention: every token sees the whole prompt — the picture and the instruction — and only the last 128 tokens written before it. llama.cpp runs its attention over everything written, which reads a short page the same, but past about 1,500 tokens it loses its place and reads passages again. Keep the window yourself: before decoding the token written n-th (from 0), once n reaches 128, remove the cell of the token written (n − 128)-th from the KV cache (llama_memory_seq_rm) — positions stay as they were, so this is the makers' ring buffer exactly. With it, a page of 3,100 tokens reads as the makers' code reads it. The cache then holds the page and 128 tokens at most, so 8,192 cells serve any page; let positions run on past them, to the 32,768 the model was trained to. On an RTX PRO 6000 a dense page reads in 2–5 s at about 850 tokens a second, peaking at 6.8 GB with 8,192 cells; on a 32-thread CPU it takes about 30 s.

The answer is one block a line:

<|det|>kind [x0, y0, x1, y1]<|/det|>content

with the box in thousandths of the page's width and height, and kinds title, text, equation, table, image, image_caption, page_footnote, header and page_number. Text holds LaTeX between \( and \); an equation is LaTeX between \[ and \]; a table is HTML; an image has no content — its box is where the figure is.

Finding text. Give the detector the picture as PaddleOCR prepares it — BGR, the long side brought to 960 with each side a multiple of 32, scaled to 0-1 and normalised by ImageNet's mean (0.485, 0.456, 0.406) and deviation (0.229, 0.224, 0.225), planar: x [1, 3, H, W]. It gives the probability of text at every pixel, [1, 1, H, W]. Join the pixels above 0.3 into regions, keep those whose box averages 0.6 or more, and grow each by its area × 1.5 / perimeter on every side, as the detector was trained (text_finding.py).

Licences

Unlimited-OCR is Baidu's, under the MIT licence (LICENSE); PP-OCRv5 is PaddlePaddle's, under the Apache License 2.0 (LICENSE-PaddleOCR). The files here are conversions of their weights under those licences. The recipe is Apache-2.0.

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

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

GPU в ailist

Универсальный рантайм · llama.cpp

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

GGUF-веса поддерживаются только для текстовых LLM (llama.cpp).

Ревизия весов
81bd5e5

0 моделей