olmOCR
Open toolkit to linearize PDFs for LLM training.
Working when we checked on .
What is olmOCR?
olmOCR converts PDFs, PNGs, and JPEGs of document pages into clean, readable plain text or Markdown. It is aimed at developers and researchers building LLM training datasets or processing document archives. The toolkit, built on a 7B parameter vision-language model, handles equations, tables, handwriting, multi-column layouts, and insets, automatically removes headers and footers, and preserves natural reading order. It is open source from the Allen Institute for AI, with Docker support, a bench suite, and an online demo.
olmOCR pricing
Pricing model: Free
Free and open source
olmOCR pros
- Converts PDF, PNG, and JPEG documents into clean Markdown
- Handles equations, tables, handwriting, and complex formatting
- Automatically removes headers and footers and preserves reading order
- Efficient at less than $200 USD per million pages converted
- Open source with Docker images and online demo available
- Includes olmOCR-Bench for scoring and a trainer for training models yourself
olmOCR cons
- Requires a GPU to run since it is based on a 7B parameter VLM
- Self-hosted toolkit, not a managed cloud service
- No official pricing or commercial support plans documented for the tool itself
Frequently asked questions about olmOCR
What does olmOCR do?
It converts PDFs and other image-based document formats (PNG, JPEG) into clean, readable, plain text or Markdown for uses like LLM dataset creation.
Who is olmOCR for?
It is designed for developers and researchers who need to linearize PDFs and document images into text, such as for LLM training datasets.
What document features does it support?
It supports equations, tables, handwriting, and complex formatting, and can produce text with natural reading order even with figures, multi-column layouts, and insets.
Does it clean up page furniture like headers and footers?
Yes, olmOCR automatically removes headers and footers from documents during conversion.
What hardware is required?
The tool is based on a 7B parameter vision-language model, so it requires a GPU to run inference.
How efficient is it?
According to the repository, conversion costs less than $200 USD per million pages.
Is there an online demo?
Yes, a demo is available at https://olmocr.allenai.org/.
Is olmOCR free and open source?
Yes, it is an open-source toolkit from the Allen Institute for AI, released under the same license as OLMo and available on GitHub and Hugging Face.
Can I run it with Docker?
Yes, official Docker support and images have been available since v0.1.70, with CUDA 12.8-based images.
Can I train or evaluate olmOCR models myself?
Yes, the repository includes cleaned-up trainer code for training olmOCR models and olmOCR-Bench for scoring document OCR performance.