llamaindex/OCRia-1
LlamaIndex released OCRia-1, a 4B vision-language model designed for document parsing and OCR. The model generates Markdown output from page images, converting tabular data into HTML, handling nested headers, and extracting chart data points directly into tables. Unoptimized BF16 weights and usage examples are available on Hugging Face for local loading.
The 4B parameter vision-language model OCRia-1 converts document page images directly into Markdown text and HTML tables without relying on external layout detectors or text layers. It excels at complex document elements, including long or irregular financial tables, visual chart data extraction, stylistic formatting, LaTeX formulas, specialized tags for structural elements, and converting diagrams into Mermaid format. In benchmark evaluations, the model achieved leading positions among open-weight architectures, scoring 85.2 on ParseBench 2 (seventh of 61) and 84.7 on ParseBench 1 (second of 158), while also placing first on several specialized tabular and PDF benchmarks. Charts are converted to structured HTML tables, earning an 82.5 score on ParseBench 1 charts compared to 69.1 for the closest open-weight competitor. While this repository contains raw BF16 weights, the version powering LlamaParse achieves tenfold speed increases using custom kernels, speculative decoding, and quantization. Developers can run the model locally using GGUF builds via llama.cpp or Ollama, or deploy it on GPU servers using vLLM 0.30 or Hugging Face Transformers. Requests require single page images ideally scaled near 4.1 megapixels, with thinking features disabled to maintain output formatting.
README
llamaindex/OCRia-1 View on Hugging Face
Loading the README from Hugging Face…