7,250 Downloads Updated 9 months ago
ollama run richardyoung/olmocr2:7b-q8
State-of-the-art OCR (Optical Character Recognition) vision-language model, packaged for Ollama. Based on allenai/olmOCR-2-7B-1025, it transcribes text from documents, PDFs, handwriting, tables, charts, equations, and screenshots into clean, structured output.
olmocr2 is a vision-language model fine-tuned specifically for document understanding and optical character recognition. It takes an image (a scanned page, a photo of a document, a screenshot) and returns the text it contains, preserving structure such as tables, headings, and mathematical notation.
It is built on Ai2โs olmOCR-2-7B-1025, which fine-tunes Qwen2.5-VL-7B-Instruct on the olmOCR dataset and further refines it with reinforcement learning to handle hard cases like equations and complex tables. This Ollama build ships a Q8_0 (8-bit) quantization for high-quality local inference.
| Benchmark | Score |
|---|---|
| olmOCR-Bench | 82.4 |
Score as reported for the upstream allenai/olmOCR-2-7B-1025 model on olmOCR-Bench. Quantization (Q8_0) may produce small deviations from the full-precision baseline.
| Tag | Size | BPW | Notes |
|---|---|---|---|
7b-q8 |
9.5GB | ~8.5 (Q8_0) | Default. 8B-param VLM, high-quality 8-bit quantization. |
Only the 7b-q8 tag is published. Pulling richardyoung/olmocr2 resolves to this tag.
Pull the model:
ollama pull richardyoung/olmocr2
Run OCR on an image (multimodal input):
ollama run richardyoung/olmocr2 "Transcribe all text from this image." ./document.png
Via the API:
curl http://localhost:11434/api/generate -d '{
"model": "richardyoung/olmocr2",
"prompt": "Extract all text from this document.",
"images": ["<base64-encoded-image>"]
}'
allenai/olmOCR-2-7B-1025 (fine-tune of Qwen2.5-VL-7B-Instruct).num_ctx is 4096 and can be raised at runtime.<|im_start|> / <|im_end|>).OCR output may contain errors, omissions, or misreadings, especially with low-quality scans, unusual fonts, dense tables, handwriting, or complex mathematical notation. Always verify critical text against the source before relying on it. Do not use the output for high-stakes decisions without human review. The model is provided as-is, without warranty of accuracy or fitness for any particular purpose.
olmOCR-2-7B-1025 model and the olmOCR project.Qwen2.5-VL-7B-Instruct base model.Licensed under Apache 2.0, in accordance with Ai2โs Responsible Use Guidelines.
Built & maintained by Richard Young ยท DeepNeuro