AIAny
AI Image2024
Icon for item

olmOCR

Turns PDFs and images into clean Markdown with a 7B vision-language model, keeping tables, equations, handwriting, and multi-column reading order while removing headers and footers. Runs on one 12GB+ GPU at about 1/32 the cost of GPT-4o APIs.

Introduction

Most of the world's high-value text — scientific papers, government filings, scanned books — is locked in PDFs that classic OCR mangles into garbled, out-of-order fragments. The reframing here is to treat OCR as a vision-language task: a fine-tuned 7B VLM reads each page the way a person would, then emits clean Markdown in natural reading order. The payoff is as much economic as technical — at roughly $200 per million pages, parsing whole document corpora for LLM training becomes financially realistic, about 1/32 the cost of pushing the same pages through GPT-4o.

What Sets It Apart
  • Document-anchoring prompt: it pairs the rendered page image with text and metadata already inside the PDF, so the model grounds its output instead of hallucinating — meaning fewer dropped equations and mangled tables on messy scans.
  • Reading-order aware: multi-column layouts, figures and insets come out in the order a human reads them, and repeating headers/footers are stripped — so the text is usable as training data without heavy post-cleaning.
  • Built to scale: the toolkit drives SGLang/vLLM from a single GPU up to hundreds, so the same code runs a laptop experiment or a corpus-wide job.
  • Open end to end: Apache-2.0 weights, toolkit, and the olmOCR-Bench eval are all public; v0.4 scores 82.4 on that benchmark, competitive with closed pipelines.
Who It's For

Great fit if you are building LLM datasets, RAG corpora, or research archives and need millions of pages parsed locally without per-call API fees. Look elsewhere if you have no GPU (it needs ~12GB+ VRAM), only a handful of clean digital-born PDFs where a plain text extractor is faster and simpler, or you want a turnkey hosted API rather than a self-run toolkit.

Information

  • Websitegithub.com
  • OrganizationsAllen Institute for AI (Ai2)
  • AuthorsAllen Institute for AI (AI2), AllenNLP team
  • Published date2024/09/17

Categories

More Items

Hugging Face
AI Image2026

Repackages MOSS-Image model files for ComfyUI, providing int8 and bf16 checkpoints, a Qwen3.5 text encoder and FLUX.2 VAEs to enable layout-aware text-to-image generation with long prompts and bilingual text rendering.

Hugging Face
AI Image2026

Generates images from natural-language prompts or structured JSON layouts, fine-tuned from a 5B backbone to improve bilingual long-text rendering and layout control; runs via a Diffusers pipeline and expects PyTorch + an NVIDIA GPU.

Hugging Face
AI Image2026

Runs the FLUX 3 Image Klein single-file checkpoint in ComfyUI for text-to-image generation and instruction-driven image editing with up to ten reference images, bounding-box layout control, and distilled/base variants; requires a prompt upsampler.