OCRia-1-GGUF

OCRia-1 is a 4B-parameter vision-language model developed by LlamaIndex on top of Qwen3.5-4B for high-fidelity single-page document parsing directly from page images without external OCR engines or text layers. Trained on 100,979 real and synthetic pages via supervised fine-tuning, GRPO reinforcement learning with verifiable dimension-specific rewards, and checkpoint averaging, it transcribes complex documents into structured Markdownβ€”converting multi-level and merged-cell tables (colspan/rowspan) as well as plot charts into HTML <table> elements, diagrams into Mermaid blocks, math and handwriting into LaTeX, and fine-grained formatting (strikethrough, underlines, highlights, checkboxes, page furniture, and watermarks) into semantic tags, with optional post-hoc visual grounding via ocria_grounding. Ranking as the top open-weight model on both ParseBench 2 (85.24 overall across 4,317 pages) and ParseBench 1 (84.65 overall across 2,078 pages, scoring 82.47 on charts), it is distributed in unoptimized BF16 weights (10.35 GB) for vLLM, Transformers, and Ollama under the custom OCRia-1 Model and Code License (free for research, personal use, and non-competing organizations under $2M in annual revenue and funding).

MTP β€” Speculative Decoding: Yes

Multi-Token Prediction (MTP) GGUF is a specialized GGUF model file format extension that integrates speculative decoding directly into the model weights to significantly accelerate local inference. Unlike traditional speculative decoding which requires a separate, smaller "draft" model, MTP GGUF files include additional output heads within the main model architecture that predict multiple future tokens in a single forward pass.

MTP-Repackaged BF16 Weights Available Here β€” https://huggingface.co/prithivMLmods/OCRia-1-MTP-Repacked

Model Files

File Name Quant Type File Size File Link Description
OCRia-1.BF16.gguf BF16 9.94 GB Link Full BF16 weights. Highest quality, largest file size.
OCRia-1.Q2_K.gguf Q2_K 2.23 GB Link Lowest quality, smallest file size, only for extreme resource constraints.
OCRia-1.Q3_K_L.gguf Q3_K_L 2.82 GB Link Lower quality but usable, good for low RAM availability.
OCRia-1.Q3_K_M.gguf Q3_K_M 2.63 GB Link Low quality, smaller footprint.
OCRia-1.Q4_0.gguf Q4_0 2.97 GB Link Standard 4-bit quantization.
OCRia-1.Q4_K_M.gguf Q4_K_M 3.17 GB Link Good quality, default size for most use cases, recommended.
OCRia-1.Q4_K_S.gguf Q4_K_S 2.99 GB Link Slightly lower quality with more space savings, recommended.
OCRia-1.Q5_0.gguf Q5_0 3.51 GB Link Standard 5-bit quantization.
OCRia-1.Q5_K_M.gguf Q5_K_M 3.62 GB Link High quality, recommended.
OCRia-1.Q5_K_S.gguf Q5_K_S 3.51 GB Link High quality with slight space savings, recommended.
OCRia-1.Q6_K.gguf Q6_K 4.08 GB Link Very high quality, near perfect, recommended.
OCRia-1.Q8_0.gguf Q8_0 5.29 GB Link Extremely high quality, generally unneeded but max available standard quant.
OCRia-1.mmproj-bf16.gguf mmproj-bf16 676 MB Link Multimodal projection file in BF16 format. Used for vision/OCR capabilities.
OCRia-1.mmproj-q8_0.gguf mmproj-q8_0 367 MB Link Multimodal projection file in Q8_0 format. Used for vision/OCR capabilities with higher precision than standard quants but smaller than BF16.

Q8_0 Test Run

Tested OCRia-1.Q8_0.gguf with the BF16 multimodal projector (OCRia-1.mmproj-bf16.gguf) on an NVIDIA RTX PRO 6000 Blackwell Server Edition GPU with 96 GB of VRAM, using llama-cli with full GPU offloading and MTP speculative decoding.

Performance Metrics

Metric Value
Average Prompt Processing Speed 1,863.07 tokens/s
Average Generation Speed 335.73 tokens/s
Total Wall Time 19.8 seconds
Context Length 16,384 tokens
KV Cache (K) q8_0
Multimodal Projector OCRia-1.mmproj-bf16.gguf
GPU NVIDIA RTX PRO 6000 Blackwell Server Edition
GPU VRAM Capacity 96 GB
Peak GPU VRAM Usage 6.62 GiB
Peak GPU Utilization 79%
GPU Layers Offloaded 99 (-ngl 99)
Random Seed 42
Speculative Decoding MTP (draft_n_max=2)
Test Runs 3

Test Shots

Shot Test Image
Shot 1 Vision OCR β€” Image 1 EF8cldKHhUEO3MZPZSD19.jpeg
Shot 2 Vision OCR β€” Image 2 oYtCvrxudkMzz3nYr7lN7.jpeg
Shot 3 Vision OCR β€” Image 3 IOjpU_h3RI_DoVdKXZ0DW.jpeg

Run Inference

./build/bin/llama-cli \
  -m /path/to/models/OCRia-1.Q8_0.gguf \
  --mmproj /path/to/models/OCRia-1.mmproj-bf16.gguf \
  --image /path/to/image.jpeg \
  --spec-type draft-mtp \
  --spec-draft-n-max 2 \
  -ngl 99 \
  -c 16384 \
  --cache-type-k q8_0 \
  --seed 42 \
  -n 8192 \
  -st \
  -p "OCR the image."

Performance results reflect this specific hardware and inference configuration. Actual throughput may vary depending on the prompt, image resolution, model, software build, and runtime settings.

Snapshots (5)

download (1) download (2) download (3) download

llama.cpp

LLM inference in C/C++ β€” https://github.com/ggml-org/llama.cpp

MTP-repackaged and quantized using llama.cpp by β€” prithivMLmods.

For other inference setups, kindly refer to the original model card β€” https://huggingface.co/llamaindex/OCRia-1. It is recommended to follow the system message prompt.txt without providing any user text, with thinking turned off.

Downloads last month
-
GGUF
Model size
5B params
Architecture
qwen35
Hardware compatibility
Log In to add your hardware

2-bit

3-bit

4-bit

5-bit

6-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for prithivMLmods/OCRia-1-GGUF

Finetuned
Qwen/Qwen3.5-4B
Quantized
(1)
this model

Collections including prithivMLmods/OCRia-1-GGUF