talira

Open toolkit that turns PDFs and scans into clean Markdown with a 7B vision model

open sourceApache-2.0self-hostablefree

olmOCR is Ai2's open source toolkit for converting PDFs and PNG or JPEG document images into clean Markdown with a natural reading order, even across figures, multi-column layouts and insets. It handles equations, tables and handwriting, and removes headers and footers. It runs a 7B-parameter vision language model (olmOCR-2, fine-tuned from Qwen2.5-VL-7B and released under Apache 2.0) through vLLM on your own NVIDIA GPU with at least 12 GB of memory, or sends pages to any OpenAI-compatible server that hosts the model, such as DeepInfra. It's built for converting millions of pages, at under $200 per million by Ai2's figures, and ships Docker images, training code and olmOCR-Bench, a benchmark of over 7,000 test cases across 1,400 documents. A free online demo is at olmocr.allenai.org.

Problems it solves

  • convert a large pile of scanned PDFs into clean text for an LLM dataset
  • extract tables, equations and multi-column text from PDFs in the right reading order
  • run document OCR on my own GPU instead of paying per page for an API

Features

  • PDF, PNG and JPEG to Markdown
  • equations, tables and handwriting
  • header and footer removal
  • natural reading order across columns and figures
  • local GPU inference through vLLM
  • remote inference through OpenAI-compatible servers
  • Docker images
  • olmOCR-Bench benchmark
  • training code for the model

Limitations

  • Local inference needs a recent NVIDIA GPU with at least 12 GB of GPU memory and about 30 GB of free disk space.1

Alternatives

The same job

These do what olmOCR does.

  1. Mistral OCR Mistral AI's document OCR model and API: PDFs and images to structured Markdown, priced per page
  2. Marker Convert PDF to markdown + JSON quickly with high accuracy
  3. Docling Get your documents ready for gen AI
  4. LlamaParse Parse transforms messy documents into AI-ready data at scale
  5. Unstructured Converts PDFs, Office files, HTML and email into structured data for LLM pipelines
  6. Reducto The agentic document platform for parsing, extraction, splitting, classification, and editing.

Compare olmOCR with the top 3