LlamaIndex发布810万参数OCRia-nano-1模型,纯CPU运行
LlamaIndex Releases OCRia-nano-1: 8.1M-Parameter OCR Model for CPUs
极致轻量级的CPU OCR方案,解决了本地解析的算力痛点,工程落地价值极高,建议开发者关注其在边缘设备上的部署潜力。
LlamaIndex has released OCRia-nano-1, the smallest model in its OCRia family. The OCRia-nano-1 OCR model has 8.1M parameters and open weights on Hugging Face. It reads text, rebuilds tables and recovers page layout on a CPU. No GPU is needed. It runs inside LiteParse, the company’s open-source local parser. The target is the cheap first pass over large document backlogs. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
LlamaIndex 发布了 OCRia-nano-1,这是其 OCRia 系列中最小的模型。OCRia-nano-1 OCR 模型拥有 8.1M 参数,并在 Hugging Face 上开放权重。它能在 CPU 上读取文本、重建表格并恢复页面布局。无需 GPU。它运行在 LlamaIndex 的开源本地解析器 LiteParse 内部。其目标是对大量积压文档进行低成本的首次处理。你可以通过我们的 GPULeaderboard.com Chrome 扩展程序在此查看部署选项和规格。
TL;DR
TL;DR(太长不看)
- Size: 8.1M parameters across 7 small models (3.9M OCR stack, 4.27M LayoutNet). No context length; it works page by page.
- Runs on: Any CPU on Linux, macOS or Windows, plus browsers via WebAssembly. About 60 to 75 MB download. No GPU.
- Performance: Top ParseBench-2 score (59.2) in its 4-system table, at 426 ms per page on 1 core.
- Best: Formatting, 82.2 on ParseBench-2.
- 规模:7 个小模型共 8.1M 参数(3.9M OCR 堆栈,4.27M LayoutNet)。无上下文长度;按页处理。
- 运行环境:Linux、macOS 或 Windows 上的任何 CPU,以及通过 WebAssembly 运行的浏览器。下载大小约 60 至 75 MB。无需 GPU。
- 性能:在 ParseBench-2 的四系统表中得分最高(59.2),在单核上每页耗时 426 毫秒。
- 最佳表现:格式排版,ParseBench-2 得分为 82.2。
What is OCRia-nano-1?
什么是 OCRia-nano-1?
OCRia-nano-1 is a CPU document parsing pipeline from LlamaIndex, distilled from its 4B OCRia-1 VLM. It has about 1/500th of the teacher’s parameters. It is not a single network. It is 7 specialist models chained inside LiteParse. OCRia-1 generated the training labels: text transcriptions, table annotations and layout labels.
OCRia-nano-1 是 LlamaIndex 推出的 CPU 文档解析流水线,由其 4B 参数的 OCRia-1 VLM 蒸馏而来。其参数量约为教师模型的 1/500。它并非单一网络,而是由 7 个专家模型在 LiteParse 内部串联而成。OCRia-1 生成了训练标签:文本转录、表格标注和布局标签。
How does the OCRia-nano-1 pipeline work?
OCRia-nano-1 流水线如何工作?
Each page passes through 6 stages, per the model card:
根据模型卡片说明,每个页面经过 6 个阶段:
- Text layer check: PDFium reads native text from digital PDFs. Pages without usable text go to OCR.
- Line detector (0.08M): Finds text lines on the rendered page (250 DPI by default).
- Script router (0.04M): Picks the page’s majority script. Confident lines can override it. It also flags upside-down pages.
- 4 recognizers: Latin (0.80M), world-script (0.98M), right-to-left (0.71M) and CJK (1.27M).
- Merge: OCR lines are combined with any native PDF text.
- LayoutNet (4.27M): A 6-layer transformer over text units with a CNN image branch. It predicts table, row, column, cell and block relations across 13 layout classes.
- 文本层检查:PDFium 从数字 PDF 中读取原生文本。没有可用文本的页面将进入 OCR 流程。
- 行检测器(0.08M):在渲染后的页面上查找文本行(默认分辨率为 250 DPI)。
- 脚本路由器(0.04M):选择页面的主要书写系统。置信度高的行可以覆盖此选择。它还会标记倒置的页面。
- 4 个识别器:拉丁文(0.80M)、世界文字(0.98M)、从右到左(0.71M)和 CJK(1.27M)。
- 合并:OCR 行与任何原生 PDF 文本相结合。
- LayoutNet(4.27M):一个基于文本单元的 6 层 Transformer,带有 CNN 图像分支。它在 13 种布局类别中预测表格、行、列、单元格和块之间的关系。
Output is Markdown, JSON with bounding boxes, or plain text. Tables come out as Markdown, or HTML when cells span.
输出为 Markdown、带边界框的 JSON 或纯文本。表格以 Markdown 形式输出,或在单元格跨行跨列时以 HTML 形式输出。
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力