An Indian document page with a table being read by a vision model

How to Use Patram 1.5: Playground, Hugging Face and vLLM Setup

The quickest way to learn how to use Patram 1.5 is to start in BharatGen’s Playground: upload one document page, ask a question about it, and check the answer against the page. Patram 1.5 is BharatGen’s document-AI model, released on 26 November 2026. It reads scans, forms, tables, charts and mixed-language pages as images, then parses them, answers questions, extracts key-value data or transcribes on request. This guide covers the three documented routes — Playground, Hugging Face and vLLM — plus the gated-access step, the waitlist-only API, and the benchmark caveats worth knowing before any download.

This is a research-based guide. Every step follows BharatGen’s Hugging Face model card for bharatgenai/Patram1.5-7B, read in full on 29 November 2026, with launch coverage from 26 November for context. No local run of the model sits behind these steps, so timings and hardware guidance stay limited to what the card itself states.

What Patram 1.5 is, and what changed on 26 November

BharatGen is an IIT Bombay-anchored consortium backed by the Department of Science and Technology and the IndiaAI Mission under MeitY. Its Patram family began with Patram 1 in June 2025, according to launch coverage. Patram 1.5 arrived on 26 November 2026 with two headline additions, recorded in the model card’s news line: OCR 3.0 and abstention.

The model reads a page as an image and works from the page itself, rather than running a separate OCR step first. BharatGen lists six capabilities on the card: document parsing into text, Markdown, HTML or JSON (including handwritten, scene and code-mixed pages); element parsing for nested tables, charts, formulas and diagrams; question answering across one or more images, including multi-step questions; key-value extraction as JSON, using either a supplied schema or the labels as printed, with normalised units; OCR 3.0; and abstention. One capability in that list deserves emphasis because it changes how answers should be read: the model can decline to answer when the page does not contain the answer.

Under the hood, the card lists a vision encoder (google/siglip2-so400m-patch14-384), a language decoder (allenai/Olmo-3-7B-Instruct), a context window of 32,768 tokens, and an Apache 2.0 licence. One number needs care. Press coverage and the model name say 7B, while the card’s technical-details table says 7.8B. Treat the size as “7B (7.8B in the model card’s technical table)” until BharatGen settles on one figure.

Before you start: pick one of three routes

The three routes need different things in place, so choose before installing anything.

RouteNeedsBest for
PlaygroundA browser; a document or image to uploadFirst look, single-page questions
Hugging FaceHugging Face account, gated access granted, HF_TOKEN, Python stack belowScripts and batch jobs on own hardware
vLLMDocker, about 16 GB of disk for the downloadServing the model behind a local API-style endpoint

Two access facts shape every route. First, the Hugging Face repository is gated: access conditions on the model page must be accepted and a token supplied before the weights download. Launch coverage describes the release as open weights on Hugging Face, and the Apache 2.0 licence fits that description, but the download itself still passes through the gate. Second, there is no public API key to request today. The card says, “To get API access, join the API waitlist.” Any plan that needs a hosted API has to wait for that waitlist to open into access.

Readers who already run models on their own machines will find the shape familiar. The local-models workflow in run AI models locally with Ollama covers a different set of models, but the habit of checking download size and hardware before starting applies here too — with one gap noted below: the Patram card publishes no minimum GPU or VRAM figure.

Route 1: try the Patram 1.5 Playground first (no code)

The model card points readers to the Playground with the line “Try Patram 1.5 now in the playground.” Launch coverage describes the flow in plain terms: upload a document or image, then ask questions about it or request extraction through chat. BharatGen’s own positioning, as reported in the press, names KYC documents, bank statements, medical reports and government circulars as example inputs. Those examples come from BharatGen; treat them as intended use cases, not as accuracy promises for any specific document type.

  1. Open the Playground link from the Patram1.5-7B model card.
  2. Upload one document or image — a single clear page makes checking the output easier.
  3. Ask a direct question about the page, or request a specific extraction, such as named fields returned as JSON.
  4. Compare every returned value against the page itself, including table rows and totals.
A document page being uploaded into a chat window for questions
The Playground route needs no code: upload a document or image, then ask questions or request extraction in chat. Illustration created with Muse’s built-in image generator, not a screenshot.

The card publishes no Playground limits, pricing or sign-in requirements. Check the Playground for current access terms before uploading anything sensitive, and keep personal documents out of any hosted demo until its data-handling terms are clear. A page with invented sample data answers the “does this work for my layout” question just as well.

Route 2: how to use Patram 1.5 on Hugging Face

The code route starts at the gate. Accept the access conditions on the model page, create a Hugging Face token, and set it as HF_TOKEN in the environment. The card’s tested stack pins exact versions, so copy the install line as written:

pip install torch==2.10.0 torchvision transformers==4.57.6 accelerate einops pillow huggingface_hub
A terminal window beside a document page and a model server shape
The code route loads Patram1.5-7B from Hugging Face after gated access is granted, or serves it locally with vLLM. Illustration created with Muse’s built-in image generator, not a screenshot.

Loading uses AutoModelForImageTextToText with AutoProcessor, with trust_remote_code=True and bfloat16 weights. Generation in the card’s examples uses greedy decoding (do_sample=False), which keeps outputs repeatable for the same input — useful when checking extraction results page by page. The card then runs its bundled examples through a helper:

run_examples(model, processor, MODEL_ID, HF_TOKEN)

That helper processes the sample files under examples/assets/, so a first run confirms the full path — token, download, load, inference — before any custom documents enter the picture. On Apple Silicon, the card directs readers to the PyTorch and Hugging Face install documentation for the platform-specific build. The sample code includes a CUDA-or-CPU device line, so a CPU fallback exists on paper; the card gives no CPU speed figures, and a 7B-class vision model on CPU should be expected to run slowly.

Developers weighing a hosted API against a local model can compare the shape of this route with the code-first approach in the Gemini Decisions API guide. The difference here is ownership: Patram’s weights run on local hardware under Apache 2.0, while the API route for Patram itself remains a waitlist.

Route 3: serve Patram1.5-7B with vLLM

For a serving setup, the card documents a vLLM path. Download the repository first — about 16 GB including the vLLM patch and examples:

hf download bharatgenai/Patram1.5-7B

Then start the server with the bundled launch script, which takes a GPU index, a port and the model path:

bash ./Patram1.5-7B/vllm_patch/launch_vllm.sh 0 8000 ./Patram1.5-7B

Wait for the “Application startup complete” line; the card puts startup at roughly two to three minutes. Confirm the server is answering by listing its models:

curl http://localhost:8000/v1/models

A healthy response lists a model named “patram”. From there, run examples/vllm_examples.py for the card’s serving examples, and stop the container afterwards with docker rm -f followed by the container name. If the Docker bridge network misbehaves, the card documents a HOST_NET=1 workaround for the launch script.

What OCR 3.0 and abstention change in practice

OCR 3.0 is prompt-controlled OCR. Instead of transcribing everything on the page by default, the prompt states which part to read, in what format, with which details and labels, and what to leave out. For a form with a header, a table and a footer note, that control means one request can return the table alone as Markdown while ignoring the surrounding text.

Abstention is the second addition, and it matters for any workflow where a wrong value costs more than a missing one. The model can answer “I don’t know”, or mark a result unclear, when the answer is absent from the page, unreadable, ambiguous, or contradicted elsewhere on the page. In an extraction pipeline, an explicit “unclear” flag routes that page to a human instead of passing a guessed number downstream. BharatGen’s launch blog carries the fuller explanation of both features; the model card is the place to confirm current behaviour.

Benchmarks, languages and limits to know first

BharatGen reports evaluation on PatramBench, its own benchmark of 15 tasks built from Indian documents — 11,828 test items from 8,773 pages, per launch coverage — plus 34 public benchmarks, against 27 models in total (20 vision-language models and 7 OCR or parsing systems). The card is explicit about method: “Every score is from our own run with the same settings. Overall = mean of PatramBench + public, weighted equally. Public benchmarks use English test items only.” Full results sit in the BharatGen blog rather than on the card.

Read those scores as vendor-reported. PatramBench itself had not been released at research time — launch coverage said it would appear on Hugging Face “in the coming days” — and no independent replication was found. Until the benchmark and a third-party run exist, the numbers show how BharatGen measures its own model, not a settled ranking.

Language coverage needs the same care. The card states “English and code-mixed pages”. Press phrasing runs wider (“mixed-language documents”, “English and Indian languages”). For capability claims, the card’s wording is the safer one; anything broader is BharatGen’s positioning as reported in coverage such as Moneycontrol’s 26 November report.

The clearest limitation is hardware guidance, or rather its absence. The card gives a download size (about 16 GB) and tested software versions, but no minimum GPU or VRAM recommendation. Anyone planning a local deployment has to size hardware without an official figure, starting from the model’s 7B-class footprint and the bfloat16 loading in the examples. Combined with the gated download and the waitlist-only API, the practical order of operations writes itself: Playground first, gated download second, serving third.

Which route first?

Start where the feedback loop is shortest. Open the Playground, upload one representative page — a form or table with known values — and ask for a specific extraction. Check every returned field against the page, then try a question the page cannot answer and confirm the model abstains instead of guessing. That single test covers parsing, extraction and abstention in a few minutes, with no download and no token.

If the Playground output holds up, the next step is the gated Hugging Face route: accept the access conditions, set HF_TOKEN, run the card’s examples, and only then move to vLLM serving or join the API waitlist for hosted access. One page in the Playground today decides whether the 16 GB download earns its place.

What is Patram 1.5?

Patram 1.5 is a document-AI model from BharatGen, an IIT Bombay-anchored consortium, released on 26 November 2026. It reads documents as images and can parse pages, answer questions, extract key-value data and transcribe on request. The 1.5 release added OCR 3.0 and abstention, the ability to decline when a page lacks the answer.

How do I try Patram 1.5 without code?

Use the Patram 1.5 Playground linked from the Hugging Face model card. Upload a document or image, then ask questions about it or request extraction through chat. The card publishes no Playground limits or pricing, so check the Playground for current access terms before uploading sensitive documents.

Is Patram 1.5 free to download from Hugging Face?

The weights carry an Apache 2.0 licence, but the Hugging Face repository is gated. Access conditions on the model page must be accepted and an HF_TOKEN supplied before the download starts. Launch coverage calls the release open weights; the gate still applies to the download itself.

What is OCR 3.0 in Patram 1.5?

OCR 3.0 is prompt-controlled OCR, new in the 1.5 release. The prompt states which part of the page to read, in what format, with which details and labels, and what to leave out. It sits alongside abstention, where the model marks an answer unclear instead of guessing when the page lacks it.

Does Patram 1.5 have an API?

Not yet as a public offering. The model card says API access runs through a waitlist: join the API waitlist to request it. Until hosted access opens, the documented routes are the Playground, the gated Hugging Face download, and local serving with vLLM.

Sources: Hugging Face model card, bharatgenai/Patram1.5-7B (read in full 29 Nov 2026; release news 26 Nov 2026); BharatGen launch blog, Introducing Patram 1.5; Moneycontrol, BharatGen launches Patram 1.5 (26 Nov 2026). Last checked Sun 29 Nov 2026 against the Hugging Face model card and 26 Nov launch coverage. Research-based guide; nothing here claims personal testing.

More Guides for Manga Artists