Model reference · open weights

sarashina2.2-ocr

LLMs sbintuitions Image→text 1 build Open weights 1k dl/mo

sarashina2.2-ocr is an open-weight language model from sbintuitions. sarashina2.2-ocr (BF16) weighs 7.8 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • Sarashina2.2-OCR is a 3.9B parameter image-to-text model developed by SB Intuitions for parsing Japanese and English documents.
  • It converts complex layouts, tables, and mathematical formulas into structured Markdown, HTML, and LaTeX formats.
  • The model supports a 16,384 token context length and is released under the MIT license.

Summary of the sbintuitions/sarashina2.2-ocr model card, 2026-10-01

What it is

Released bysbintuitions
Released2026-03-22
Parameters3.9B
VRAM7.8 GB for the weights

What it runs on

Memory and cards for sarashina2.2-ocr (BF16)

7.8 GBweights, file size
164 MBcache per 1K tokens
1.9 GBruntime overhead, at least
16,384 tokenscontext max
CardRequests at onceContext maxMemory
8K each
RTX 3060 12 GB111K11.6 GB
RTX 4060 Ti 16 GB4all 16K15.4 GB
RTX 3090 24 GB10all 16K23.4 GB
RTX 4090 24 GB10all 16K23.4 GB
RTX 5090 32 GB15all 16K31.0 GB
L40S 48 GB25all 16K44.0 GB
A100 80 GB50all 16K78.2 GB
H100 80 GB48all 16K78.1 GB
RTX PRO 6000 Blackwell 96 GB59all 16K93.8 GB
DGX Spark (GB10) 128 GB unified70all 16K107 GB
H200 141 GB92all 16K138 GB
B200 180 GB120all 16K176 GB
2× RTX 3060 12 GB
tensor parallel
8all 16K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
14all 16K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each
111.1 GB
516.5 GB
820.5 GB
1631.2 GB
3252.7 GB
6495.6 GB

One card, with vLLM's small-card settings.

From the model card

What sbintuitions says about sarashina2.2-ocr

Read the model card

About the model

Sarashina2.2-OCR is an end-to-end 3B-parameter OCR model developed by SB Intuitions, specifically tailored for parsing Japanese and English documents.

The model is refined by human preference optimization to enable intuitive document parsing, and excels at converting a wide range of documents—including vertical Japanese text—into Markdown format while maintaining a natural reading order.

Key Features

Beyond standard text extraction, Sarashina2.2-OCR reconstructs documents into naturally structured Markdown, accurately converting complex elements into the following formats:

  • 📊 Tables: Reconstructs tabular layouts into plain HTML format.

  • 📐 Math Formulas: Transcribes mathematical equations directly into standard LaTeX format.

  • 🖼️ Graphics: Detects visual components (e.g., images, charts) and indicates their positions using bounding boxes in the format <bbox>[(x1, y1), (x2, y2)]</bbox>, using normalized integer coordinates (0–1000) with a top-left origin.

Training Summary

Sarashina2.2-OCR integrates a SigLIP2-based vision encoder with the Sarashina2.2-3B-Instruct language model, and was trained through the following pipeline:

1. Pre-training on general image-text dataset:

To build basic image understanding and prepare for high-resolution document parsing to boost downstream OCR performance, we expanded Sarashina2.2-Vision-3B's pre-training into the following 4-substage pipeline, upscaling the resolution to ~2.5M pixels:

  1. 🔌 Projector warmup: bridging the gap between the embedding spaces of the LLM and vision encoder.

  2. 👁️ Vision encoder pre-training: enhancing image comprehension, especially for understanding Japan-specific images and text.

  3. 🔥 Full-parameter pre-training: enhancing the model's unified understanding of images and language using interleaved data.

  4. 🔍 High-resolution continual pre-training: expanding the maximum resolution to capture fine-grained details and dense text in complex documents.

We also mixed in a large amount of OCR and grounding data from the start to build basic document understanding early on.

2. Supervised fine-tuning (SFT) on large-scale OCR dataset:

We fine-tuned the model on diverse Japanese and English documents so it can recognize complex layouts and output naturally structured Markdown. We heavily used synthetic datasets alongside open OCR data, keeping the resolution at ~2.5M pixels.

3. Preference Optimization with manually annotated OCR datasets:

Finally, we applied Mixed Preference Optimization (MPO) to achieve more natural reading order understanding for documents with complex layouts. We identified two major challenges when applying it to long-context OCR tasks:

  1. 💸 High human-annotation costs: High-quality OCR data with dense, complex layouts requires a lot of time to annotate manually, making large-scale data collection difficult.

  2. 🧩 Lack of effective data for late-stage errors: A common approach to prepare negative examples is to sample directly from the model. In long-context OCR tasks, an early mistake in reading order can corrupt the entire remaining prediction, making it difficult to obtain preference pairs that target late-stage errors.

To overcome these, we augmented the negative examples of preference pairs by feeding the model with the first N ground-truth paragraphs and making the model complete the rest of the content. For each human-annotated sample, we applied this to every paragraph at position N to obtain multiple negative examples.

Benchmark Results

Sarashina2.2-OCR delivers highly competitive overall performance among the end-to-end OCR models, achieving the best scores on VJRODa despite its compact 3B-parameter size, while demonstrating strong capabilities in the Math and Table categories of olmOCR-bench.

VJRODa

VJRODa evaluates OCR capabilities for Japanese documents, particularly focusing on complex layouts and vertical text reading order.

ModelCER(↓)BLEU(↑)
gpt-5-mini-2025-08-0772.423.6
Qwen3.5-4B(non-thinking)86.147.8
KARAKURI VL 32B Instruct 250728014.1
LightOnOCR-2-1B15828.9
dots.ocr40.171.5
Sarashina2.2-OCR22.679.9

olmOCR-bench

A comprehensive benchmark designed to evaluate document parsing capabilities across diverse and complex structures, such as mathematical equations, multi-column layouts, and tables.

ModelarXiv MathHeaders FootersLong Tiny TextMulti ColumnOld ScansOld Scans MathTable TestsOverall
LightOnOCR-2-1B0.8900.2040.8890.8480.4180.8650.8870.773
dots.ocr0.6740.8490.9210.8030.4110.6030.8230.722
Sarashina2.2-OCR0.7780.2910.8460.7520.3230.5280.8290.683

Usage with Transformers

pip install transformers==4.57.1 torch torchvision pillow protobuf sentencepiece accelerate
import requests
from PIL import Image
from transformers import AutoModelForCausalLM, AutoProcessor, TextStreamer, set_seed

# Load model and processor
model_path = "sbintuitions/sarashina2.2-ocr"
processor = AutoProcessor.from_pretrained(model_path, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_path,
    device_map="cuda",
    torch_dtype="auto",
    trust_remote_code=True,
)
set_seed(42)

# Prepare inputs
image_url = "https://huggingface.co/sbintuitions/sarashina2.2-ocr/resolve/main/assets/sample1.jpeg"
image = Image.open(requests.get(image_url, stream=True).raw

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms