allenai /olmocr

Toolkit for linearizing PDFs for LLM datasets/training

★ 19,823⑂ 1,656👁 106⑃ 180● 298▤ 44
PythonApache-2.0Created 2024-09-17
下载:v0.4.27v0.4.27 ↓0.4.272026-03-12
+1
日增长
19,823
stars
1,656
forks
106
watchers
180
prs
298
issues
44
releases

README

A toolkit for converting PDFs and other image-based document formats into clean, readable, plain text format.

Try the online demo: https://olmocr.allenai.org/

Features:
 - Convert PDF, PNG, and JPEG based documents into clean Markdown
 - Support for equations, tables, handwriting, and complex formatting
 - Automatically removes headers and footers
 - Convert into text with a natural reading order, even in the presence of
   figures, multi-column layouts, and insets
 - Efficient, less than $200 USD per million pages converted
 - (Based on a 7B parameter VLM, so it requires a GPU)

 News
 - October 21, 2025 - v0.4.0 - New model release, boosts olmOCR-bench score by ~4 points using synthetic data and introduces RL training.
 - August 13, 2025 - v0.3.0 - New model release, fixes auto-rotation detection, and hallucinations on blank documents.
 - July 24, 2025 - v0.2.1 - New model release, scores 3 points higher on olmOCR-Bench, also runs significantly faster because it's default FP8, and needs much fewer retries per document.
 - July 23, 2025 - v0.2.0 - New cleaned up trainer code, makes it much simpler to train olmOCR models yourself.
 - June 17, 2025 - v0.1.75 - Switch from sglang to vllm based inference pipeline, updated docker image to CUDA 12.8.
 - May 23, 2025 - v0.1.70 - Official docker support and images are now available! See Docker usage
 - May 19, 2025 - v0.1.68 - olmOCR-Bench launch, scoring 77.4. Launch includes 2 point performance boost in olmOCR pipeline due to bug fixes with prompts.
 - Mar 17, 2025 - v0.1.60 - Performance improvements due to better temperature selection in sampling.
 - Feb 25, 2025 - v0.1.58 -  Initial public launch and demo.

 Benchmark

olmOCR-Bench:
We also ship a comprehensive benchmark suite covering over 7,000 test cases across 1,400 documents to help measure performance of OCR systems. 


    
        
            
            ArXiv
            Oldscansmath
            Tables
            Oldscans
            Headers&footers
            Multicolumn
            Longtinytext
            Base
            Overall
        
    
    
        
            Mistral OCR API
            77.2
            67.5
            60.6
            29.3
            93.6
            71.3
            77.1
            99.4
            72.0±1.1
        
        
            Marker 1.10.1
            83.8
            66.8
            72.9
            33.5
            86.6
            80.0
            85.7
            99.3
            76.1±1.1
        
        
            MinerU 2.5.4
            76.6
            54.6
            84.9
            33.7
            96.6
            78.2
            83.5
            93.7
            75.2±1.1
        
        
            DeepSeek-OCR
            77.2
            73.6
            80.2
            33.3
            96.1
            66.4
            79.4
            99.8
            75.7±1.0
        
        
            Nanonets-OCR2-3B
            75.4
            46.1
            86.8
      

Top issues

Latest release

v0.4.27 v0.4.27 2026-03-12
What's new



 Commits

1e139a5 Bump version to v0.4.27 for release
3c0ff52 Version bump
19a1b90 Formatting fixes
7eba43c Merge pull request 441 from allenai/gpu-deps
302d37c Fixing a few lint errors, and queue bug in long queues
7277bfc Updating readme
7c00ac7 Fixing issue in tagging pipeline

Snapshot: 2026-11-16T09:23:14Z · Data license Apache-2.0 · JSON