jina ocr v1
jina-ocr-v1 is an end-to-end document parsing model built on DeepSeek-OCR, using a DeepEncoder vision tower and a 3B-parameter mixture-of-experts decoder with about 570M active parameters per token. It includes a FastMTP speculative decoding head. The repository includes model weights and custom code for loading. Reported scores include 91.14 overall on OmniDocBench v1.6 and 83.4 overall on olmOCR-Bench. It is licensed cc-by-nc-4.0, tagged multilingual, and supports an image-text-to-text pipeline.
At a glance
- Parameters
- 3.37B
- Architecture
- deepseek_vl_v2
- Context length
- 32,768
- License
- cc-by-nc-4.0
- Disk space
- 6.3 GB
- Software
- Transformers
Will it run on your machine?
Save your machine to see a personalized rating and its reasoning.
Add my hardwareBest for
- Document parsing
- Optical character recognition (OCR)
- Multilingual document intelligence
- Vision-language document understanding
- End-to-end document text extraction
Tradeoffs
- License is cc-by-nc-4.0, which restricts commercial use
- The model card states inference: false
- Requires trust_remote_code=True to load custom code
- vLLM requires a one-time architecture registration from deepseek_ocr_mtp.py
- No separate training or serving package is provided
Ways to run it
Transformers · See official guide
Repository-specific command in publisher documentation; confirm dependencies and hardware in the source.
import torch
from PIL import Image
from transformers import AutoModelForCausalLM, AutoProcessor
MODEL_ID = 'jinaai/jina-ocr-v1'
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
processor = AutoProcessor.from_pretrained(MODEL_ID, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
MODEL_ID, dtype=torch.bfloat16, trust_remote_code=True,
).to(device)
image = Image.open('document.png').convert('RGB')
inputs = processor.prepare_ocr_inputs(image, device=device)
output = model.generate(**inputs, max_new_tokens=4096, do_sample=False)
print(processor.decode_ocr(output, inputs['input_ids']))Explore its uses
Keep exploring
Bonsai 2 · 27B
A compressed 27B-class reasoning model with publisher-provided GGUF packs and a dedicated llama.cpp fork for CUDA, Metal, and CPU.
DeepSeek V4.1 Flash
An open-weight model for reasoning, coding, agents, and image understanding. DeepSeek V4.1 Flash combines a 552B backbone with sparse activation and up to one million tokens of context. Choose the original checkpoint or a community uncensored variant below.
Qwen3.8
Explore 4 versions of Qwen3.8. Compare model sizes, packages, hardware requirements, and available setups.