Mindket

Chandra OCR 2

Newversion 1 · updated

Overview

Reads text from images and PDFs and returns markdown, HTML or JSON that keeps the page layout. Handles handwriting, forms, tables and math in 90+ languages, for people who digitize documents.

Chandra OCR 2 is a kit in the Productivity category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.

At a glance

You need
  • Python and pip
  • A GPU for the recommended vLLM route, or torch for the Hugging Face route
  • Room for about 10.6 GB of BF16 weights, or about 2.6 GB at 4-bit as an estimate
Runs in
  • The chandra command line tool, on Windows, macOS or Linux with Python
  • Python programs, through vLLM or the Hugging Face transformers library
  • A free online playground and a hosted API, which the card mentions
Start with
pip install chandra-ocr
chandra_vllm
chandra input.pdf ./output

Platform

WindowsOperating system
macOSOperating system
LinuxOperating system

About

What it is

Chandra OCR 2 is an OCR model from Datalab with 5.3B parameters. It reads images and PDFs and returns the text as markdown, HTML or JSON, along with layout details. It also handles handwriting, forms with checkboxes, tables, math, and pictures or diagrams with captions.

Who it suits

People and teams who turn scans, forms and PDFs into editable, structured text, and developers who feed that text into other tools.

IndustryWho uses itHow they use itExample
Office administrationBack-office staffConvert scanned forms into structured dataA form with checkboxes turned into JSON
PublishingEditorsTurn PDFs into markdown or HTMLA scanned report made editable
ResearchAcademicsExtract tables and math from papersA table pulled out of a PDF
SoftwareDevelopersAdd OCR to a document pipelineA script that processes a folder of PDFs

If your documents already contain clean selectable text, you can skip it.

Where to use it

  • The chandra command line tool, on Windows, macOS or Linux with Python
  • Python programs, through vLLM or the Hugging Face transformers library
  • A free online playground and a hosted API, which the card mentions
Use caseWhoWhat they get back
Document to markdownEditorsText with headings, tables and math preserved
Form readingOperations teamsFields and checkbox states in structured output
HandwritingArchivistsText read from handwritten pages
Image extractionResearchersFigures and diagrams with captions and structured data

How to set it up

  • Python and pip
  • A GPU for the recommended vLLM route, or torch for the Hugging Face route
  • Room for about 10.6 GB of BF16 weights, or about 2.6 GB at 4-bit as an estimate
  1. Install the chandra-ocr package with pip.
  2. For the vLLM route, start the vLLM server with chandra_vllm.
  3. For the Hugging Face route, install the hf extra, which needs torch.
  4. Run the chandra command on a PDF or image and name an output folder.
pip install chandra-ocr

# With vLLM (recommended, easy install)
chandra_vllm
chandra input.pdf ./output

# With HuggingFace (requires torch)
pip install chandra-ocr[hf]
chandra input.pdf ./output --method hf

How to use it

Run the chandra command with an input file and an output folder, or call the model from Python. The vLLM route is the one the card recommends.

from chandra.model import InferenceManager
from chandra.model.schema import BatchInputItem
from PIL import Image

# Start vLLM server first with: chandra_vllm
manager = InferenceManager(method="vllm")
batch = [
    BatchInputItem(
        image=Image.open("document.png"),
        prompt_type="ocr_layout"
    )
]
result = manager.generate(batch)[0]
print(result.markdown)
ToolWhat it does
chandraCommand line tool that converts a file into the chosen output
chandra_vllmStarts the vLLM server the recommended route uses
InferenceManagerPython class that sends batches of images to the model
prompt_type ocr_layoutAsks for text together with its layout

Example

You run chandra on a scanned form called input.pdf and name an output folder. The tool reads the page, keeps its layout, including checkbox states, and writes the content out as markdown, HTML or JSON.

For newcomers and experts

Start with one clean scanned page and the command line route. Check the output against the page before running a whole folder.

The card reports an 85.8% score on the olmocr bench and 77.8% on a multilingual bench. It lists gains in math, tables, wide layouts, captioning and coverage of more than 90 languages. The Hugging Face route needs torch, and vLLM is the faster serving path.

  1. Give it a PDF or image
  2. Model reads text and layout
  3. It rebuilds tables, forms and math
  4. Markdown, HTML or JSON comes out

Good to know

  • License: openrail
  • Cost to run: none named for the local model, and the card also mentions a hosted API
  • Data it reaches: the files you give it, and Hugging Face for the download
  • Not for: plain text files, which need no OCR
Benchmark scores the card reports, in percent
olmocr bench85.8%
Multilingual bench77.8%

README and files

README

Chandra OCR 2

Reads text from images and PDFs and returns markdown, HTML or JSON that keeps the page layout. Handles handwriting, forms, tables and math in 90+ languages, for people who digitize documents.

Made by datalab-to on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.

About

What it is: Chandra OCR 2 is an OCR model from Datalab with 5.3B parameters. It reads images and PDFs and returns the text as markdown, HTML or JSON, along with layout details. It also handles handwriting, forms with checkboxes, tables, math, and pictures or diagrams with captions.

Who it suits: People and teams who turn scans, forms and PDFs into editable, structured text, and developers who feed that text into other tools.

Industry | Who uses it | How they use it | Example
Office administration | Back-office staff | Convert scanned forms into structured data | A form with checkboxes turned into JSON
Publishing | Editors | Turn PDFs into markdown or HTML | A scanned report made editable
Research | Academics | Extract tables and math from papers | A table pulled out of a PDF
Software | Developers | Add OCR to a document pipeline | A script that processes a folder of PDFs

If your documents already contain clean selectable text, you can skip it.

Where to use it:

  • The chandra command line tool, on Windows, macOS or Linux with Python
  • Python programs, through vLLM or the Hugging Face transformers library
  • A free online playground and a hosted API, which the card mentions
Use case | Who | What they get back
Document to markdown | Editors | Text with headings, tables and math preserved
Form reading | Operations teams | Fields and checkbox states in structured output
Handwriting | Archivists | Text read from handwritten pages
Image extraction | Researchers | Figures and diagrams with captions and structured data

How to set it up:

  • Python and pip
  • A GPU for the recommended vLLM route, or torch for the Hugging Face route
  • Room for about 10.6 GB of BF16 weights, or about 2.6 GB at 4-bit as an estimate
  1. Install the chandra-ocr package with pip.
  2. For the vLLM route, start the vLLM server with chandra_vllm.
  3. For the Hugging Face route, install the hf extra, which needs torch.
  4. Run the chandra command on a PDF or image and name an output folder.
pip install chandra-ocr

# With vLLM (recommended, easy install)
chandra_vllm
chandra input.pdf ./output

# With HuggingFace (requires torch)
pip install chandra-ocr[hf]
chandra input.pdf ./output --method hf

How to use it: Run the chandra command with an input file and an output folder, or call the model from Python. The vLLM route is the one the card recommends.

from chandra.model import InferenceManager
from chandra.model.schema import BatchInputItem
from PIL import Image

# Start vLLM server first with: chandra_vllm
manager = InferenceManager(method="vllm")
batch = [
    BatchInputItem(
        image=Image.open("document.png"),
        prompt_type="ocr_layout"
    )
]
result = manager.generate(batch)[0]
print(result.markdown)
Tool | What it does
chandra | Command line tool that converts a file into the chosen output
chandra_vllm | Starts the vLLM server the recommended route uses
InferenceManager | Python class that sends batches of images to the model
prompt_type ocr_layout | Asks for text together with its layout

Example: You run chandra on a scanned form called input.pdf and name an output folder. The tool reads the page, keeps its layout, including checkbox states, and writes the content out as markdown, HTML or JSON.

For newcomers and experts: Start with one clean scanned page and the command line route. Check the output against the page before running a whole folder.

The card reports an 85.8% score on the olmocr bench and 77.8% on a multilingual bench. It lists gains in math, tables, wide layouts, captioning and coverage of more than 90 languages. The Hugging Face route needs torch, and vLLM is the faster serving path.

Give it a PDF or image
Model reads text and layout
It rebuilds tables, forms and math
Markdown, HTML or JSON comes out

Good to know:

  • License: openrail
  • Cost to run: none named for the local model, and the card also mentions a hosted API
  • Data it reaches: the files you give it, and Hugging Face for the download
  • Not for: plain text files, which need no OCR
Title: Benchmark scores the card reports, in percent
olmocr bench: 85.8%
Multilingual bench: 77.8%

On Hugging Face, 13 November 2026

  • Task: image text to text
  • Library: transformers
  • Parameters: 5.3B
  • Weights: about 10.6 GB in BF16; about 2.6 GB at 4-bit (estimate)
  • Formats: Safetensors
  • Downloads in the last 30 days: 1,356,074
  • Likes: 606
  • License: openrail
  • Quantized versions: 46
  • Fine-tunes: 8
  • Tags: transformers, safetensors, qwen3_5, image-text-to-text, markdown, layout, conversational

Links

Get the model

Download its files with Hugging Face's command line:

pip install -U huggingface_hub
hf download datalab-to/chandra-ocr-2

Then follow the usage in its model card. Nothing in this kit runs by itself.

Files
README.md  5 KB

1 file, 5 KB, downloaded as a zip.

What’s new

  • Version 1 · 2026-11-13

Compare with similar

Listed Hugging Face models in the same category that share the most tags with this one.

ProductDownloads, last 30 daysLikesParametersLicenseLast change
Chandra OCR 2 This page1,356,0746065.3Bopenrail
Surya OCR 2.5Shares markdown · qwen3_5 · layout75,03352689Mopenrail
Surya 2.5 GGUFShares markdown · qwen3_5 · layout126,2328589Mopenrail
Rukopys-OCR-4BShares qwen3_5 · image-text-to-text · conversational8674.5Bapache-2.0
MinerU2.5-ProShares image-text-to-text · conversational · transformers37,1791151.2Bapache-2.0
PaddleOCR-VLShares layout · image-text-to-text · safetensors12,7801,685959Mapache-2.0
Numbers as Mindket last read them, on 2026-11-13.

Reviews

No ratings yet

Write a review

No reviews yet.

What people say

Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.

Searched

More from Mindket

See all from Mindket

Huashu Design

alchaincyf · Skill

Turns a one-line request in your AI agent into a finished design: a launch animation, a clickable app prototype, an editable slide deck, an infographic or a se…

New29.4k

Guizang PPT Skill

op7418 · Skill

Skill that makes single-file HTML slide decks, slide illustrations and platform covers in two visual styles, with a presenter mode for rehearsal. For speakers…

New29.8k

Claude Code Skills & Plugins

alirezarezvani · Skill

Adds 411 ready-made skills for Claude Code and other coding agents, grouped by role from engineering and product to marketing, finance and compliance. Installs…

New29.8k

Similar in Productivity

See all in Productivity

Frontend Slides

zarazhangrui · Skill

Builds HTML presentations from scratch or from a PowerPoint file and shows visual style previews to pick from, for people who want web slides with no CSS or Ja…

New32.3k

IPTV

iptv-org · Kit

Collects publicly available live TV channels from many countries into playlists that any video player with live streaming can open. Made for viewers and for de…

New144k

upscaler

uwg · Kit

Holds a set of image upscaling models gathered from the OpenModelDB community, for people who want to enlarge low-resolution pictures with AI on their own comp…

New