SAVRN
Search Contact SAVRN

Open-weight model · Image and text to text

chandra-ocr-2

by Datalab datalab-to/chandra-ocr-2

Chandra 2 is a state of the art OCR model from Datalab that outputs markdown, HTML, and JSON. It is highly accurate at extracting text from images and PDFs, while preserving layout information.

Parameters5.3B
Context262,144
Weights10.6 GB
Licenseopenrail
AccessOpen weights
Monthly Downloads2.8M

Runs On

What it takes to serve chandra-ocr-2 (5.3B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 10.6 GB 12.7 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 5.3 GB 6.4 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 2.6 GB 3.2 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

By Datalab, published under openrail, revision af93b47dba1b.

Chandra 2 is a state of the art OCR model from Datalab that outputs markdown, HTML, and JSON. It is highly accurate at extracting text from images and PDFs, while preserving layout information.

Try Chandra in the free playground, or use the hosted API for higher accuracy and speed.

What's New in Chandra 2

  • 85.8% olmocr bench score (sota), 77.8% multilingual bench score (12% improvement over Chandra 1)
  • Significant improvements to math, tables, complex layouts
  • Improved layout, especially on wider documents
  • Significantly better image captioning
  • 90+ language support with major accuracy gains

Features

  • Convert documents to markdown, HTML, or JSON with detailed layout information
  • Excellent handwriting support
  • Reconstructs forms accurately, including checkboxes
  • Strong performance with tables, math, and complex layouts
  • Extracts images and diagrams, with captions and structured data
  • Support for 90+ languages

Quickstart

Read the full model card (993 words)

Configuration

Architecture
Qwen3_5ForConditionalGeneration
Context length (tokens)
262,144
Layers
32
Hidden size
2,560
Feed-forward size
9,216
Attention heads
16
Key/value heads
4
Head dimension
256
Vocabulary size
248,320
Model type
qwen3_5

Identity and Version

Repository
datalab-to/chandra-ocr-2
Publisher
Datalab
Task
Image and text to text
Modality
Image and text
Library
transformers
Parameters
5.3B parameters
Languages
ocr, pdf
Revision
af93b47dba1b47b6640c86ccf487ed2260ab9a09
First published
2026-03-16
Last updated
2026-06-26

Files and Weights

17 files, 10.6 GB in total. The weights are 1 file totalling 10.6 GB in safetensors.

Weights1 file · 10.6 GB
Configuration6 files · 7.1 KB
Tokenizer2 files · 20.0 MB
Documentation2 files · 25.9 KB
Other5 files · 685.3 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights10.6 GB 0804568be9f0
.eval_results/olmocrbench.yamlConfiguration1.8 KB
config.jsonConfiguration2.8 KB
generation_config.jsonConfiguration115 B
preprocessor_config.jsonConfiguration482 B
processor_config.jsonConfiguration1.3 KB
video_preprocessor_config.jsonConfiguration614 B
LICENSEDocumentation14.7 KB
README.mdDocumentation11.2 KB
bench.pngOther96.4 KB
chat_template.jinjaOther7.6 KB
datalab-logo.pngOther6.2 KB
handwritten_form.pngOther523.5 KB 5915e7608cf8
multilingual.pngOther51.6 KB
.gitattributesRepository1.6 KB
tokenizer.jsonTokenizer20.0 MB 87a7830d63fc
tokenizer_config.jsonTokenizer16.7 KB

License and Download

License
openrail
Access
Open weights, no gate
Download size
10.6 GB
Download from Datalab

Released by Datalab through its official repository on Hugging Face. Read the license.

Evaluations

Each result is shown as reported, with the conditions its reporter stated. None is a SAVRN measurement. A comparison lines two results up only when their configuration, unit and setup are all stated and identical.

BenchmarkConditionsResultReported byRevisionDate
Delores-Lin/MDPBench Task arMetric arComparison conditions not established 78.2 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task deMetric deComparison conditions not established 86.6 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task digitalMetric digitalComparison conditions not established 87.8 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task enMetric enComparison conditions not established 86.5 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task esMetric esComparison conditions not established 69.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task frMetric frComparison conditions not established 70.3 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task hiMetric hiComparison conditions not established 81.1 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task idMetric idComparison conditions not established 84.6 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task itMetric itComparison conditions not established 87.4 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task jpMetric jpComparison conditions not established 68.8 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task koMetric koComparison conditions not established 80.3 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task latinMetric latinComparison conditions not established 82.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task nlMetric nlComparison conditions not established 82.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task non_latinMetric non_latinComparison conditions not established 76.4 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task overallMetric overallComparison conditions not established 79.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task photographedMetric photographedComparison conditions not established 77.1 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task privateMetric privateComparison conditions not established 82.4 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task ptMetric ptComparison conditions not established 90.7 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task ruMetric ruComparison conditions not established 74 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task thMetric thComparison conditions not established 78.5 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task viMetric viComparison conditions not established 85.6 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task zhMetric zhComparison conditions not established 73.8 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
Delores-Lin/MDPBench Task zh_tMetric zh_tComparison conditions not established 76.3 MDPBench leaderboard
Reported by a third party
Evaluated revision not stated 2026-07-03
allenai/olmOCR-bench Task arxiv_mathMetric arxiv_mathComparison conditions not established 86.9 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task baselineMetric baselineComparison conditions not established 99.9 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task headers_footersMetric headers_footersComparison conditions not established 91.4 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task long_tiny_textMetric long_tiny_textComparison conditions not established 93.7 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task multi_columnMetric multi_columnComparison conditions not established 82.1 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task old_scansMetric old_scansComparison conditions not established 51.1 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task old_scans_mathMetric old_scans_mathComparison conditions not established 89.1 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task overallMetric overallComparison conditions not established 85.8 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
allenai/olmOCR-bench Task table_testsMetric table_testsComparison conditions not established 92.1 Chandra OCR 2 Model Card
Reported by a third party
Evaluated revision not stated 2026-06-26
llamaindex/ParseBench Task chartMetric chartSetup Pipeline name: chandra2_vllmComparison conditions not established 65.1 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task layoutMetric layoutSetup Pipeline name: chandra2_vllmComparison conditions not established 51.2 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task meanMetric meanSetup Pipeline name: chandra2_vllmComparison conditions not established 70.1 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task tableMetric tableSetup Pipeline name: chandra2_vllmComparison conditions not established 89.2 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task text_contentMetric text_contentSetup Pipeline name: chandra2_vllmComparison conditions not established 83.7 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14
llamaindex/ParseBench Task text_formattingMetric text_formattingSetup Pipeline name: chandra2_vllmComparison conditions not established 61.4 ParseBench
Reported by a third party
Evaluated revision not stated 2026-04-14

Memory Requirements

PrecisionWeights in memory
As published10.6 GB
16-bit10.6 GB
8-bit5.3 GB
4-bit2.6 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Compare chandra-ocr-2

Questions About chandra-ocr-2

How much GPU memory does chandra-ocr-2 need?

About 12.7 GB at 16-bit and 3.2 GB at 4-bit: the weights (5.3B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run chandra-ocr-2 on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use chandra-ocr-2 commercially?

Yes, with conditions. chandra-ocr-2 is released under Open RAIL License. Open RAIL licenses permit use, including commercial use, subject to the use-based restrictions listed in the license, which must be passed on to anyone who receives the model or a derivative.

What is chandra-ocr-2's context length?

262,144 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Image and text to text

Qwen3.8-Flash-Next-4bit-paged

GREENBITAI

Expert-paged build of Vontra/Qwen3.8-Flash-Next-MLX-4bit. The weights that are read a fraction at a time live in their own containers, so a machine loads what it needs rather than all Total 105.46 GiB. Of that, 103.94 GiB is the source build, whose bytes moved into containers rather than being copied, and 1.52 GiB is the draft head, which no published build of this model carries. Where the weights fit they are filled from experts.bin and the model runs the stock path at stock speed; where they do not, they stream from disk. Reading the machine decides that, not a flag. To override that: GBXPAGING=off holds the experts resident, GBXPLE=off holds the n-gram table resident. Checked at build…

Open weights other 5.4B parameters 262,144 tokens mlx

Model · Image and text to text

vllm-translategemma-4b-it

Infomaniak Network SA

This is a modified version of google/translategemma-4b-it optimized for deployment with vLLM. The original TranslateGemma model requires a structured payload with dedicated sourcelangcode and targetlangcode fields: However, vLLM does not support these custom content parameters. To maintain compatibility, the chat template has been modified to encode language codes directly in the message content using a delimiter-based format: Format: >>{sourcelang} >>{targetlang} >>{texttotranslate} If you need to provide a custom prompt input The original model uses the new Transformers RoPE configuration format with separate attention type settings: This has been simplified for vLLM compatibility: The…

Open weights gemma 5B parameters 131,072 tokens transformers

Model · Image and text to text

Qwen3.5-4B

Qwen

Over recent months, we have intensified our focus on developing foundation models that deliver exceptional utility and performance. Qwen3.5 represents a significant leap forward, integrating breakthroughs in multimodal learning, architectural efficiency, reinforcement learning scale, and global accessibility to empower developers and enterprises with unprecedented capability and efficiency. For more details, please refer to our blog post Qwen3.5. WMT24++: a harder subset of WMT24 after difficulty labeling and rebalancing; we report the averaged scores on 55 languages using XCOMET-XXL. Empty cells (--) indicate scores not yet available or not applicable. Empty cells (--) indicate scores not…

Open weights apache-2.0 4.7B parameters 262,144 tokens transformers

Model · Image and text to text

Omni-Edu-4B

Hao Liang

This model is a fine-tuned version of Qwen/Qwen3.5-4B-Base on the Omni-Edu-70K dataset. The following hyperparameters were used during training: - learningrate: 5e-06 - trainbatchsize: 1 - evalbatchsize: 8 - distributedtype: multi-GPU - numdevices: 8 - gradientaccumulationsteps: 8 - totaltrainbatchsize: 64 - totalevalbatchsize: 64 - lrschedulertype: cosine - lrschedulerwarmupsteps: 0.1 - numepochs: 3.0 - Transformers 5.2.0 - Pytorch 2.10.0 - Datasets 4.0.0 - Tokenizers 0.22.2

Open weights other 4.5B parameters 262,144 tokens transformers

Model · Image and text to text

Qwen3-VL-4B-Instruct

Qwen

Meet Qwen3-VL — the most powerful vision-language model in the Qwen series to date. This generation delivers comprehensive upgrades across the board: superior text understanding & generation, deeper visual perception & reasoning, extended context length, enhanced spatial and video dynamics comprehension, and stronger agent interaction capabilities. Available in Dense and MoE architectures that scale from edge to cloud, with Instruct and reasoning‑enhanced Thinking editions for flexible, on‑demand deployment. Text Understanding on par with pure LLMs: Seamless text–vision fusion for lossless, unified comprehension. 1. Interleaved-MRoPE: Full‑frequency allocation over time, width, and height…

Open weights apache-2.0 4.4B parameters 262,144 tokens transformers

Model · Image and text to text

Huihui-Qwen3.6-27B-abliterated-AWQ-MTP

Shawn Wei

This is an uncensored version of Qwen/Qwen3.6-27B created with abliteration (see remove-refusals-with-transformers to know more about it). This is a crude, proof-of-concept implementation to remove refusals from an LLM model without using TransformerLens. - AWQ Marlin kernel supported (auto-converted by vLLM at runtime) - MTP speculative decoding supported out of the box - 110+ tok/s on a single A800 80GB (vLLM 0.21.0, MTP enabled, fp8 KV cache) - Risk of Sensitive or Controversial Outputs: This model’s safety filtering has been significantly reduced, potentially generating sensitive, controversial, or inappropriate content. Users should exercise caution and rigorously review generated…

Open weights apache-2.0 6.3B parameters 262,144 tokens transformers