LLM.co

Three open-source OCR contenders — dots.ocr, LightOnOCR-2-1B, and olmOCR 2 — go head-to-head for private RAG pipelines, with layout faithfulness and throughput revealing more than raw character accuracy ever could.

Show Notes

Choosing an OCR front end for a private document pipeline is rarely about which model reads characters most accurately — it's about which one preserves the structural logic of the page. This episode of LLM.co digs into the current generation of open-weight document parsers and benchmarks them against the layout-aware criteria that actually determine RAG quality. The full analysis behind the episode is covered in this open-source OCR comparison on the LLM.co blog.

The episode walks through the OmniDocBench 1.5 leaderboard and what it reveals about four contenders — dots.ocr, LightOnOCR-2-1B, olmOCR 2, and general-purpose vision LLMs — across several dimensions that text-only benchmarks miss entirely:

  • Why reading-order matters most: A model can score well on character accuracy while silently destroying the reading order of a two-column document — a failure mode that produces confident but nonsensical RAG answers.
  • dots.ocr (1.7B, MIT license): Handles layout detection, text recognition, formula parsing, and table extraction in a single forward pass, collapsing what was typically a four-model ingestion chain into one — the recommended default for multilingual or complex-layout corpora.
  • LightOnOCR-2-1B (Apache 2.0): Optimized for throughput at 3.3 pages per second on a single H100 — and viable on L40S and A6000 hardware — making it the right design target when the primary constraint is a large ingestion backlog of mostly English documents.
  • olmOCR 2: Built on a Qwen2.5-VL 7B base and trained with verifiable rewards via Group Relative Policy Optimization, it closes most of the benchmark gap with purpose-built parsers — though its 7B footprint means it needs a dedicated GPU in production.
  • General-purpose vision LLMs: Qwen2.5-VL, InternVL, and Llama 3.2 Vision score respectably overall but show meaningful drops in table structure and reading-order accuracy, reflecting that they were never purpose-built for document parsing.
  • The hosted-vs-on-prem cost trap: Hosted alternatives like Mistral OCR offer competitive per-page pricing, but for regulated workloads the compliance cost of a third-party processor eliminates that apparent economy — the reason purpose-built private multi-document RAG pipelines remain the architecture of record for sensitive document corpora.

The episode also lays out two practical GPU topologies — one for a single business unit running a compact LLM appliance, one for an enterprise routing complex layouts through a secondary model selected by a layout classifier — and closes with a forward look at verifiable reward training spreading from olmOCR 2 into the dots.ocr and LightOnOCR lineages over the next year. For more on the hardware side of private LLM deployments, see the related episode Beyond NVIDIA: Which GPU Alternatives Are Actually Ready for On-Prem LLMs.

LLM.co

hardware.co

What is LLM.co?

Private and custom large language models — the build, the boundaries and the bill. Fine-tuning versus retrieval, running models in your own environment, evaluation you can actually trust, data governance, and the questions to ask before a vendor answers them for you.

Each episode takes one decision a team is facing — whether your problem needs a custom model at all, how to evaluate output without fooling yourself, what "private" has to mean contractually — and works it through concretely. Written for engineering and data leaders putting a model into production. Five or six minutes, one idea, no demos.

Topics include fine-tuning versus retrieval, self-hosted and private deployment, evaluation you can trust, prompt and context design, data governance and retention, cost and latency tradeoffs, and what "private" has to mean contractually.

Produced by LLM.co, private and custom large language models. Full details, services and further reading at https://llm.co