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 Model2026

Diffusion-based generative model for scene and video synthesis, providing full Diffusers checkpoints and scene LoRA for fast adaptation. Includes Stage‑1 nano (1.3B) and pro (5B) variants and modular transformer/VAE components.

Hugging Face
AI Image2026

Applies or repositions directional sunlight in outdoor images by using a LoRA trained for Flux2Klein 9B to match a reference sun elevation and rotation. Workflow uses an overcast intermediate and a sphere (ball) reference; includes a ComfyUI node and Blender scene for rendering the reference.

Hugging Face
AI Image2026

Provides 1,503 Krea 2 style LoRAs (original safetensors + ComfyUI builds) trained on fal.ai, each with a short trigger phrase and downloadable weights for quick style transfer or further retraining.