[Models](/models)/[Text Extraction](/models?category=text_extraction)/deepseek-ai/DeepSeek-OCR-2

HFOCRapache-2.0

# DeepSeek-OCR-2

by deepseek-ai

3B OCR model with semantic visual reasoning for complex document understanding

1.2Mdl/month

1,083likes

3.4Bparams

[HuggingFace](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2)[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

Identifiers

Model ID

`deepseek-ai/DeepSeek-OCR-2`

## Deploy DeepSeek-OCR-2

Single-tenant

Mixpeek has no managed extractor for this model. On a single-tenant deployment you upload the weights and a custom plugin serves them next to the rest of your pipeline.

[Read the customer-hosted guide](https://mixpeek.com/docs/customer-hosted/overview) [Talk to us about single-tenant](/demo)

## Overview

DeepSeek-OCR-2 is a 3B-parameter vision-language model that reimagines OCR through semantic reasoning rather than traditional top-to-bottom scanning. Its DeepEncoder V2 uses a Causal Visual Flow architecture that dynamically reorders image segments based on semantic understanding, compressing high-resolution documents into just 256-1,120 visual tokens while maintaining near-lossless text and layout fidelity.

On Mixpeek, DeepSeek-OCR-2 is the state-of-the-art choice for document parsing, outperforming larger models on complex layouts, tables, and mixed text-structure documents across 100+ languages. It excels where traditional OCR models struggle: multi-column layouts, nested tables, and documents with interspersed diagrams.

## Architecture

DeepEncoder V2 with Causal Visual Flow architecture replacing rigid top-to-bottom scanning with semantics-aware segment reordering. Vision tokenizer follows SAM design with 80M parameters plus a convolutional layer. 3B-parameter mixture-of-experts decoder for text, layout, and diagram understanding.

## How it runs

.dataflow-R15f6b .df-packets-static{display:none} @media (prefers-reduced-motion: reduce){ .dataflow-R15f6b .df-packets-anim{display:none} .dataflow-R15f6b .df-packets-static{display:inline} .dataflow-R15f6b .df-toggle{display:none} }

Pause

Inference INPUT MODEL OUTPUT Image object Text object DeepSeek-OCR-2 mp.inference Text vector Vector store MVS DeepSeek-OCR-2 → embeddings, indexed for search

DeepSeek-OCR-2 takes image and text, and Mixpeek indexes what it emits.

## Mixpeek SDK Integration

IngestRetrieve

// No extractor parameter takes a Hugging Face model id (checked against
// GET /v1/discovery/extractors, which returns 13), so DeepSeek-OCR-2 runs
// on your side and the output is upserted through POST
// /v1/namespaces/{namespace\_id}/documents/upsert. On Enterprise the other
// path is to upload the weights instead: POST /v1/namespaces/{id}/models
// accepts the huggingface format and a custom plugin loads them.
const res = await fetch(
  "https://api.mixpeek.com/v1/namespaces/ns\_your\_namespace/documents/upsert",
  {
    method: "POST",
    headers: {
      Authorization: "Bearer API\_KEY",
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      collection\_id: "col\_your\_collection",
      documents: \[
        {
          document\_id: "asset-00412",
          // The model produces text, so it lands in payload. Give the
          // collection a text vector index and embed that text to make it
          // searchable rather than only filterable.
          payload: { extracted\_text: modelOutput, source\_key: "archive/2026/asset-00412" },
          vectors: { "text-embedding": embeddingOfModelOutput },
        },
      \],
    }),
  },
);

// Managed alternative, if this exact model is not the requirement:
// universal\_extractor@v1 runs google/gemini-embedding-2
// (3072-d) over a bucket, with no inference of your own.

## Capabilities

*   91.09% on OmniDocBench v1.5 benchmark
*   Semantic visual reasoning instead of spatial scanning
*   256-1,120 visual tokens per page (highly efficient)
*   100+ language support for multilingual documents
*   Strong on complex layouts: tables, formulas, nested structures

## Use Cases on Mixpeek

Enterprise document parsing for contracts, invoices, and financial reports with complex layouts

Scientific paper analysis with formulas, tables, and diagrams

Multilingual document digitization across global content archives

## Benchmarks

Dataset

Metric

Score

Source

OmniDocBench v1.5

Overall Score

91.09%

DeepSeek-OCR-2 release, Jan 2026

OmniDocBench v1.5 (formula)

Recognition Score

90.31%

DeepSeek-OCR-2 release, Jan 2026

Reading Order

Edit Distance

0.057

DeepSeek-OCR-2 release, Jan 2026

## Performance

Input SizeVariable resolution (256-1120 visual tokens per page)

GPU Latency~30ms / page (A100)

GPU Throughput~33 pages/sec (A100)

GPU Memory~6.5 GB

3B params with MoE decoder: highly efficient visual token compression

## Common Pipeline Companions

[

BAAI/bge-large-en-v1.5

Embed extracted text for semantic search

](/model/BAAI/bge-large-en-v1.5)[

microsoft/table-transformer-detection

Table structure detection for hybrid extraction

](/model/microsoft/table-transformer-detection)

## Explore on Mixpeek

[

More Text Extraction models

Compare alternatives in this category

](/models?category=text_extraction)[

Best Document AI Platforms

Hand-picked tools & platforms compared

](/curated-lists/best-document-ai-platforms)[

OCR & Document AI Internals

Deep-dive technical guide

](/guides/ocr-document-ai-internals)[

Feature Extractors

See how Mixpeek runs models as extractors

](/extractors)[

Mixpeek Vector Store

Store & search embeddings at scale

](/mvs)[

Pricing

Usage-based pricing for pipelines

](/pricing)[

All Curated Lists

Compare models, APIs & infrastructure

](/curated-lists)

### Specification

FrameworkHF

Organizationdeepseek-ai

FeatureOCR

Outputtext + bbox

Modalitiesvideo, image, document

RetrieverText-in-Image

Parameters3.4B

Licenseapache-2.0

Downloads/mo1.2M

Likes1,083

[

### Research Paper

DeepSeek-OCR-2 model card

arxiv.org](https://huggingface.co/deepseek-ai/DeepSeek-OCR-2)

### Build a pipeline with DeepSeek-OCR-2

Add this model to a processing pipeline alongside other extractors. Combine with retrieval stages for end-to-end search.

[Run it on your own data, free](https://studio.mixpeek.com/namespaces/create?mode=managed&utm_source=homepage&utm_medium=model_page&utm_campaign=mvs_onramp)

### Alternative Models

[

microsoft/trocr-large-printed

OCR

](/model/microsoft/trocr-large-printed)[

PaddlePaddle/paddleocr

OCR

](/model/PaddlePaddle/paddleocr)[

zai-org/GLM-OCR

OCR

](/model/zai-org/GLM-OCR)[

lightonai/LightOnOCR-2-1B

OCR

](/model/lightonai/LightOnOCR-2-1B)

### Related in Text Extraction

[

microsoft/codebert-base

Code Extraction

](/model/microsoft/codebert-base)[

Salesforce/codet5p-110m-embedding

Code Extraction

](/model/Salesforce/codet5p-110m-embedding)[

nomic-ai/nomic-embed-code

Code Extraction

](/model/nomic-ai/nomic-embed-code)[

Salesforce/SFR-Embedding-Code-2B\_R

Code Extraction

](/model/Salesforce/SFR-Embedding-Code-2B_R)