Home / Companies / LlamaIndex / Blog / Post Details
Content Deep Dive

The Inference Stack Behind OCRia

Blog post from LlamaIndex

Post Details
Company
Date Published
Author
Daniel Bustamante Ospina
Word Count
2,055
Company Posts That Month
1
Language
English
Hacker News Points
2
Post removed?
No
Summary

OCRia-1’s document-parsing inference speed was improved from roughly 285 to 2,800 tokens per second on a single NVIDIA B200 GPU by targeting the memory-bound decoding phase that dominates latency for long structured document outputs. The work combined workload-aware mixed-precision quantization, which retained higher precision for sensitive components such as the vision encoder, with speculative decoding using DFlash2 to draft and verify multiple tokens per target-model pass without changing the target model’s output distribution. Further gains came from optimizing recurrent Gated Delta Network state handling with ReplaySSM, replacing slower Triton kernels with custom CUDA implementations, fusing GPU operations to avoid unnecessary high-bandwidth-memory transfers, and reducing repeated CPU-side metadata preparation in vLLM. Although many additional kernel and engine-level refinements individually contributed modest improvements, together they added more than 60% throughput improvement while evaluations were used to preserve task accuracy and numerical equivalence. The optimized OCRia-1 model is available through LlamaParse, while broadly applicable changes are intended for contribution to the vLLM community.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
LLM 2 406 98 57 -94%
Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.