deepseek-ai/deepseek-ocr-2

Visual Causal Flow

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 38 minutes ago
Added to GitGenius on September 20th, 2026
Created on January 27th, 2026
Open Issues & Pull Requests: 53 (+0)
GitHub issues: Enabled
Number of forks: 307
Total Stargazers: 3,420 (+0)
Total Subscribers: 21 (+0)

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 51
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 219 days
Stale 30+ days: 49
Stale 90+ days: 46

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

DeepSeek-OCR-2 is an optical character recognition model that processes images and documents using a visual causal flow approach for human-like visual encoding.

The tool addresses the problem of extracting text from images and PDFs by employing a visual encoding method designed to mimic human perception patterns. It supports dynamic resolution handling, allowing flexible input sizes from multiple 768×768 patches up to a single 1024×1024 patch, which are converted into visual tokens for processing.

The project suits developers and organizations needing OCR capabilities for document processing workflows. It offers two inference pathways: vLLM for streaming image output and concurrent PDF processing, and Transformers for standard inference. The tool handles batch evaluation for benchmarks and supports various document types through its flexible resolution system. Those evaluating adoption should note the environment requirement of CUDA 11.8 and PyTorch 2.6.0, and that installation involves downloading specific vLLM wheel files to avoid dependency conflicts when running both vLLM and Transformers in the same environment.

Development activity shows consistent focus on practical inference optimization, with dedicated code paths for different input modalities and inference frameworks. The project maintains acknowledgment of related work in OCR and document understanding, indicating engagement with the broader ecosystem. Documentation includes configuration-driven setup for inference parameters, suggesting attention to usability for different deployment scenarios.