Model reference · open weights

Qianfan-OCR

LLMs baidu Vision + text 1 build Open weights 76k dl/mo

Qianfan-OCR is an open-weight language model from Baidu. Qianfan-OCR (BF16) weighs 9.5 GB; the smallest configuration that runs it is RTX 4060 Ti 16 GB.

  • Qianfan-OCR is a 4.7B parameter end-to-end document intelligence model developed by Baidu that unifies document parsing, layout analysis, and understanding within a single vision-language architecture.
  • It supports 192 languages and performs direct image-to-Markdown conversion, table extraction, and key information extraction.
  • The model features a 32K context length extendable to 131K and is released under the Apache 2.0 license.

Summary of the baidu/Qianfan-OCR model card, 2026-10-01

What it is

Released byBaidu
Released2026-03-18
Parameters4.7B
VRAM9.5 GB for the weights

What it runs on

Memory and cards for Qianfan-OCR (BF16)

9.5 GBweights, file size
147 MBcache per 1K tokens
2.0 GBruntime overhead, at least
32,768 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB——92911.6 GB
RTX 4060 Ti 16 GB3—26K15.4 GB
RTX 3090 24 GB92all 32K23.4 GB
RTX 4090 24 GB92all 32K23.4 GB
RTX 5090 32 GB164all 32K31.0 GB
L40S 48 GB266all 32K44.0 GB
A100 80 GB5513all 32K78.2 GB
H100 80 GB5112all 32K78.1 GB
RTX PRO 6000 Blackwell 96 GB6416all 32K93.8 GB
DGX Spark (GB10) 128 GB unified7518all 32K107 GB
H200 141 GB10125all 32K138 GB
B200 180 GB13233all 32K176 GB
2× RTX 3060 12 GB
tensor parallel
82all 32K11.6 GB a card
2× RTX 4060 Ti 16 GB
tensor parallel
143all 32K15.4 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
112.7 GB16.3 GB
517.5 GB35.6 GB
821.1 GB50.1 GB
1630.8 GB88.8 GB
3250.1 GB166 GB
6488.8 GB321 GB

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

From the model card

What Baidu says about Qianfan-OCR

Read the model card

🤖 Demo | 📄 Technical Report | 🖥️ Qianfan Platform | 💻 GitHub | 🧩 Skill

Introduction

Qianfan-OCR is a 4B-parameter end-to-end document intelligence model developed by the Baidu Qianfan Team. It unifies document parsing, layout analysis, and document understanding within a single vision-language architecture.

Unlike traditional multi-stage OCR pipelines that chain separate layout detection, text recognition, and language comprehension modules, Qianfan-OCR performs direct image-to-Markdown conversion and supports a broad range of prompt-driven tasks — from structured document parsing and table extraction to chart understanding, document question answering, and key information extraction — all within one model.

Key Highlights

  • 🏆 #1 End-to-End Model on OmniDocBench v1.5 — Achieves 93.12 overall score, surpassing DeepSeek-OCR-v2 (91.09), Gemini-3 Pro (90.33), and all other end-to-end models
  • 🏆 #1 End-to-End Model on OlmOCR Bench — Scores 79.8
  • 🏆 #1 on Key Information Extraction — Overall mean score of 87.9 across five public KIE benchmarks, surpassing Gemini-3.1-Pro, Gemini-3-Pro, Seed-2.0, and Qwen3-VL-235B-A22B
  • 🧠 Layout-as-Thought — An innovative optional thinking phase that recovers explicit layout analysis within the end-to-end paradigm via ⟨think⟩ tokens
  • 🌍 192 Languages — Multilingual OCR support across diverse scripts
  • ⚡ Efficient Deployment — Achieves 1.024 PPS (pages per second) with W8A8 quantization on a single A100 GPU

Architecture

Qianfan-OCR adopts the multimodal bridging architecture from Qianfan-VL, consisting of three core components:

ComponentDetails
Vision EncoderQianfan-ViT, 24 Transformer layers, AnyResolution design (up to 4K), 256 visual tokens per 448×448 tile, max 4,096 tokens per image
Language ModelQwen3-4B (3.6B non-embedding), 36 layers, 2560 hidden dim, GQA (32 query / 8 KV heads), 32K context (extendable to 131K)
Cross-Modal Adapter2-layer MLP with GELU activation, projecting from 1024-dim to 2560-dim

Layout-as-Thought

A key innovation is Layout-as-Thought: an optional thinking phase triggered by ⟨think⟩ tokens, where the model generates structured layout representations (bounding boxes, element types, reading order) before producing final outputs.

This mechanism serves two purposes:

  1. Functional: Recovers layout analysis capability within the end-to-end paradigm — users obtain structured layout results directly
  2. Enhancement: Provides targeted accuracy improvements on documents with complex layouts, cluttered elements, or non-standard reading orders

When to use: Enable thinking for heterogeneous pages with mixed element types (exam papers, technical reports, newspapers). Disable for homogeneous documents (single-column text, simple forms) for better results and lower latency.

Benchmark Results

OmniDocBench v1.5 (Document Parsing)

ModelTypeOverall ↑TextEdit ↓FormulaCDM ↑TableTEDs ↑TableTEDss ↑R-orderEdit ↓
Qianfan-OCR (Ours)End-to-end93.120.04192.4391.0293.850.049
DeepSeek-OCR-v2End-to-end91.090.04890.3187.7592.060.057
Gemini-3 ProEnd-to-end90.330.06589.1888.2890.290.071
Qwen3-VL-235BEnd-to-end89.150.06988.1486.2190.550.068
dots.ocrEnd-to-end88.410.04883.2286.7890.620.053
PaddleOCR-VL 1.5Pipeline94.500.03594.2192.7695.790.042

General OCR Benchmarks

ModelOCRBenchOCRBenchv2 (en/zh)CCOCR-multilanCCOCR-overall
Qianfan-OCR (Ours)88056.0 / 60.7776.779.3
Qwen3-VL-4B87360.68 / 59.1374.276.5
MonkeyOCR65521.78 / 38.9143.835.2
DeepSeek-OCR45915.98 / 38.3132.527.6

Document Understanding

BenchmarkQianfan-OCRQwen3-VL-4BQwen3-VL-2B
DocVQA92.894.992.7
CharXiv_DQ94.081.869.7
CharXiv_RQ85.248.541.3
ChartQA88.183.378.3
ChartQAPro42.936.224.5
ChartBench85.974.973.2
TextVQA80.081.879.9
OCRVQA66.864.759.3

💡 Two-stage OCR+LLM systems score 0.0 on CharXiv (both DQ and RQ), demonstrating that chart structures discarded during text extraction are essential for reasoning.

Key Information Extraction (KIE)

ModelOverallOCRBench KIEOCRBenchv2 KIE (en)OCRBenchv2 KIE (zh)CCOCR KIENanonets KIE (F1)
Qianfan-OCR (Ours)87.995.082.882.392.886.5
Qwen3-VL-235B-A22B84.294.085.662.995.183.8
Qwen3-4B-VL83.589.082.171.391.683.3
Gemini-3.1-Pro79.296.087.863.472.576.1

Inference Throughput

ModelPPS (pages/sec)
Qianfan-OCR (W8A8)1.024
Qianfan-OCR (W16A16)0.503
MinerU 2.51.057
MonkeyOCR-pro-1.2B0.673
Dots OCR0.352

All benchmarks on a single NVIDIA A100 GPU with vLLM 0.10.2.

Supported Tasks

Qianfan-OCR supports a comprehensive set of document intelligence tasks through prompt-driven control:

Task CategorySpecific Tasks
Document ParsingImage-to-Markdown conversion, multi-page parsing, structured output (JSON/HTML)
Layout AnalysisBounding box detection, element type classification (25 categories), reading

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

Benchmarks

Reported results

As published on the model card: the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
Document ParsingOmniDocBench v1.5Overall Score93.120
OCROlmOCR BenchOverall Score79.800
OCROCRBenchScore880
© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms