/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Qwen3.5-0.8B
Библиотека
gguf
Опубликована
14 окт 2026

titanocr-handwriting-qwen35-08b-gguf

Изображение и текст → текст3 профессии
23скачиваний за 30 дней0лайковвеса обновлены14 окт 2026

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

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

Компактная зрительно-языковая модель, которая расшифровывает отдельные рукописные слова и строки, прежде всего из рецептов.

TitanOCR handwriting reader — Qwen3.5-0.8B (run A2) — это дообученная модель для распознавания рукописного текста на изображениях. Её разработчик дообучил Qwen/Qwen3.5-0.8B с помощью LoRA, затем объединил адаптер с базовой моделью и экспортировал веса в GGUF; репозиторий также содержит vision-проектор. Модель принимает изображение одного обрезанного слова или строки и выдаёт его буквальную текстовую расшифровку.

Модель предназначена для чтения рукописных слов в рецептах, в частности слов на латинице из рецептов Бангладеш. В README приведены результаты на 60 отложенных примерах из одного набора данных: точность полного совпадения букв составила 76,7%, CER — 0,14; автор предупреждает, что выборка мала и эти показатели не являются заявлением об общей точности. Модель может «исправлять» написание до правдоподобного названия препарата, а оценки токенов не откалиброваны как вероятность правильного ответа. На CPU обработка занимает около 0,5 секунды на слово на Apple M5 с двумя потоками. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

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

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

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

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

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

Открыть на Hugging Face

TitanOCR handwriting reader — Qwen3.5-0.8B (run A2, GGUF)

A LoRA fine-tune of Qwen/Qwen3.5-0.8B that reads one cropped line or word of handwriting — doctor-style prescription scrawl — and writes it verbatim.

It was built for TitanOCR, where it runs on CPU as a second reader behind PP-OCR:

  • every reading is force-aligned against the CTC recogniser's per-frame posteriors for the same crop, which gives pixel support and word boxes;
  • the losing reading is kept;
  • until a calibration fitted on human truth exists, every line whose text this model delivers is flagged for review.

Not for clinical decisions. This is a research and demo model. It makes no accuracy claim, and its readings need human review.

Files

FileWhatBytessha256
titanocr-hw-qwen35-08b-a2-Q8_0.gguflanguage model833,592,000703a043c56a8b48784d88887cea0307fffe763639b614c12985b2e16eb30659a
titanocr-hw-qwen35-08b-a2-mmproj-F16.ggufvision projector204,986,5605d2f94b8b31d423acc95c9443a16caab3616b45bb6f71f07dbea54684c7cf5c6

How it is run

The runtime is llama.cpp 30f7df1a831b (tag b11586):

llama-server --model titanocr-hw-qwen35-08b-a2-Q8_0.gguf \
  --mmproj titanocr-hw-qwen35-08b-a2-mmproj-F16.gguf \
  --threads 2 --threads-batch 2 --parallel 1 --seed 0 \
  --reasoning off --cache-ram 0 --no-repack --jinja \\
  --image-min-tokens 8 --image-max-tokens 256

Resize every crop first, exactly as in training: 128 px high (aspect kept, bicubic), both sides rounded to multiples of 32, at most 1 024 px wide — a wider line is shrunk to fit with its height still a multiple of 32 (titanocr.engines.handwriting.normalise_crop). With the token limits above, llama.cpp then never resizes it again, and a word costs ~24 image tokens.

Each request sends the image first, then the prompt htr-crop@v3 (included), with:

  • greedy decoding (temperature 0, top_k 1);
  • max_tokens 48;
  • the grammar latin-line.gbnf (included), which allows only Latin letters, digits, dose punctuation and ⟨?⟩ for an unreadable word.

Training (run A2)

  • Data. RxHandBD's Train_Set (CC BY 4.0), cut to the ink plus a 10 % margin: 3,675 train and 193 val crops. Excluded:
    • the 300-crop rxhandbd-dev split, used for model selection;
    • 295 expanded-form labels (a crop showing Tab. labelled Tablet);
    • anything byte-identical to the Test_Set.
  • Recipe. Unsloth 2026.9.12, transformers 5.5.0, trl 0.24.0, peft 0.20.0. LoRA r=32, alpha=32 on the vision and language layers; 3 epochs, lr 2e-4, fp16 on a Tesla T4 (Kaggle); seed 38. Training took 1665 s, and loss fell from 2.90 to 0.015. The full record is in run.json.
  • Export. The adapter was merged, then converted with llama.cpp's convert_hf_to_gguf.py at 30f7df1a831b: language model Q8_0, vision projector F16.

Development evidence — not an accuracy claim

These are 60 crops of rxhandbd-dev, never trained on, read on CPU (Apple M5, 4 threads) with greedy decoding and the grammar.

Readerletters-only exactCERwrong among the best-ranked 50 % (token prob x pixel support)
PP-OCRv5 (TitanOCR's shipped recogniser)11.7 %0.51—
Qwen3-VL-2B + run A1 (the previous reader)73.3 %0.1710.0 %
this model76.7 %0.146.7 %

On the in-run val split (193 crops, measured on the GPU), letters-only exact went from 25.4% to 67.4%.

Treat these numbers with care:

  • the intervals are wide (n = 60);
  • it is one population of Bangladeshi prescription words;
  • the golden Test_Set has not been read.

Limitations

  • Narrow training data. It was trained on Bangladeshi prescription words in Latin script. Other hands, languages and scripts are untested.
  • It can "correct". A fluent model can turn a misspelt word into a plausible drug name. TitanOCR checks every reading against the pixels for exactly this reason; on its own, this model has no such check.
  • Uncalibrated. Its token probabilities are not P(correct).
  • Speed on CPU. About 0.5 s per word crop on 2 CPU threads (Q8_0, Apple M5); a long line takes 1-1.5 s.

Licence and attribution

  • Weights: Apache-2.0, as is the base model Qwen/Qwen3.5-0.8B.
  • Training data: RxHandBD — Md Masudul Islam, RxHandBD: A Handwritten Prescription Word Image Dataset, Mendeley Data V3, doi:10.17632/dsb5r6vskg.3, licensed CC BY 4.0.

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

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

GPU в ailist

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

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

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

Ревизия весов
93c1971

0 моделей