datalab-to / chandra

huggingface.co
Total runs: 113.5K
24-hour runs: 0
7-day runs: -30.4K
30-day runs: -14.6K
Model's Last Updated: March 26 2026
image-text-to-text

Introduction of chandra

Model Details of chandra

Chandra

Chandra is an OCR model that outputs markdown, HTML, and JSON. It is highly accurate at extracting text from images and PDFs, while preserving layout information.

You can try Chandra in the free playground here , or at a hosted API here .

Features
  • Convert documents to markdown, html, or json with detailed layout information
  • Good handwriting support
  • Reconstructs forms accurately, including checkboxes
  • Good support for tables, math, and complex layouts
  • Extracts images and diagrams, with captions and structured data
  • Support for 40+ languages
Quickstart

The easiest way to start is with the CLI tools:

pip install chandra-ocr

# With VLLM
chandra_vllm
chandra input.pdf ./output

# With HuggingFace
chandra input.pdf ./output --method hf

# Interactive streamlit app
chandra_app
Benchmarks

We used the olmocr benchmark, which seems to be the most reliable current OCR benchmark in our testing.

Model ArXiv Old Scans Math Tables Old Scans Headers and Footers Multi column Long tiny text Base Overall Source
Datalab Chandra v0.1.0 82.2 80.3 88.0 50.4 90.8 81.2 92.3 99.9 83.1 ± 0.9 Own benchmarks
Datalab Marker v1.10.0 83.8 69.7 74.8 32.3 86.6 79.4 85.7 99.6 76.5 ± 1.0 Own benchmarks
Mistral OCR API 77.2 67.5 60.6 29.3 93.6 71.3 77.1 99.4 72.0 ± 1.1 olmocr repo
Deepseek OCR 75.2 72.3 79.7 33.3 96.1 66.7 80.1 99.7 75.4 ± 1.0 Own benchmarks
GPT-4o (Anchored) 53.5 74.5 70.0 40.7 93.8 69.3 60.6 96.8 69.9 ± 1.1 olmocr repo
Gemini Flash 2 (Anchored) 54.5 56.1 72.1 34.2 64.7 61.5 71.5 95.6 63.8 ± 1.2 olmocr repo
Qwen 3 VL 70.2 75.1 45.6 37.5 89.1 62.1 43.0 94.3 64.6 ± 1.1 Own benchmarks
olmOCR v0.3.0 78.6 79.9 72.9 43.9 95.1 77.3 81.2 98.9 78.5 ± 1.1 olmocr repo
dots.ocr 82.1 64.2 88.3 40.9 94.1 82.4 81.2 99.5 79.1 ± 1.0 dots.ocr repo
Examples
Type Name Link
Tables Water Damage Form View
Tables 10K Filing View
Forms Handwritten Form View
Forms Lease Agreement View
Handwriting Doctor Note View
Handwriting Math Homework View
Books Geography Textbook View
Books Exercise Problems View
Math Attention Diagram View
Math Worksheet View
Math EGA Page View
Newspapers New York Times View
Newspapers LA Times View
Other Transcript View
Other Flowchart View
Usage
Installation
pip install chandra-ocr
From code

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

# Run chandra_vllm to start a vLLM server first if you pass vllm, else pass hf
# you can also start your own vllm server with the datalab-to/chandra model
manager = InferenceManager(method="vllm")
batch = [
    BatchInputItem(
        image=PIL_IMAGE,
        prompt_type="ocr_layout"
    )
]
result = manager.generate(batch)[0]
print(result.markdown)
With transformers
from transformers import AutoModel, AutoProcessor
from chandra.model.hf import generate_hf
from chandra.model.schema import BatchInputItem
from chandra.output import parse_markdown

model = AutoModel.from_pretrained("datalab-to/chandra").cuda()
model.processor = AutoProcessor.from_pretrained("datalab-to/chandra")

batch = [
    BatchInputItem(
        image=PIL_IMAGE,
        prompt_type="ocr_layout"
    )
]

result = generate_hf(batch, model)[0]
markdown = parse_markdown(result.raw)

Credits

Thank you to the following open source projects:

Runs of datalab-to chandra on huggingface.co

113.5K
Total runs
0
24-hour runs
-9.4K
3-day runs
-30.4K
7-day runs
-14.6K
30-day runs

More Information About chandra huggingface.co Model

More chandra license Visit here:

https://choosealicense.com/licenses/openrail

chandra huggingface.co

chandra huggingface.co is an AI model on huggingface.co that provides chandra's model effect (), which can be used instantly with this datalab-to chandra model. huggingface.co supports a free trial of the chandra model, and also provides paid use of the chandra. Support call chandra model through api, including Node.js, Python, http.

datalab-to chandra online free

chandra huggingface.co is an online trial and call api platform, which integrates chandra's modeling effects, including api services, and provides a free online trial of chandra, you can try chandra online for free by clicking the link below.

datalab-to chandra online free url in huggingface.co:

https://huggingface.co/datalab-to/chandra

chandra install

chandra is an open source model from GitHub that offers a free installation service, and any user can find chandra on GitHub to install. At the same time, huggingface.co provides the effect of chandra install, users can directly use chandra installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

chandra install url in huggingface.co:

https://huggingface.co/datalab-to/chandra

Url of chandra

Provider of chandra huggingface.co

datalab-to
ORGANIZATIONS

Other API from datalab-to

huggingface.co

Total runs: 158.5K
Run Growth: 6.1K
Growth Rate: 3.87%
Updated:June 19 2026
huggingface.co

Total runs: 2.2K
Run Growth: 292
Growth Rate: 13.14%
Updated:January 29 2025