/ Модель

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

Контекст
262 144 токена
Параметры
581 млн
Лицензия
Apache 2.0
Архитектура
qwen3_5_text · dense
Базовая модель
Qwen3.5-0.8B
Опубликована
28 мар 2026

receipt-to-json-models

Генерация текстаТекст → текст4 профессии

Модель на основе Qwen3.5-0.8B извлекает сведения из фотографий кассовых чеков и формирует структурированный JSON для автономной обработки на Android.

527скачиваний за 30 дней2лайкавеса обновлены17 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

AlioLeuchtmann/receipt-to-json-models — набор разработчика Alio Leuchtmann с моделью Qwen3.5-0.8B, дообученной для преобразования фотографий кассовых чеков в JSON. Модель принимает изображения и выдаёт структурированные текстовые данные о магазине, дате и времени, товарах, количестве, ценах, налоге и итоговой сумме. Рекомендуемая версия обучена с учётом квантования и поставляется в виде LiteRT-LM-бандла с весами int8 и float-параметрами отдельных управляющих слоёв; она предназначена для автономной работы на Android-устройствах, включая обработку на CPU. Архитектура основана на Qwen3.5 с визуальной частью и гибридным декодером GatedDeltaNet/attention; размер базовой модели — 0,8 млрд параметров. Контекст модели составляет 262 144 токена. В README показана обработка чеков на немецком языке, а метаданные также указывают английский и арабский.

На отложенной выборке из 192 чеков версия QAT v2 получила среднюю оценку 86,4 из 100; точность распознавания итоговой суммы составила 96%, магазина — 92%, количества — 98%, цены — 97%, названия товара — 80%. Основные сценарии — извлечение данных из розничных чеков и их подготовка для учёта или приложений расходов. Лицензия репозитория — Apache-2.0.

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

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

  • Извлечение магазина, даты и итоговой суммы из фото чека
  • Распознавание позиций, количества и стоимости товаров в чеке
  • Подготовка данных чеков для приложения учёта расходов
  • Извлечение налога и скидок из розничных чеков
  • Автономная оцифровка чеков на Android-устройстве

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Receipt to JSON: on-device vision models

Small vision-language models that turn a photo of a shopping receipt into structured JSON (store, date, line items with quantity and price, tax, total). They are converted to LiteRT-LM .litertlm bundles that run fully offline on an Android phone's CPU, e.g. through the Flutter plugin flutter_edge_ai.

Recommended file: Qwen3.5-0.8B_receipts-QAT-v2_int8_1024.litertlm (1.32 GB).

Taskreceipt photo → JSON (one image chunk per 1024 px of receipt height)
Base modelQwen3.5-0.8B (vision + hybrid GatedDeltaNet / attention decoder)
FormatLiteRT-LM bundle, int8 weights, GatedDeltaNet decay/beta gates in float
RuntimeLiteRT-LM 0.18 (CPU; vision on GPU also works)
Languages seen in trainingmostly German, English and Arabic receipts
Score86.4 / 100 on 192 held-out receipts (project metric, see below)

Files

FileWhat it isStatus
Qwen3.5-0.8B_receipts-QAT-v2_int8_1024.litertlm0.8B, trained on the relabelled dataset v2 (with tax field), quantization-aware, int8 + float gatescurrent, recommended
Qwen3.5-0.8B_receipts-QAT_int8_1024.litertlmsame recipe on the original labels (no tax field)previous version
Qwen3.5-0.8B_receipts-VL_mixed_1024.litertlm0.8B, no quantization-aware training, mixed int8/floatsuperseded
Qwen3.5-0.8B_receipts_mixed.litertlmfirst 0.8B buildsuperseded
Qwen3.5-2B_receipts-VL_mixed_1024.litertlm2B fine-tune, mixed int8/float (4.3 GB)experimental, older labels
OvisOCR2-receipts_mixed_1024.litertlmfine-tune of OvisOCR2 (a Qwen3.5-0.8B OCR model), see its .mdexperimental, older labels
model.safetensors, config.json, tokenizer filesan early text-only Qwen3.5 checkpoint (Qwen3_5ForCausalLM), not the vision models abovekept for reference

The superseded files are kept so that existing app versions keep working.

Output format

One JSON object, keys in this order, every value a string:

{"store": "HELLWEG",
 "store_misc": "GmbH & Co. KG, Alt Biesdorf 40, 12683 Berlin-Biesdorf, Ust-ID: DE359540540, www.hellweg.de",
 "date_time": "08.06.2024 09:37:07",
 "articles": [
   {"name": "Classico Color 21", "misc": "15384, 40 08789 13170 6", "quantity": "1", "price": "22.99"},
   {"name": "Rasensand 20 kg", "misc": "840473, @ 8.99", "quantity": "2", "price": "17.98"}],
 "tax": "6.74",
 "total": "40.97"}

(Illustrative example, not a real model output.)

Conventions of the v2 model:

  • price is what the line costs in total (quantity × unit price), after a discount printed inside the line. It is not the unit price; the unit price goes into misc as @ x.xx when the quantity is not 1.
  • quantity is a count or a weight ("2", "0.938"), "1" if none is printed.
  • A discount or coupon printed as its own line is its own article with a negative price. Deposit, delivery, service and rounding lines are articles too, named as printed.
  • Payment lines, subtotals, tax summaries and totals are not articles; a wallet balance or voucher used for paying is not an article either.
  • tax is the total tax printed (several rates added up), "" if none is printed.
  • total is the final amount of the purchase incl. tax and fees, after discounts.
  • store is the brand; store_misc holds legal name, address, phone, tax / registration numbers, branch and website (no cashier, POS, order or payment details).
  • date_time is copied as printed and not normalised.

The older files (without -v2) use the same keys without tax, and their price mixes unit prices and line totals.

How to run

Input preparation (the model was trained exactly this way):

  1. Resize the receipt photo to 1024 px width.
  2. Cut it into 1024 px tall chunks with 200 px overlap.
  3. Letterbox every chunk onto a white 1024 × 1024 square (top-left).
  4. Send all chunks first and then the instruction text, in one user message, in a fresh conversation.

Instruction text (used in training; send it unchanged):

Look at the provided Image Chunks of the single Receipt and start extracting into the following JSON Format:
{
  "store":"",
  "store_misc":"",
  "date_time":"",
  "articles":[
    {
      "name":"",
      "misc":"",
      "quantity":"",
      "price":""
    }
  ],
  "total":""
}

Field rules:
- store: Only the name of the store
- store_misc: Additional store details like address
- date_time: Date and time from the receipt
- articles[].name: Only the product name
- articles[].misc: Article number or non-name details
- articles[].quantity: Quantity (use "1" if not shown)
- articles[].price: Decimal price number WITHOUT currency symbol
- total: Total sum of the invoice

It is very important to list every article.

Extract all information from this receipt image and return it as a JSON object.

Flutter (flutter_edge_ai):

await FlutterEdgeAi.installModel(modelType: ModelType.qwen35, fileType: ModelFileType.litertlm)
    .fromFile(path).install();
final model = await FlutterEdgeAi.getActiveModel(maxTokens: 8192, preferredBackend: PreferredBackend.cpu);

Python (litert_lm, desktop):

import litert_lm
engine = litert_lm.Engine("Qwen3.5-0.8B_receipts-QAT-v2_int8_1024.litertlm",
                          backend=litert_lm.Backend.CPU(), vision_backend=litert_lm.Backend.CPU(),
                          max_num_tokens=8192, max_num_images=8)
conv = engine.create_conversation(sampler_config=litert_lm.SamplerConfig(top_k=1, temperature=0.0),
                                  max_output_tokens=2048)
content = [{"type": "image", "path": p} for p in chunk_paths] + [{"type": "text", "text": PROMPT}]
reply = conv.send_message({"role": "user", "content": content})

Use greedy decoding (top_k 1). Parse the reply leniently: about 2 % of answers are not valid JSON (mostly repetition loops on very long receipts), and numbers can occasionally contain a stray comma.

Evaluation

Project scorer (0–100), averaging parse rate, store, date/time, total, article count and per-article name / quantity / price matches. Held-out set: 192 receipts (92 of the author's own German receipts, 100 from public receipt datasets), never used for training. All scores below are against the visually reviewed v2 reference labels.

Model192 eval (PyTorch)92 own receipts.litertlm on 24 receipts (PC)
0.8B QAT v286.485.084.2
0.8B QAT (previous)78.077.776.2
0.8B without QAT77.3––
2B78.4––

Field accuracy of the 0.8B QAT v2 model on the 192 receipts: total 96 %, store 92 %, date/time 86 %, article count 89 %, quantity 98 %, price 97 %, article name 80 %.

Speed on a phone

Samsung Galaxy S22 Ultra, 1.32 GB int8 bundle (measured with the previous 0.8B QAT bundle, which has the same architecture, size and recipe):

BackendLoadFirst token, per image chunkDecodeTypical receipt
CPU23 s38 s9.5 tok/s3.2 min
GPU vision + CPU text25 s32 s12.1 tok/s2.7 min
GPU1.8 min64 s3.0 tok/s7.7 min

About two thirds of the time goes into reading the image chunks, one third into writing the JSON.

Training

  • Full fine-tune of Qwen3.5-0.8B (vision tower and decoder; token embeddings frozen), 3 epochs, lr 1e-5, effective batch 16, bf16 autocast with fp32 master weights, on one RTX PRO 6000.
  • Trained in the on-device input format: square 1024 px chunks and plain 1-D positions for all tokens (what LiteRT-LM feeds), instead of Qwen's 2-D image positions.
  • Quantization-aware training: every linear layer of the decoder computes with fake int8 (weights per output channel, activations per token), matching the dynamic int8 kernels on the phone. The GatedDeltaNet decay/beta gates (in_proj_a, in_proj_b) stay float, in training and in the bundle: int8 there made long article lists go missing (24-receipt test: 62 → 77).
  • Augmentation: the author's own receipts are repeated 3× per epoch, and 2/3 of those draws become a random phone-capture variant (slight rotation and perspective, lighting and shadows, blur, noise, JPEG). Text stays readable, so the labels stay valid.
  • Data (dataset v2): about 3,800 training receipts: own German receipt photos plus public receipt datasets (Egyptian / Middle-Eastern receipts and scanned Malaysian receipts). Labels were re-derived with a 27B vision model and then checked against the images by reviewers, including every eval receipt and about 750 suspicious training receipts; 62 receipts with unsure labels were left out. The dataset is not published (it contains private receipts).

Limitations

  • Long receipts (40+ lines) take minutes on a phone CPU and occasionally end in a repetition loop.
  • Faded thermal prints, folds and strong perspective cause digit errors; the model does not check that the article prices add up. A sum check in the app is recommended.
  • Trained mostly on German retail and Egyptian / Middle-Eastern receipts; other countries, handwritten bills and invoices are out of scope.
  • date_time is not normalised; parse it leniently.

License

Apache-2.0, as the base models (Qwen/Qwen3.5-0.8B, Qwen/Qwen3.5-2B, ATH-MaaS/OvisOCR2).

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

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

GPU в ailist

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

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

Подбираем GPU…

Класс архитектуры
Qwen3_5ForCausalLM
Ревизия весов
7cec63e

0 моделей