Papers
arxiv:2502.18443

olmOCR: Unlocking Trillions of Tokens in PDFs with Vision Language Models

Published on Feb 25, 2025
Authors:
,
,
,
,
,
,
,
,

Abstract

olmOCR is an open-source toolkit using a fine-tuned vision language model to process PDFs into clean text while preserving structure, optimized for large-scale batch processing.

PDF documents have the potential to provide trillions of novel, high-quality tokens for training language models. However, these documents come in a diversity of types with differing formats and visual layouts that pose a challenge when attempting to extract and faithfully represent the underlying content for language model use. We present olmOCR, an open-source Python toolkit for processing PDFs into clean, linearized plain text in natural reading order while preserving structured content like sections, tables, lists, equations, and more. Our toolkit runs a fine-tuned 7B vision language model (VLM) trained on a sample of 260,000 pages from over 100,000 crawled PDFs with diverse properties, including graphics, handwritten text and poor quality scans. olmOCR is optimized for large-scale batch processing, able to scale flexibly to different hardware setups and convert a million PDF pages for only $190 USD. We release all components of olmOCR including VLM weights, data and training code, as well as inference code built on serving frameworks including vLLM and SGLang.

Community

•
This comment has been hidden
•
This comment has been hidden (marked as Off-Topic)

Sign up or log in to comment

Get this paper in your agent:

hf papers read 2502.18443
Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash

Models citing this paper 0

No model linking this paper

Cite arxiv.org/abs/2502.18443 in a model README.md to link it from this page.

Datasets citing this paper 13

Browse 13 datasets citing this paper

Spaces citing this paper 4

Collections including this paper 4