olmOCR: Unlocking Trillions of Tokens in PDFs with Vision Language Models
Paper • 2502.18443 • Published • 13
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
This dataset contains markdown-formatted OCR results from images in davanstrien/newspapers-with-images using olmOCR-2-7B.
imagemarkdowntrainolmOCR-2-7B is a high-quality document OCR model based on Qwen2.5-VL-7B-Instruct, fine-tuned on olmOCR-mix-1025 dataset and optimized with GRPO reinforcement learning.
Key features:
Each row contains:
markdown: Extracted document content in markdown formatolmocr_metadata: JSON with document metadata (language, rotation, table/diagram flags)image: Original document imagemarkdown: Extracted text and structure in markdownolmocr_metadata: Document metadata (primary_language, is_rotation_valid, rotation_correction, is_table, is_diagram)inference_info: Processing metadata (model, script version, timestamp)# Using HF Jobs (recommended)
hf jobs uv run --flavor l4x1 \
-s HF_TOKEN \
https://huggingface.co/datasets/uv-scripts/ocr/raw/main/olmocr2-vllm.py \
davanstrien/newspapers-with-images \
your-username/output-dataset
# Local with GPU
uv run https://huggingface.co/datasets/uv-scripts/ocr/raw/main/olmocr2-vllm.py \
davanstrien/newspapers-with-images \
your-username/output-dataset
@misc{olmocr,
title={{olmOCR: Unlocking Trillions of Tokens in PDFs with Vision Language Models}},
author={Jake Poznanski and Jon Borchardt and Jason Dunkelberger and Regan Huff and Daniel Lin and Aman Rangapur and Christopher Wilhelm and Kyle Lo and Luca Soldaini},
year={2025},
eprint={2502.18443},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2502.18443},
}
Generated with uv-scripts/ocr