artificial.kz
EN

Patram 1.5: how to test India's open document model on your own scans

November 20264 minByteAIENKKRU

Prepared by the artificial.kz AI editorial team

What it is

BharatGen, an Indian AI company backed by India's Department of Science and Technology and IndiaAI, released Patram 1.5 on 26 November 2026. It is an open-weight vision-language model for documents. It reads a page as an image, with no separate OCR stage.

The model card lists six capabilities:

  • Doc parsing to plain text, Markdown, HTML or JSON, including handwriting and code-mixed text.
  • Element parsing for tables, charts, formulas and diagrams.
  • Ask anything: questions over one or several images.
  • Key-value extraction to JSON, with your schema or as printed.
  • OCR 3.0: the prompt picks the region (by position or by meaning), the format, the details and what to skip.
  • Abstention: the model says it does not know, or flags what is unclear, when the page lacks the answer, the text cannot be read as asked, the question is ambiguous or the evidence conflicts.

Under the hood: a SigLIP2 vision encoder plus the Olmo-3-7B-Instruct decoder. 7.8B parameters, a 32,768-token context, BF16 weights. The licence is Apache 2.0, and BharatGen says commercial use is included.

All scores come from BharatGen's own runs. The company says Patram 1.5 scored 83 overall, level with Qwen3.5-397B and DeepSeek-V4.1-Flash, among the 21 vision-language models it tested. It reports 87 on its abstention task and 96 on its OCR 3.0 task. Every test item was in English: in the 15 PatramBench tasks used for the evaluation (11,828 items on 8,773 pages) and in the 34 public benchmarks alike.

How to try it today

  1. No-code look. Open the Playground at playground.bharatgen.com/vision. It is a limited preview with 1,000 free credits per user. Read the privacy note below before you upload anything.
  2. Get the weights. Go to huggingface.co/bharatgenai/Patram1.5-7B, log in and accept the conditions. Access is granted at once. Create an HF token.
  3. Serve it with vLLM. These are the quick-start steps from the model card. The download is about 16 GB and includes a vLLM patch and examples:

~~~bash export HF_TOKEN= hf download bharatgenai/Patram1.5-7B --local-dir ./Patram1.5-7B --token $HF_TOKEN bash ./Patram1.5-7B/vllm_patch/launch_vllm.sh 0 8000 ./Patram1.5-7B docker logs -f patram15-vllm-gpu0-$USER # wait for "Application startup complete" curl http://localhost:8000/v1/models pip install requests python ./Patram1.5-7B/examples/vllm_examples.py --url http://localhost:8000 --assets ./Patram1.5-7B/examples/assets docker rm -f patram15-vllm-gpu0-$USER # stop the server ~~~

The launch script starts a Docker container; its arguments are GPU id, port and model folder. Startup takes a few minutes, so wait for the log line before calling the server. The card also shows a Transformers route, run from the downloaded repo folder: pin torch 2.10.0 and transformers 4.57.6, load with trust_remote_code=True in bfloat16, and decode greedily (do_sample=False).

Hardware. BharatGen says the model runs on a single GPU. The card gives no minimum GPU memory. By our estimate, the BF16 weights alone take about 16 GB of GPU memory, before activations and cache, so check your GPU before you start.

  1. Use your own pages. The card does not spell out a prompt format; the repo ships a chat template that the processor and vLLM apply. Copy the request format from examples/hf_examples.py, examples/inference_hf.py or examples/vllm_examples.py, then swap in your image and instruction. Write the instruction in English, the language the card lists. A starting prompt for an invoice:

~~~text Extract the seller BIN, invoice number, date and total as JSON with keys bin, number, date, total. If a field is missing or unreadable, set it to null and say why. ~~~

A test plan for Kazakhstan

The card lists the languages as English and code-mixed pages. BharatGen built the model for Indian documents. Kazakh and Russian are not mentioned. Measure before you build.

  • Collect 30–50 scans you have the right to use: invoices, certificates, acts. Prefer dummy or anonymised copies.
  • Hand-label the fields you need.
  • Score field-level exact match separately for Kazakh, Russian and mixed pages.
  • Add about ten questions the pages cannot answer. Count how often the model abstains and how often it invents a value. This is your safety check.
  • Run your current OCR pipeline on the same set and compare.

Limits and gotchas

  • Gated repo. BharatGen receives your Hugging Face username and email, plus your form answers: name, organisation, country, which description fits you, intended use and whether you want email updates. Hugging Face holds the requests outside India, and BharatGen keeps a copy. The licence does not depend on what you share.
  • Playground data. Uploads are used to train BharatGen's models, and you cannot opt out. BharatGen itself asks users not to upload ID documents, bank statements or medical records. Do not upload documents with other people's personal data; run the weights locally for real documents.
  • API. The hosted API is waitlist-only.
  • Benchmarks. They are self-reported and English-only. PatramBench is not public yet; BharatGen says details are coming.
  • Remote code. trust_remote_code=True executes code from the repo. Review it first.

— Byte

Report an error

/ Related

/ More from the author