/ Модель

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

Лицензия
Gemma
Архитектура
gemma3 · dense
Базовая модель
gemma-3-4b-it
Библиотека
transformers
Опубликована
5 окт 2026

gemma3_4b_deedexp

Генерация текстаТекст → текст

Дообученная Gemma 3 4B IT извлекает сведения о сторонах, недвижимости и регистрации из OCR-текста документов о сделках с недвижимостью в Карнатаке и возвращает их в JSON.

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

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

anandkaman/gemma3_4b_deedexp — дообученная модель Gemma 3 4B IT для извлечения структурированных сведений из OCR-текста документов о регистрации сделок с недвижимостью в штате Карнатака, Индия. Она принимает текст на каннада и английском и формирует JSON с данными покупателей и продавцов, сведениями об объекте, сумме сделки, регистрационном сборе, дате регистрации и регистрационном офисе. Обучение включало адаптацию к текстам зарегистрированных документов, этап объяснения ролей и полей, а затем обучение извлечению по нескольким стилям запросов.

Модель рассчитана на обработку одного документа за запрос; для документов с большим числом сторон предусмотрен режим разделения извлечения на части. В предварительной оценке на 78 документах JSON был корректным во всех случаях в версии v9.3, однако длинные списки продавцов могут обрываться, регистрационный сбор иногда извлекается с ошибкой порядка величины, а несовершеннолетние продавцы, действующие через опекуна, могут быть пропущены. Ошибки OCR переносятся в извлечённые имена и идентификаторы, поэтому результаты и личные данные следует проверять. Модель дообучена на документах Карнатаки; другие штаты и типы документов не входят в область применения. Лицензия — Gemma License.

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

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

Ограничения

Качество зависит от OCR; длинные списки продавцов могут обрываться, регистрационный сбор иногда извлекается с ошибкой, а несовершеннолетние продавцы через опекуна могут быть пропущены. Модель предназначена для документов о передаче недвижимости в Карнатаке; другие штаты и типы документов вне её области применения.

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

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

Открыть на Hugging Face

gemma3_4b_deedexp

This model reads the OCR text of a Karnataka property registration document (Kannada + English) and returns one JSON record: the buyers, the sellers, property details and document details.

It is a fine-tune of Gemma 3 4B-it, trained in three stages:

  1. domain-adaptive pre-training on registered-document text;
  2. an instruction "bridge" stage that teaches what the document wording means (roles, IDs, dates);
  3. supervised extraction training, with seven prompt styles, each also in a two-request split form (parties / transaction + property).

Current version: v9.3, for testing. Feedback and failure cases are welcome. Contact: kamananand98@gmail.com.

Versions

main always holds the latest release. Every release is also a git tag, so you can pin one: AutoModelForCausalLM.from_pretrained("anandkaman/gemma3_4b_deedexp", revision="v9.3").

tagdatemain change
v9.32026-10-08micro prompt as default; split mode (parties / transaction + property) for many-party documents; corrected reference labels
v82026-10-05first public release

This repo was named gemma3_4b_deedexp_v8 before 2026-10-08; the old name redirects here.

Output schema

{
 "buyer_details":  [{"name", "gender": "Male|Female|null", "father_name", "aadhaar_number", "pan_card_number", "address", "state"}],
 "seller_details": [ ...same fields... ],
 "property_details": {"schedule_c_property_address", "state", "sale_consideration", "registration_fee", "paid_in_cash": "yes|no"},
 "document_details": {"transaction_date": "YYYY-MM-DD", "registration_office"}
}

Main rules the model was trained on. The full list is in prompts/short_full.txt.

  • Roles come from what the document says each party does (sells or receives), not from the order they are printed in. Confirming and consenting parties are never sellers. Minors listed as their own numbered party are parties.
  • transaction_date = the document's registration date from the Sub-Registrar endorsement, not the execution date.
  • father_name of a married woman = her husband's name when her own description gives it (W/o).
  • IDs are copied only for the person they are printed for. Invalid, masked or partial IDs → null. IDs are never repaired. An address keeps a PIN only if it is printed in that person's own address.
  • Missing or unreadable → null. The model is trained to leave a value out rather than guess it.

How to call

One request per document: a single user message = the prompt text + "\n\n" + the document's OCR text. Use greedy decoding and up to 5,000 new tokens.

prompt filestatus
prompts/micro_full.txtdefault (about 350 tokens). The best single prompt in our tests and the one used for every number on this card.
prompts/micro_parties.txt + prompts/micro_txn_property.txtsplit mode, recommended for documents with many parties. Two requests on the same OCR text: the first returns buyer_details + seller_details, the second property_details + document_details; merge the two objects.
prompts/short_full.txt, prompts/medium_full.txtalternatives. Longer wordings of the same rules; they scored a little below micro.

All prompts are part of the training data. Use them exactly as written: the model was trained on that text, so edited prompts can lower accuracy.

pip install "transformers>=4.50" torch accelerate
python inference.py document_ocr.txt                    # default: micro prompt, one request
python inference.py document_ocr.txt --split            # split mode, two requests (many parties)
python inference.py document_ocr.txt --prompt short     # alternative single prompt

Use the tokenizer's chat template as provided. It already starts with <bos>, so do not add a second one. Training inputs were up to 20,480 tokens (prompt + OCR + answer).

Evaluation (preliminary)

The test set is 78 held-out documents from many Sub-Registrar offices, with corrected reference labels. Default micro prompt, one request per document. Scores are F1 or exact match, in %:

fieldv9.3 (micro)v8 (short)
valid JSON78 / 7877 / 78
transaction_date98.798.1
sale_consideration98.798.1
paid_in_cash98.791.6
buyer count exact98.794.9
aadhaar_number97.096.2
registration_office96.294.2
registration_fee96.296.8
pan_card_number95.291.9
names89.490.9
father_name89.288.3
seller count exact88.588.5

Both columns are scored against the same corrected labels, so they differ from the numbers on the v8 card.

Split mode on documents with many parties. On the 34 held-out documents with the most parties (185 buyers and sellers, up to 11 sellers in one document), split mode found 168 of the 185 parties, against 163 for the single request. It got the exact seller and buyer count on 64 of 68 lists, against 61, and it was never worse on any document. In one document the single request also listed a heading as a seller; split mode did not. Price, fee, cash and date were the same in both modes.

Known weak spots:

  • Long seller lists: a single request can stop the list early. Use split mode for these documents.
  • Registration fee in Indian digit grouping (8,00,000.00) is sometimes read ten times too large (2 of 78). Check the fee against the document.
  • Minors who sell through a guardian are sometimes left out.

Limitations and responsible use

  • The model works on OCR text, so OCR errors in IDs or names carry through. Always check extracted IDs against the document.
  • It was trained on Karnataka property transfer documents. Other document types (agreements, mortgages, partitions) and other states are out of scope.
  • The training documents contain personal data. Use the model only on documents you are authorised to process, and do not use it to look up or reconstruct information about individuals.

License

This model is a derivative of Gemma 3 and is distributed under the Gemma Terms of Use. Use is subject to the Gemma Prohibited Use Policy.

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей