Project AURIONAI Use-Cases Research & Innovation

DeepSeek-OCR

DeepSeek-OCR is a 3B-parameter open model from DeepSeek that reads document images and turns them into text or Markdown using very few vision tokens, for teams that convert large volumes of pages.

#8 of 10DeepSeekDeepSeekOCR and documentMITModel record

What It Is

DeepSeek-OCR reads an image of a page and writes out its text. With a grounding prompt it can convert a whole document to Markdown, and it can also parse figures, describe images and locate a named item. DeepSeek released it on 20 October 2025 under the title Contexts Optical Compression.

The research question behind it is how much text a few vision tokens can carry. The paper reports about 97% decoding precision when the text is compressed up to 10 times into vision tokens, and about 60% at 20 times. In practice this means a page can be fed to a language model as a small number of image tokens.

The model has about 3 billion parameters in BF16 and is released under the MIT licence. DeepSeek says one A100-40G GPU can process more than 200,000 pages a day. A follow-up, DeepSeek-OCR 2, was announced on 27 January 2026 in a separate repository.

Why It Is Here

Most rated8.29
Most useful3.86
Proven quality3
Runs on ordinary hardware7
Total5.87

1.9M downloads last month, 3.5k likes, 24.1k GitHub stars, 132 fine-tunes.

Its total is 5.87 of 10. Most rated is its strongest score, 8.29, the highest of the OCR models: 1,918,802 Hugging Face downloads last month, 3,462 likes and 24,147 GitHub stars. Runs on ordinary hardware is 7, at 3.34B parameters. Proven quality is only 3: its one comparable result is reported in a paper, not on an independent leaderboard, and that result, 73.99 overall on Real5-OmniDocBench in the PaddleOCR-VL-1.6 paper, is well below newer document parsers. Most useful is 3.86, from 132 fine-tunes and 27 adapters; no AURION use case links to it yet.

Where this comes from
Scores read on 13 Nov 2026. Each runs from 0 to 10; the total weights them 35, 25, 20 and 20 percent.

How It Works

DeepSeek-OCR: From Page Image to Markdown

The model has two parts. The DeepEncoder, about 380 million parameters, turns the image into a few vision tokens. A DeepSeek-3B-MoE decoder, with 570 million parameters active per token, turns those tokens back into text.

Inside the DeepEncoder, an 80M SAM-base encoder first looks at small patches with local attention. A 16 times convolutional compressor then shrinks the tokens: a 1024 by 1024 image gives 4096 patch tokens, cut to 256. A 300M CLIP-large encoder then applies global attention to the short sequence. This keeps memory low on large images.

Users pick a resolution mode: Tiny (512 px, 64 tokens), Small (640 px, 100 tokens), Base (1024 px, 256 tokens), Large (1280 px, 400 tokens) or Gundam, which tiles the page into 640 px crops plus one 1024 px global view. Training data was 70% OCR, 20% general vision and 10% text only, including 30 million PDF pages in about 100 languages.

Where this comes from
Diagram drawn by AURION from its source.

Examples

Paper figure: (a) compression ratio against precision on Fox, (b) OmniDocBench accuracy against vision tokens per page.
Paper figure: (a) compression ratio against precision on Fox, (b) OmniDocBench accuracy against vision tokens per page. Credit: DeepSeek (paper Figure 1). Source
Example from the DeepSeek-OCR README: a page with a geometry figure is converted to text and structure, and the figure itself is parsed ('deep parsing') and redrawn.
Example from the DeepSeek-OCR README: a page with a geometry figure is converted to text and structure, and the figure itself is parsed ('deep parsing') and redrawn. Credit: DeepSeek. Source
Input
<image>\n<|grounding|>Convert the document to markdown.  |  <image>\nFree OCR.  |  <image>\nParse the figure.  |  <image>\nLocate <|ref|>xxxx<|/ref|> in the image.
Output
Markdown with layout grounding, plain text without layout, a parsed figure, or the location of the named item.
Quoted prompts for the main tasks. Credit: DeepSeek README (quoted prompts). Source
Where this comes from
Every picture is published by the developer or in the paper, and credited under it. Outputs of a generation model are labelled as model outputs.

How to Run It

Hardware
Tested on NVIDIA GPUs with CUDA 11.8 and torch 2.6.0, Python 3.12.9. The README reports about 2,500 tokens per second for PDF inference on one A100-40G; the paper reports more than 200,000 pages per day on one A100-40G. Needs flash-attn 2.7.3.
Runtimes
transformersvLLMoMLX
from transformers import AutoModel, AutoTokenizer
import torch
import os
os.environ["CUDA_VISIBLE_DEVICES"] = '0'
model_name = 'deepseek-ai/DeepSeek-OCR'

tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True)
model = AutoModel.from_pretrained(model_name, _attn_implementation='flash_attention_2', trust_remote_code=True, use_safetensors=True)
model = model.eval().cuda().to(torch.bfloat16)

# prompt = "<image>\nFree OCR. "
prompt = "<image>\n<|grounding|>Convert the document to markdown. "
image_file = 'your_image.jpg'
output_path = 'your/output/dir'

res = model.infer(tokenizer, prompt=prompt, image_file=image_file, output_path = output_path, base_size = 1024, image_size = 640, crop_mode=True, save_results = True, test_compress = True)

python from the official source

Where this comes from
From the model card or the official repository.

Licence

MIT

MIT lets anyone use, copy, change, sell and build the model into closed products. The only condition is to keep the copyright notice and licence text. There is no warranty.

The licence text

Benchmarks

OmniDocBench (English), overall edit distance, Gundam mode (795 tokens) (edit distance (lower is better))

DeepSeek-OCR0.127
MinerU2.0 (6790 tokens)0.133
Gemini2.5-Pro0.148
dots.ocr (3949 tokens)0.182
Qwen2.5-VL-72B (3949 tokens)0.214
GOT-OCR2.0 (256 tokens)0.287
vendor-reported, lower is better. Source

OmniDocBench (English), overall edit distance, by DeepSeek-OCR mode (edit distance (lower is better), Small mode, 100 tokens)

DeepSeek-OCR0.221
DeepSeek-OCR Tiny (64 tokens)0.386
DeepSeek-OCR Base (256 tokens)0.137
DeepSeek-OCR Large (400 tokens)0.138
DeepSeek-OCR Gundam (795 tokens)0.127
vendor-reported, lower is better. Source

Fox, 600 to 700 text tokens, 64 vision tokens (10.5x compression) (decoding precision (%))

DeepSeek-OCR96.5
DeepSeek-OCR, 100 vision tokens (6.7x)98.5
vendor-reported. Source

Real5-OmniDocBench, overall (score (higher is better))

DeepSeek-OCR73.99
PaddleOCR-VL-1.6 (0.9B)93.19
Qwen2.5-VL-72B86.92
dots.ocr (3B)86.38
MinerU2.5 (1.2B)85.61
DeepSeek-OCR 2 (3B)73.01
vendor-reported. Source
Where this comes from
Each chart names who ran the test. Vendor-reported means the developer's own figure.

Limitations

  • The paper says precision falls beyond 10 times compression, and long newspaper pages need the Gundam modes; the model has no SFT stage, so it is not a chatbot.
  • An independent study found performance drops from about 90% to 20% when sentences and words are scrambled, so much of its accuracy leans on language priors; it also reports collapse around 10,000 text tokens.
  • Pulse AI (which sells a competing product) found shifting bounding boxes, different outputs across runs, a dropped table column and some invented text on hard documents.
  • A DataCamp tutorial found chart and table output is verbose HTML that needs clean-up, some SMILES strings were invalid, and multilingual pages were slower.

Further Reading

Sources

  1. huggingface.co/deepseek-ai/DeepSeek-OCR https://huggingface.co/deepseek-ai/DeepSeek-OCR
  2. github.com/deepseek-ai/DeepSeek-OCR https://github.com/deepseek-ai/DeepSeek-OCR
  3. arxiv.org/html/2510.18234 https://arxiv.org/html/2510.18234
  4. arxiv.org/abs/2606.03264 https://arxiv.org/abs/2606.03264
  5. arxiv.org/html/2606.03264 https://arxiv.org/html/2606.03264
  6. arxiv.org/abs/2601.03714 https://arxiv.org/abs/2601.03714
  7. runpulse.com/blog/putting-deepseek-ocr-to-the-test https://runpulse.com/blog/putting-deepseek-ocr-to-the-test
  8. datacamp.com/tutorial/deepseek-ocr-hands-on-guide https://www.datacamp.com/tutorial/deepseek-ocr-hands-on-guide

To cite this page: Project AURION, AI Use-Cases Research & Innovation, "DeepSeek-OCR", https://aurion.semai.id/top-10/deepseek-deepseek-ocr/, records of November 2026.