Fast, accurate OCR with correctness assessment.
docs: align model guides and expand throughput comparisons
yiranyyu96dd3bd942fa
diff --git a/README.md b/README.mdindex 41da3e8..9ac422c 100644--- a/README.md+++ b/README.md@@ -5,9 +5,9 @@<p align="center"><strong>MiniCPM-OCR · Fast, accurate parsing for real-world documents.</strong></p><p align="center">- <a href="./docs/minicpm_ocr_1dot0_en.md"><strong>MiniCPM-OCR 1.0</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>+ <a href="./docs/minicpm_ocr_1dot0_en.md"><strong>MiniCPM-OCR 1.0 Guide</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a> - <a href="./docs/minicpm_ocr_jev_en.md"><strong>MiniCPM-OCR Jev</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>+ <a href="./docs/minicpm_ocr_jev_en.md"><strong>MiniCPM-OCR Jev Guide</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a></p><p align="center">@@ -36,11 +36,11 @@### SOTA Performance, Higher Throughput-Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves a parsing throughput of 1.2 pages/s and the highest equally weighted average score across four document parsing benchmarks: OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench.+Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves 1.2 pages/s and the highest overall performance on OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench.<p align="center"><a href="./assets/minicpm-ocr/efficiency-performance-en.png"><img src="./assets/minicpm-ocr/efficiency-performance-en.png" alt="Throughput and parsing quality of open-source OCR models. The horizontal axis shows throughput in pages per second on a logarithmic scale; the vertical axis shows the equally weighted average score across four document parsing benchmarks." width="90%"></a></p>-<sub>The average score weights OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench equally. The horizontal axis shows throughput in pages per second on a logarithmic scale. See the [reproduction guide](./docs/benchmark_reproduction_en.md) for test settings and reproduction details, and the [model guide throughput evaluation](./docs/minicpm_ocr_1dot0_en.md#throughput) for each model's throughput.</sub>+<sub>See the [reproduction guide](./docs/benchmark_reproduction_en.md) for test settings and reproduction details, and the [model guide throughput evaluation](./docs/minicpm_ocr_1dot0_en.md#throughput) for each model's throughput.</sub><a id="ocr-benchmark"></a>@@ -55,7 +55,7 @@ Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves a parsing</details>-See the [OCR model guide](./docs/minicpm_ocr_1dot0_en.md#evaluation) for per-benchmark bar charts and throughput details.+See the [MiniCPM-OCR 1.0 guide](./docs/minicpm_ocr_1dot0_en.md#evaluation) for per-benchmark bar charts and throughput details.### Examples@@ -121,7 +121,7 @@ Jev scores for text, formula, and table recognition.<p align="center"><a href="./assets/minicpm-ocr/jev-case-en.png"><img src="./assets/minicpm-ocr/jev-case-en.png" alt="Original images, two OCR candidates, and their Jev scores for text, formulas, and tables." width="100%"></a></p>-See the [model guide](./docs/minicpm_ocr_jev_en.md), [use cases](./docs/minicpm_ocr_jev_en.md#use-cases), [cross-model evaluation](./docs/minicpm_ocr_jev_en.md#validated-parsers), and [decision examples](./docs/minicpm_ocr_jev_en.md#examples).+See the [MiniCPM-OCR Jev model guide](./docs/minicpm_ocr_jev_en.md) for more on usage, technical specifications, evaluation results, and efficiency results.<a id="quick-start"></a>diff --git a/README_zh.md b/README_zh.mdindex 25eba92..4421b87 100644--- a/README_zh.md+++ b/README_zh.md@@ -5,9 +5,9 @@<p align="center"><strong>MiniCPM-OCR · Fast, accurate parsing for real-world documents.</strong></p><p align="center">- <a href="./docs/minicpm_ocr_1dot0_zh.md"><strong>MiniCPM-OCR 1.0</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>+ <a href="./docs/minicpm_ocr_1dot0_zh.md"><strong>MiniCPM-OCR 1.0 模型指南</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a> - <a href="./docs/minicpm_ocr_jev_zh.md"><strong>MiniCPM-OCR Jev</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>+ <a href="./docs/minicpm_ocr_jev_zh.md"><strong>MiniCPM-OCR Jev 模型指南</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev" title="Hugging Face"><img src="./assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="./assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a></p><p align="center">@@ -36,11 +36,11 @@### SOTA 表现,更高吞吐-在图示的开源 OCR 模型对比中,MiniCPM-OCR 1.0 的解析吞吐量达到 1.2 pages/s,在 OmniDocBench v1.6、Real5-OmniDocBench、Wild-OmniDocBench 和 olmOCR-Bench 四项文档解析基准上取得最高等权平均分。+在图示的开源 OCR 模型对比中,MiniCPM-OCR 1.0 的解析吞吐量达到 1.2 pages/s,在 OmniDocBench v1.6、Real5-OmniDocBench、Wild-OmniDocBench 和 olmOCR-Bench 四项文档解析基准上取得最佳综合表现。<p align="center"><a href="./assets/minicpm-ocr/efficiency-performance-zh.png"><img src="./assets/minicpm-ocr/efficiency-performance-zh.png" alt="开源 OCR 模型的吞吐量与解析质量对比;横轴为吞吐量(页/秒,对数刻度),纵轴为四项文档解析基准的等权平均分。" width="90%"></a></p>-<sub>平均分:OmniDocBench v1.6、Real5-OmniDocBench、Wild-OmniDocBench 和 olmOCR-Bench 四项基准的等权平均分;横轴为吞吐量(页/秒),采用对数刻度。测试设置与复现说明见 [复现文档](./docs/benchmark_reproduction_zh.md);各模型的吞吐数值见 [模型指南的吞吐评测](./docs/minicpm_ocr_1dot0_zh.md#吞吐)。</sub>+<sub>测试设置与复现说明见 [复现文档](./docs/benchmark_reproduction_zh.md);各模型的吞吐数值见 [模型指南的吞吐评测](./docs/minicpm_ocr_1dot0_zh.md#吞吐)。</sub><a id="ocr-benchmark"></a>@@ -55,7 +55,7 @@</details>-各基准柱状图与吞吐明细见 [OCR 模型指南](./docs/minicpm_ocr_1dot0_zh.md#评测)。+各基准柱状图与吞吐明细见 [MiniCPM-OCR 1.0 模型指南](./docs/minicpm_ocr_1dot0_zh.md#评测)。### 典型示例@@ -119,7 +119,7 @@<p align="center"><a href="./assets/minicpm-ocr/jev-case-zh.png"><img src="./assets/minicpm-ocr/jev-case-zh.png" alt="文本、公式和表格的原图、两份 OCR 候选结果及其 Jev 评分。" width="100%"></a></p>-详见 [模型指南](./docs/minicpm_ocr_jev_zh.md)、[使用场景](./docs/minicpm_ocr_jev_zh.md#使用场景)、[跨模型评测](./docs/minicpm_ocr_jev_zh.md#已验证的解析器) 和 [判别示例](./docs/minicpm_ocr_jev_zh.md#示例)。+使用方法、技术规格、评测结果和效率结果详见 [MiniCPM-OCR Jev 模型指南](./docs/minicpm_ocr_jev_zh.md)。<a id="quick-start"></a>diff --git a/docs/benchmark_reproduction_en.md b/docs/benchmark_reproduction_en.mdindex 6ce01c6..818924a 100644--- a/docs/benchmark_reproduction_en.md+++ b/docs/benchmark_reproduction_en.md@@ -109,10 +109,10 @@ Image-level concurrency and recognition concurrency for regions within a page ar- [SDK tutorial](./minicpmvocr_tutorial_en.md): Install the environment, connect an inference backend, parse documents, and check outputs.- [vLLM deployment guide](./vllm_deploy_en.md): Deploy the API service and check recognition results.-A comparison with and without DSpark must use the same main-model weights, dataset, hardware, and SDK configuration, changing only whether DSpark is enabled. The deployment examples start the service; complete comparison commands and logs for reproducing the 62% improvement remain to be added.+A comparison with and without DSpark must use the same main-model weights, dataset, hardware, and SDK configuration, changing only whether DSpark is enabled. The deployment examples start the service; complete comparison commands and logs for reproducing the 55% improvement remain to be added.### Interpreting Results-Enabling DSpark decoding acceleration improves MiniCPM-OCR 1.0's end-to-end processing efficiency by **62%**. This improvement describes the benefit of DSpark acceleration and does not replace throughput comparisons with other systems.+Enabling DSpark decoding acceleration improves MiniCPM-OCR 1.0's end-to-end processing efficiency by **55%**. This improvement describes the benefit of DSpark acceleration and does not replace throughput comparisons with other systems.-MiniCPM-OCR 1.0 achieves a parsing throughput of **1.213 pages/s**, compared with **1.179 pages/s** for GLM-OCR. With MiniCPM-OCR 1.0 as the relative-throughput baseline (**1.00×**), GLM-OCR, PaddleOCR-VL-1.6, MinerU2.5-Pro-Standard, and MinerU2.5-Pro-Advanced achieve **0.97×, 0.67×, 0.44×, and 0.28×**, respectively. For complete values and comparison charts, see the [model guide's Throughput section](./minicpm_ocr_1dot0_en.md#throughput).+MiniCPM-OCR 1.0 achieves a parsing throughput of **1.217 pages/s**, compared with **1.179 pages/s** for GLM-OCR. With MiniCPM-OCR 1.0 as the relative-throughput baseline (**1.00×**), GLM-OCR, PaddleOCR-VL-1.6, and MinerU2.5-Pro achieve **0.97×, 0.67×, and 0.28×**, respectively. For complete values and comparison charts, see the [model guide's Throughput section](./minicpm_ocr_1dot0_en.md#throughput).diff --git a/docs/benchmark_reproduction_zh.md b/docs/benchmark_reproduction_zh.mdindex 76d33a2..1afafdd 100644--- a/docs/benchmark_reproduction_zh.md+++ b/docs/benchmark_reproduction_zh.md@@ -1,6 +1,6 @@# 复现 MiniCPM-OCR 性能和效率评测结果-[← 返回 README](../README_zh.md) · [模型指南](./minicpm_ocr_1dot0_zh.md)+[← 返回首页](../README_zh.md) · [模型指南](./minicpm_ocr_1dot0_zh.md)本文汇总 MiniCPM-OCR 1.0 的评测推理配置、评分方法与官方来源,以及解析效率对比的测试设置与部署入口。完整评测脚本、精确版本和计时范围待补充。@@ -108,10 +108,10 @@ GT 的页面版本必须与评测集对应,不能直接用 v1.6 full GT 替换- [SDK 使用教程](./minicpmvocr_tutorial.md):安装环境、连接推理后端、解析文档与检查输出。- [vLLM 部署指南](./vllm_deploy.md):部署 API 服务与检查识别结果。-DSpark 前后对照需使用相同主模型权重、数据集、硬件和 SDK 配置,仅改变 DSpark 开关。部署指南中的示例用于启动服务;用于复现 62% 提升的完整对照命令和日志待补充。+DSpark 前后对照需使用相同主模型权重、数据集、硬件和 SDK 配置,仅改变 DSpark 开关。部署指南中的示例用于启动服务;用于复现 55% 提升的完整对照命令和日志待补充。### 结果说明-启用 DSpark 解码加速后,MiniCPM-OCR 1.0 的端到端处理效率提升 **62%**。该提升描述 DSpark 的加速收益,不能替代与其他系统的吞吐比较。+启用 DSpark 解码加速后,MiniCPM-OCR 1.0 的端到端处理效率提升 **55%**。该提升描述 DSpark 的加速收益,不能替代与其他系统的吞吐比较。-MiniCPM-OCR 1.0 的解析吞吐为 **1.213 pages/s**,GLM-OCR 为 **1.179 pages/s**。相对吞吐以 MiniCPM-OCR 1.0 为基准(**1.00×**),GLM-OCR、PaddleOCR-VL-1.6、MinerU2.5-Pro-Standard 和 MinerU2.5-Pro-Advanced 分别为 **0.97×、0.67×、0.44× 和 0.28×**。完整数值与对比图见 [模型指南的吞吐章节](./minicpm_ocr_1dot0_zh.md#吞吐)。+MiniCPM-OCR 1.0 的解析吞吐为 **1.217 pages/s**,GLM-OCR 为 **1.179 pages/s**。相对吞吐以 MiniCPM-OCR 1.0 为基准(**1.00×**),GLM-OCR、PaddleOCR-VL-1.6 和 MinerU2.5-Pro 分别为 **0.97×、0.67× 和 0.28×**。完整数值与对比图见 [模型指南的吞吐章节](./minicpm_ocr_1dot0_zh.md#吞吐)。diff --git a/docs/minicpm_ocr_1dot0_en.md b/docs/minicpm_ocr_1dot0_en.mdindex 0b9038d..5fd891f 100644--- a/docs/minicpm_ocr_1dot0_en.md+++ b/docs/minicpm_ocr_1dot0_en.md@@ -4,14 +4,34 @@[← Back to the homepage](../README.md) · [MiniCPM-OCR Jev](./minicpm_ocr_jev_en.md)-MiniCPM-OCR 1.0 is a **1.3B** model for document parsing, text recognition, and key information extraction. This page covers its highlights, architecture, document parsing and KIE usage, deployment options, and benchmark breakdowns; see the [README](../README.md#ocr-benchmark) for complete experimental results.+**MiniCPM-OCR 1.0** (1.3B) is the first OCR-specific model in the [MiniCPM-V/o](https://github.com/openbmb/MiniCPM-V) family. It focuses on text-centric document understanding, covering text, tables, formulas, charts, seals, and structured information extraction. This page covers its highlights, technical specifications, usage, model downloads, complete evaluation results, efficiency results, and examples.## Model Highlights- 🏆 **SOTA document parsing**: MiniCPM-OCR 1.0 achieves a **SOTA score of 93.68 on Real5-OmniDocBench**, a benchmark for real-world document parsing, and demonstrates leading parsing capabilities on OmniDocBench v1.6, Wild-OmniDocBench, and olmOCR-Bench. It supports Chinese and English documents and PDFs, handling both standard documents and challenging capture conditions, including scans, curved pages, photographs, skewed pages, and recaptured documents.- ⚡ **Efficient inference.** With DSpark decoding acceleration ([**DSpark-BF16**](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark), [**DSpark-GGUF**](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark-gguf)), MiniCPM-OCR 1.0 improves **end-to-end processing efficiency by 55%**. Its throughput is approximately **1.49×** that of PaddleOCR-VL-1.6 and **3.62×** that of MinerU2.5 Pro, reducing the time needed for large-scale document parsing.-- 🔍 **General recognition and information extraction**: MiniCPM-OCR 1.0 achieves a **SOTA score of 54.7 on OCRBench v2**, demonstrating strong general OCR capabilities. It also supports key information extraction (KIE), extracting relevant document content for downstream information management and automated processing.-- 🛠️ **Easy deployment and development**: MiniCPM-OCR 1.0 supports **vLLM, SGLang, llama.cpp, and Ollama from day one**, with multiple chip platforms and quantized versions available at release. It **supports further fine-tuning** and provides a **[pip SDK](https://pypi.org/project/minicpm-ocr/)** and a **[full-featured API](../README.md#api)** for application integration and customization. You can also **[get started quickly with SKILL.md](../README.md#skill)**. Try the Online Demo ([CN](https://platform.modelbest.cn/console/playground/document-parse) / [Global](https://platform.modelbest.ai/console/playground/document-parse)) to explore parsing results.+- 🔍 **General recognition and information extraction**: MiniCPM-OCR 1.0 achieves a **SOTA score of 54.7 on OCRBench v2**, demonstrating strong general OCR capabilities. It **also supports key information extraction (KIE)**, extracting relevant document content for downstream information management and automated processing.+- 🛠️ **Easy deployment and development**: MiniCPM-OCR 1.0 supports **vLLM, SGLang, llama.cpp, and Ollama from day one**, with multiple chip platforms and quantized versions available at release. It **supports further fine-tuning** and provides a **[pip SDK](https://pypi.org/project/minicpm-ocr/)** and a **[full-featured API](./minicpm_ocr_api_en.md)** for application integration and customization. You can also **[get started quickly with SKILL.md](./SKILL_en.md)**. Try the Online Demo ([CN](https://platform.modelbest.cn/console/playground/document-parse) / [Global](https://platform.modelbest.ai/console/playground/document-parse)) to explore parsing results.++## Usage++### Skill++Ask a coding agent to follow the [skill](./SKILL_en.md) to set up the environment, download models, and parse your first document. Send the following instruction to the agent:++```text+Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_en.md+```++If you have already cloned this repository, you can use `./docs/SKILL_en.md` directly.++### Free API++Use the Free API to access MiniCPM-OCR 1.0 recognition. See the [API example](./minicpm_ocr_api_en.md).++### Local Deployment++Run the model on your own hardware to parse PDFs and images into Markdown or JSON. See the [SDK and deployment tutorial](./minicpmvocr_tutorial_en.md). The [Inference](#inference) section lists deployment guides for each backend.## Model Base and Architecture@@ -67,9 +87,16 @@ Replace both field lists with the fields needed for your application, keeping th## Model Weights-See [Model Weights in the README](../README.md#model-weights) for standard, GGUF-quantized, and DSpark downloads. FlagOS-adapted BF16 versions for multiple chips are listed in the [download table](./flagos_deploy_en.md#model-downloads).+| Weights | Hugging Face | ModelScope |+| :--- | :--- | :--- |+| Main model BF16 | [Download](https://huggingface.co/openbmb/MiniCPM-OCR-1.0) | [Download](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0) |+| Main model GGUF | [Download](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-gguf) | [Download](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-gguf) |+| Main model AWQ | [Download](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-AWQ) | [Download](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-AWQ) |+| Main model GPTQ | [Download](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-GPTQ) | [Download](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-GPTQ) |+| DSpark sampling head BF16 | [Download](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark) | [Download](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-DSpark) |+| DSpark sampling head GGUF | [Download](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark-gguf) | [Download](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-DSpark-gguf) |-**DSpark requires matching main and draft models from the same release** and must not be mixed with standard-model weights. See [DSpark acceleration](./minicpmvocr_tutorial_en.md#3-start-the-service) for weight selection and startup arguments.+**DSpark runs the main model together with its matching draft model (sampling head)**. For example, BF16 deployment pairs `openbmb/MiniCPM-OCR-1.0` with `openbmb/MiniCPM-OCR-1.0-DSpark`; ordinary decoding does not require a draft model. See [DSpark acceleration](./minicpmvocr_tutorial_en.md#3-start-the-service) for weight selection and startup arguments. FlagOS-adapted BF16 versions for multiple chips are listed in the [download table](./flagos_deploy_en.md#model-downloads).## Inference@@ -92,11 +119,30 @@ The [LLaMA-Factory](./llamafactory_minicpm_ocr_french_en.md) and [ms-swift](./sw## Evaluation+### SOTA Performance, Higher Throughput++Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves 1.2 pages/s and the highest overall performance on OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench.++<p align="center"><a href="../assets/minicpm-ocr/efficiency-performance-en.png"><img src="../assets/minicpm-ocr/efficiency-performance-en.png" alt="Throughput and parsing quality of open-source OCR models. The horizontal axis shows throughput in pages per second on a logarithmic scale; the vertical axis shows the equally weighted average score across four document parsing benchmarks." width="90%"></a></p>++<sub>See the [reproduction guide](./benchmark_reproduction_en.md) for test settings and reproduction details, and [Throughput](#throughput) for each model's throughput values.</sub>++### Benchmark Comparisons++<p align="center"><a href="../assets/minicpm-ocr/benchmark-radar.png"><img src="../assets/minicpm-ocr/benchmark-radar.png" alt="Radar chart comparing MiniCPM-OCR 1.0 with other OCR models across six benchmarks; some values remain to be confirmed." width="80%"></a></p>+The figure below compares results on six benchmarks. Each panel retains its benchmark's original scores; higher is better. Scores from different benchmarks should not be compared directly.<p align="center"><a href="../assets/minicpm-ocr/benchmark-comparison.png"><img src="../assets/minicpm-ocr/benchmark-comparison.png" alt="MiniCPM-OCR 1.0 benchmark breakdowns on Real5-OmniDocBench, Wild-OmniDocBench, OmniDocBench v1.6, olmOCR-Bench, OCRBench v2, and CHAOS-Bench." width="100%"></a></p>-The figure includes selected models to show differences across benchmarks. See the [complete experimental table in the README](../README.md#ocr-benchmark) for all 14 models.+The figure includes selected models to show differences across benchmarks. Complete evaluation results are provided below.++<details>+<summary>View complete MiniCPM-OCR 1.0 evaluation results</summary>++<p align="center"><a href="../assets/minicpm-ocr/ocr-benchmarks.png"><img src="../assets/minicpm-ocr/ocr-benchmarks.png" alt="Detailed OCR results on OmniDocBench v1.6, Real5, Wild, olmOCR-Bench, CHAOS-Bench, and OCRBench v2." width="100%"></a></p>++</details>## Throughput@@ -106,7 +152,27 @@ On an NVIDIA GeForce RTX 5090, using all 1,651 images in OmniDocBench v1.6, imag<p align="center"><a href="../assets/minicpm-ocr/throughput-comparison.png"><img src="../assets/minicpm-ocr/throughput-comparison.png" alt="OCR system throughput with accelerated configurations; MiniCPM-OCR 1.0 achieves 1.2 pages/s with relative throughput of 1.00×." width="100%"></a></p>-These are parsing throughput results; the exact timing boundaries remain to be documented. With image-level concurrency set to 1, recognition regions within a page can still be processed concurrently. Deployment speed also depends on page content, backend, concurrency, and hardware configuration.+Detailed throughput and latency results are listed below. Higher Pages / s is better (↑); P95 and P99 are the 95th and 99th percentiles of processing time per sample, where lower values are better (↓).++| Model | Pages / s ↑ | P95 Time per Sample ↓ | P99 Time per Sample ↓ |+| --- | ---: | ---: | ---: |+| **MiniCPM-OCR 1.0** | **1.217** | **2.1** | **3.8** |+| GLM-OCR | 1.179 | 2.0 | 4.7 |+| PaddleOCR-VL-1.6 | 0.818 | 2.8 | 6.0 |+| Xiaomi-OCR-0 | 0.724 | 4.0 | 7.9 |+| HunyuanOCR-1.5 | 0.416 | 7.2 | 9.2 |+| LightOnOCR-3 | 0.340 | 9.1 | 9.4 |+| MinerU2.5-Pro | 0.336 | 10.0 | 15.4 |+| OvisOCR2 | 0.317 | 10.4 | 19.6 |+| Unlimited-OCR2 | 0.246 | 11.8 | 19.5 |+| TeleOCR | 0.141 | 13.2 | 18.6 |+| Surya OCR 2 | 0.122 | 39.6 | 51.1 |+| dots.ocr | 0.112 | 27.4 | 63.0 |+| Nanonets-OCR-s | 0.102 | 21.7 | 144.4 |+| chandra-ocr-2 | 0.068 | 38.4 | 161.0 |+| DeepSeek-OCR-2 | 0.063 | 22.5 | 66.7 |++During testing, one image is processed at a time, while multiple recognition regions within that image can be processed concurrently.### Throughput at Different Concurrency Levels@@ -120,10 +186,41 @@ The table below shows MiniCPM-OCR 1.0 throughput at different image-level concur| 6 | 2.031 | 1.67× || **8** | **2.133** | **1.75×** |+## Examples++Left to right: original document, detected layout, and rendered Markdown.++### English Documents++<p align="center"><a href="../assets/minicpm-ocr/minicpm-english-examples-3-column.gif"><img src="../assets/minicpm-ocr/minicpm-english-examples-3-column.gif" alt="English document animation: original, detected layout, and rendered Markdown." width="100%"></a></p>++### Chinese Documents++<p align="center"><a href="../assets/minicpm-ocr/minicpm-chinese-examples-3-column.gif"><img src="../assets/minicpm-ocr/minicpm-chinese-examples-3-column.gif" alt="Chinese document animation: original, detected layout, and rendered Markdown." width="100%"></a></p>++<details>+<summary>More Examples</summary>++Original documents and parsed results, side by side.++**Chinese Documents**++<p align="center"><a href="../assets/minicpm-ocr/minicpm-ocr-chinese-cases.png"><img src="../assets/minicpm-ocr/minicpm-ocr-chinese-cases.png" alt="Chinese examples comparing inputs and results: handwritten notes, complex formulas, newspapers, financial statements, stamped documents, illustrations, and key information extraction." width="100%"></a></p>++**English Documents**++<p align="center"><a href="../assets/minicpm-ocr/minicpm-ocr-english-cases.png"><img src="../assets/minicpm-ocr/minicpm-ocr-english-cases.png" alt="English examples comparing inputs and results: handwriting, historical and scanned documents, newspapers, financial statements, and key information extraction." width="100%"></a></p>++</details>+## ReproductionSee the [reproduction guide](./benchmark_reproduction_en.md) for test settings, DSpark comparison requirements, and evaluation details still to be added. Recorded SDK test environments are listed under [Verified versions](./SKILL_en.md#9-verified-versions).+## Frequently Asked Questions++See the [FAQ](./faq_en.md) for installation, model downloads, GPU memory, input formats, and unexpected outputs.+## LicenseMiniCPM-OCR 1.0 model weights, code, and documentation are released under the [Apache License 2.0](../LICENSE).diff --git a/docs/minicpm_ocr_1dot0_zh.md b/docs/minicpm_ocr_1dot0_zh.mdindex ff2b882..a0aa5ea 100644--- a/docs/minicpm_ocr_1dot0_zh.md+++ b/docs/minicpm_ocr_1dot0_zh.md@@ -4,14 +4,34 @@[← 返回首页](../README_zh.md) · [MiniCPM-OCR Jev](./minicpm_ocr_jev_zh.md)-MiniCPM-OCR 1.0 是面向文档解析、文字识别与关键信息抽取的 **1.3B** 模型。本页介绍模型亮点、模型结构、文档解析与 KIE 用法、部署选择和分项评测;完整实验结果见 [首页](../README_zh.md#ocr-benchmark)。+**MiniCPM-OCR 1.0**(1.3B)是 [MiniCPM-V/o](https://github.com/openbmb/MiniCPM-V) 家族首个 OCR 专用模型,面向以文字为中心的文档理解,覆盖文本、表格、公式、图表与印章识别和结构化信息抽取。本页介绍模型亮点、技术规格、使用方法、模型下载、完整评测、效率结果和典型示例。## 模型亮点- 🏆 **SOTA 的文档解析能力**:MiniCPM-OCR 1.0 在真实场景文档解析评测 **Real5-OmniDocBench 上取得 93.68 的 SOTA 成绩**,并在 OmniDocBench v1.6、Wild-OmniDocBench 和 olmOCR-Bench 等评测中展现领先的解析能力。模型支持中英双语文档与 PDF 解析,兼顾标准文档和复杂采集条件,在扫描、弯曲、拍照、倾斜及翻拍等场景下保持稳定表现。- ⚡ **高效推理。** 基于 DSpark 解码加速([**DSpark-BF16**](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark)、[**DSpark-GGUF**](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark-gguf)),MiniCPM-OCR 1.0 的**端到端处理效率提升 55%**。其处理吞吐量约为 PaddleOCR-VL-1.6 的 **1.49 倍**、MinerU2.5 Pro 的 **3.62 倍**,降低大规模文档解析的时间开销。-- 🔍 **通用识别与信息抽取**:MiniCPM-OCR 1.0 在 **OCRBench v2 上取得 54.7 的 SOTA** 成绩,具备扎实的通用 OCR 能力;同时支持关键信息抽取(KIE),可根据业务需求提取文档中的关键内容,支持后续信息整理与自动化处理。-- 🛠️ **部署与开发友好**:MiniCPM-OCR 1.0 首日**适配 vLLM、SGLang、llama.cpp 和 Ollama**,同步提供多芯片适配与多种量化版本。模型**支持二次微调**,提供 **[pip SDK](https://pypi.org/project/minicpm-ocr/)** 和**[功能完备的 API](../README_zh.md#api)**,方便应用集成与定制开发,也可**[通过 SKILL.md 快速上手](../README_zh.md#skill)**;同时提供在线体验([国内](https://platform.modelbest.cn/console/playground/document-parse) / [海外](https://platform.modelbest.ai/console/playground/document-parse)),方便用户查看解析效果。+- 🔍 **通用识别与信息抽取**:MiniCPM-OCR 1.0 在 **OCRBench v2 上取得 54.7 的 SOTA** 成绩,具备扎实的通用 OCR 能力;**同时支持关键信息抽取(KIE)**,可根据业务需求提取文档中的关键内容,支持后续信息整理与自动化处理。+- 🛠️ **部署与开发友好**:MiniCPM-OCR 1.0 首日**适配 vLLM、SGLang、llama.cpp 和 Ollama**,同步提供多芯片适配与多种量化版本。模型**支持二次微调**,提供 **[pip SDK](https://pypi.org/project/minicpm-ocr/)** 和 **[功能完备的 API](./minicpm_ocr_api_zh.md)**,方便应用集成与定制开发,也可 **[通过 SKILL.md 快速上手](./SKILL.md)**;同时提供在线体验([国内](https://platform.modelbest.cn/console/playground/document-parse) / [海外](https://platform.modelbest.ai/console/playground/document-parse)),方便用户查看解析效果。++## 使用方式++### Skill++让编码 Agent 按 [skill](./SKILL.md) 完成环境配置、模型下载和首次文档解析。将以下指令发送给 Agent:++```text+Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL.md+```++已克隆本仓库时,也可直接使用 `./docs/SKILL.md`。++### 免费 API++通过免费 API 接入 MiniCPM-OCR 1.0 的识别能力,见 [API 调用示例](./minicpm_ocr_api_zh.md)。++### 本地部署++在自己的设备上运行模型,将 PDF 和图片解析为 Markdown 或 JSON,见 [SDK 使用与部署教程](./minicpmvocr_tutorial.md)。[推理](#推理)章节列出了各后端的部署入口。## 模型基座与结构@@ -67,9 +87,16 @@ Extract the "店名", "金额". Format the output as a JSON object with keys: "## 模型权重-标准版、GGUF 量化版和 DSpark 版的下载入口统一见 [首页模型权重](../README_zh.md#model-weights);FlagOS 适配的 BF16 多芯片版本见 [下载列表](./flagos_deploy_zh.md#model-downloads)。+| 权重 | Hugging Face | ModelScope |+| :--- | :--- | :--- |+| 主模型 BF16 | [下载](https://huggingface.co/openbmb/MiniCPM-OCR-1.0) | [下载](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0) |+| 主模型 GGUF | [下载](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-gguf) | [下载](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-gguf) |+| 主模型 AWQ | [下载](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-AWQ) | [下载](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-AWQ) |+| 主模型 GPTQ | [下载](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-GPTQ) | [下载](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-GPTQ) |+| DSpark 采样头 BF16 | [下载](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark) | [下载](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-DSpark) |+| DSpark 采样头 GGUF | [下载](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark-gguf) | [下载](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-DSpark-gguf) |-**DSpark 需要同一次发布的配套主模型和 draft 模型**,不能与标准版权重混用。权重选择与启动参数见 [DSpark 加速说明](./minicpmvocr_tutorial.md#3-启动服务)。+**DSpark 需要主模型与配套的草稿模型(采样头)共同运行**。例如,BF16 部署将 `openbmb/MiniCPM-OCR-1.0` 与 `openbmb/MiniCPM-OCR-1.0-DSpark` 搭配使用;普通解码无需草稿模型。权重选择与启动参数见 [DSpark 加速说明](./minicpmvocr_tutorial.md#3-启动服务)。FlagOS 适配的 BF16 多芯片版本见 [下载列表](./flagos_deploy_zh.md#model-downloads)。## 推理@@ -92,11 +119,30 @@ SDK 的 `pipeline.max_workers` 控制识别块请求数,`pipeline.page_workers## 评测+### SOTA 表现,更高吞吐++在图示的开源 OCR 模型对比中,MiniCPM-OCR 1.0 的解析吞吐量达到 1.2 pages/s,在 OmniDocBench v1.6、Real5-OmniDocBench、Wild-OmniDocBench 和 olmOCR-Bench 四项文档解析基准上取得最佳综合表现。++<p align="center"><a href="../assets/minicpm-ocr/efficiency-performance-zh.png"><img src="../assets/minicpm-ocr/efficiency-performance-zh.png" alt="开源 OCR 模型的吞吐量与解析质量对比;横轴为吞吐量(页/秒,对数刻度),纵轴为四项文档解析基准的等权平均分。" width="90%"></a></p>++<sub>测试设置与复现说明见 [复现文档](./benchmark_reproduction_zh.md);各模型的吞吐数值见[吞吐评测](#吞吐)。</sub>++### 各基准效果对比++<p align="center"><a href="../assets/minicpm-ocr/benchmark-radar.png"><img src="../assets/minicpm-ocr/benchmark-radar.png" alt="MiniCPM-OCR 1.0 与其他 OCR 模型在六项评测上的雷达图;部分数值待确认。" width="80%"></a></p>+下图展示六项基准的分项对比,各面板保留对应基准的原始分数,分数越高越好。不同基准的分数不宜直接相互比较。<p align="center"><a href="../assets/minicpm-ocr/benchmark-comparison.png"><img src="../assets/minicpm-ocr/benchmark-comparison.png" alt="MiniCPM-OCR 1.0 在 Real5-OmniDocBench、Wild-OmniDocBench、OmniDocBench v1.6、olmOCR-Bench、OCRBench v2 与 CHAOS-Bench 上的分项柱状图。" width="100%"></a></p>-图中选取部分模型展示分项差异,完整的 14 模型结果见 [首页实验表格](../README_zh.md#ocr-benchmark)。+图中选取部分模型展示分项差异,完整评测结果如下。++<details>+<summary>点击查看 MiniCPM-OCR 1.0 完整评测结果</summary>++<p align="center"><a href="../assets/minicpm-ocr/ocr-benchmarks.png"><img src="../assets/minicpm-ocr/ocr-benchmarks.png" alt="OCR 模型在 OmniDocBench v1.6、Real5、Wild、olmOCR-Bench、CHAOS-Bench 和 OCRBench v2 上的详细结果。" width="100%"></a></p>++</details>## 吞吐@@ -106,7 +152,27 @@ SDK 的 `pipeline.max_workers` 控制识别块请求数,`pipeline.page_workers<p align="center"><a href="../assets/minicpm-ocr/throughput-comparison.png"><img src="../assets/minicpm-ocr/throughput-comparison.png" alt="各 OCR 系统在加速配置下的吞吐;MiniCPM-OCR 1.0 为 1.2 pages/s,相对吞吐为 1.00×。" width="100%"></a></p>-这里报告各系统的解析吞吐,精确计时范围仍待补充。图片级并发度为 1 时,页内识别块仍可并发处理;实际部署速度还取决于页面内容、后端、并发和硬件配置。+详细吞吐与延迟对比如下。Pages / s 越高越好(↑);P95、P99 分别表示样本处理耗时的第 95、99 百分位,数值越低越好(↓)。++| 模型 | Pages / s ↑ | P95 样本耗时 ↓ | P99 样本耗时 ↓ |+| --- | ---: | ---: | ---: |+| **MiniCPM-OCR 1.0** | **1.217** | **2.1** | **3.8** |+| GLM-OCR | 1.179 | 2.0 | 4.7 |+| PaddleOCR-VL-1.6 | 0.818 | 2.8 | 6.0 |+| Xiaomi-OCR-0 | 0.724 | 4.0 | 7.9 |+| HunyuanOCR-1.5 | 0.416 | 7.2 | 9.2 |+| LightOnOCR-3 | 0.340 | 9.1 | 9.4 |+| MinerU2.5-Pro | 0.336 | 10.0 | 15.4 |+| OvisOCR2 | 0.317 | 10.4 | 19.6 |+| Unlimited-OCR2 | 0.246 | 11.8 | 19.5 |+| TeleOCR | 0.141 | 13.2 | 18.6 |+| Surya OCR 2 | 0.122 | 39.6 | 51.1 |+| dots.ocr | 0.112 | 27.4 | 63.0 |+| Nanonets-OCR-s | 0.102 | 21.7 | 144.4 |+| chandra-ocr-2 | 0.068 | 38.4 | 161.0 |+| DeepSeek-OCR-2 | 0.063 | 22.5 | 66.7 |++测试时一次处理一张图,图内的多个识别区域可并发处理。### 多并发吞吐@@ -120,10 +186,41 @@ SDK 的 `pipeline.max_workers` 控制识别块请求数,`pipeline.page_workers| 6 | 2.031 | 1.67× || **8** | **2.133** | **1.75×** |+## 典型示例++从左至右依次为原始文档、检测到的版面和渲染后的 Markdown。++### 英文文档++<p align="center"><a href="../assets/minicpm-ocr/minicpm-english-examples-3-column.gif"><img src="../assets/minicpm-ocr/minicpm-english-examples-3-column.gif" alt="英文文档解析动画:原始文档、检测到的版面和渲染后的 Markdown。" width="100%"></a></p>++### 中文文档++<p align="center"><a href="../assets/minicpm-ocr/minicpm-chinese-examples-3-column.gif"><img src="../assets/minicpm-ocr/minicpm-chinese-examples-3-column.gif" alt="中文文档解析动画:原始文档、检测到的版面和渲染后的 Markdown。" width="100%"></a></p>++<details>+<summary>更多案例</summary>++原图与解析结果对照。++**中文文档**++<p align="center"><a href="../assets/minicpm-ocr/minicpm-ocr-chinese-cases.png"><img src="../assets/minicpm-ocr/minicpm-ocr-chinese-cases.png" alt="中文案例的原图与解析结果:手写笔记、复杂公式、报纸、财务报表、盖印文件、插图与关键信息抽取。" width="100%"></a></p>++**英文文档**++<p align="center"><a href="../assets/minicpm-ocr/minicpm-ocr-english-cases.png"><img src="../assets/minicpm-ocr/minicpm-ocr-english-cases.png" alt="英文案例的原图与解析结果:手写笔记、历史文献、扫描文档、报纸、财务报表与关键信息抽取。" width="100%"></a></p>++</details>+## 复现测试设置、DSpark 对照要求与待补充的评测信息见 [复现文档](./benchmark_reproduction_zh.md);已记录的 SDK 实测环境见 [已验证版本](./SKILL.md#9-已验证版本)。+## 常见问题++安装、模型下载、显存、输入格式与输出异常等常见问题见 [FAQ](./faq_zh.md)。+## 许可MiniCPM-OCR 1.0 的模型权重、代码与文档均采用 [Apache License 2.0](../LICENSE) 开源。diff --git a/docs/minicpm_ocr_jev_en.md b/docs/minicpm_ocr_jev_en.mdindex 49be4ba..cb45ffd 100644--- a/docs/minicpm_ocr_jev_en.md+++ b/docs/minicpm_ocr_jev_en.md@@ -4,7 +4,7 @@[← Back to the homepage](../README.md) · [MiniCPM-OCR 1.0](./minicpm_ocr_1dot0_en.md)-MiniCPM-OCR Jev is a **2B OCR quality assessment model** for text, formula, and table regions. It assigns a score between 0 and 1 to existing OCR candidates, helping route results to human review or select the best of several candidates. This page covers the model highlights, architecture, inputs and outputs, and usage; see the [MiniCPM-OCR Jev benchmark table on the homepage](../README.md#jev-benchmark) for the full model comparison.+MiniCPM-OCR Jev is a **2B OCR correctness decision model** for text, formula, and table regions. Given an image and its corresponding OCR result, it returns a **quality score from 0 to 1** to help select reliable results and locate content that needs review. It works with different parsing models to assess OCR results at the region level and can select among several candidates for the same region.## Model Highlights@@ -26,7 +26,7 @@ MiniCPM-OCR Jev is **trained from Qwen3.5-2B**. It retains the architecture of t| Candidate content | OCR text and an image rendered from that text || Output | A quality score between 0 and 1; a higher score indicates that the model is more likely to judge the candidate correct |-Internally, the model uses a matched original region image, candidate text, and rendered image. When calling the [cloud API](./minicpm_ocr_jev_api_en.md), the Docker image, or the SDK service with a built-in renderer, provide the original region image, candidate text, and the correct region `category` (`text`, `formula`, or `table`); the service handles rendering. The SDK service without a renderer requires the caller to supply the rendered image. See the [deployment guide](./minicpm_ocr_jev_tutorial_en.md) for request fields and image encoding formats.+Internally, the model uses a matched original region image, candidate text, and rendered image. When calling the Docker image or the SDK service with a built-in renderer, provide the original region image, candidate text, and the correct region `category` (`text`, `formula`, or `table`); the service handles rendering. The SDK service without a renderer requires the caller to supply the rendered image. See the [deployment guide](./minicpm_ocr_jev_tutorial_en.md) for request fields and image encoding formats. [Usage examples](./minicpm_ocr_jev_api_en.md) for the free cloud API are coming soon.## Use cases@@ -34,6 +34,8 @@ Internally, the model uses a matched original region image, candidate text, andScore the parsed result for each region and choose a threshold using samples from your application. Results above the threshold proceed automatically; the rest go to human review. A higher threshold typically reduces the number of results that pass automatically, so monitor both the accuracy of automatically accepted results and the volume of human review.+The figure below shows accuracy at different review-free rates for legal documents, financial receipts, and complex documents, helping assess how accuracy changes as the volume of human review decreases.+<p align="center"><a href="../assets/minicpm-ocr/review-free-en.png"><img src="../assets/minicpm-ocr/review-free-en.png" alt="Accuracy versus review-free ratio for legal documents, financial receipts, and complex documents at different review-free ratios." width="100%"></a></p>### Selecting across models to improve parsing quality@@ -52,9 +54,11 @@ The figure below compares the original image with candidates 1 and 2, showing ho## Evaluation-[JevOCRBench](https://huggingface.co/datasets/openbmb/JevOCRBench) evaluates OCR quality assessment at the block level. Each sample contains an original region image, candidate OCR text, and a rendering of that text, with a human-annotated correct/incorrect label. The metric is **AUROC** (reported as AUROC ×100 on this page), which measures the ability to distinguish correct from incorrect candidates; higher is better.+[JevOCRBench](https://huggingface.co/datasets/openbmb/JevOCRBench) evaluates OCR correctness decisions at the block level. Each sample contains an original region image, candidate OCR text, and a rendering of that text, with a human-annotated correct/incorrect label. The metric is **AUROC** (reported as AUROC ×100 on this page), which measures the ability to distinguish correct from incorrect candidates; higher is better.++The table below reports overall and per-category AUROC (×100) on JevOCRBench, with the complete model comparison for text, formulas, and tables.-See the [JevOCRBench results table on the homepage](../README.md#jev-benchmark) for the full comparison of Overall, Text, Formula, and Table scores.+<p align="center"><a href="../assets/minicpm-ocr/jev-benchmark-score-table.png"><img src="../assets/minicpm-ocr/jev-benchmark-score-table.png" alt="Overall, text, formula, and table AUROC results on JevOCRBench, highlighting MiniCPM-OCR Jev." width="100%"></a></p>### Validated parsers@@ -80,34 +84,47 @@ To interpret scores as probabilities of correctness, also check whether score ra## Model weights-See [Model weights on the homepage](../README.md#model-weights) for the official weights. The FlagOS-adapted BF16 versions for multiple chips are listed under [Model downloads](./flagos_deploy_en.md#model-downloads).+MiniCPM-OCR Jev provides BF16 weights and GGUF, AWQ, and GPTQ quantized versions, available from the following links:++| Version | Hugging Face | ModelScope |+| :--- | :--- | :--- |+| BF16 | [MiniCPM-OCR-1.0-Jev](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev) | [MiniCPM-OCR-Jev](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev) |+| GGUF | [MiniCPM-OCR-1.0-Jev-gguf](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-gguf) | [MiniCPM-OCR-Jev-gguf](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-gguf) |+| AWQ | [MiniCPM-OCR-1.0-Jev-AWQ](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-AWQ) | [MiniCPM-OCR-Jev-AWQ](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-AWQ) |+| GPTQ | [MiniCPM-OCR-1.0-Jev-GPTQ](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-GPTQ) | [MiniCPM-OCR-Jev-GPTQ](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-GPTQ) |++The FlagOS-adapted BF16 versions for multiple chips are listed under [Model downloads](./flagos_deploy_en.md#model-downloads).## Inference| Deployment method | Guide || :--- | :--- |-| Cloud API | [Single-candidate scoring, best-of-N for one block, and batched best-of-N](./minicpm_ocr_jev_api_en.md) |+| Free cloud API | [Usage examples](./minicpm_ocr_jev_api_en.md) (coming soon) || Docker / SDK local deployment | [Environment setup, rendering options, and service startup](./minicpm_ocr_jev_tutorial_en.md) || vLLM backend | [Service configuration with and without a built-in renderer](./vllm_deploy_jev_en.md) || FlagOS | [Torch-FL deployment guide for multiple chips](./flagos_deploy_en.md) |-When using results from the cloud API, Docker, or a service with a built-in renderer, check `verdict` before using the score. Only `scored` means model scoring completed. Fixed return values for precheck, rendering, or forward-pass failures must not be treated as low model scores.+When using results from Docker or a service with a built-in renderer, check `verdict` before using the score. Only `scored` means model scoring completed. Fixed return values for precheck, rendering, or forward-pass failures must not be treated as low model scores.## Pipeline integrationWhen placing MiniCPM-OCR Jev after MiniCPM-OCR 1.0 or another parser, organize the data and results as follows:1. Preserve the page and region identifiers, original region images, region categories, and candidate OCR text while parsing documents.-2. Submit the original image, category, and candidate text through the API or a service with a built-in renderer, which renders and scores the candidate. If rendered images are already available, use a service without a renderer.+2. Submit the original image, category, and candidate text through the API of the Docker image or a service with a built-in renderer, which renders and scores the candidate. If rendered images are already available, use a service without a renderer.3. Check the return status and associate valid scores with their original candidates. Apply your chosen threshold to route results to automatic acceptance or human review; for multiple models, compare candidate scores within each region.4. Output the selected results in the original reading order and retain regions awaiting review so reviewers can refer back to the source.-Use `score` for single-candidate scoring, `score_best` to select among several candidates for one block, and `score_best_batch` for batched selection across multiple blocks. See the [API documentation](./minicpm_ocr_jev_api_en.md) for request fields, response handling, and Python examples.+Use `score` for single-candidate scoring, `score_best` to select among several candidates for one block, and `score_best_batch` for batched selection across multiple blocks. See the [Docker image API reference](./minicpm_ocr_jev_docker_api_en.md) for request fields, response handling, and usage examples.## Fine-tuningTo adapt the model to specific document types or parsers, prepare original region images, candidate text, corresponding rendered images, and human correct/incorrect labels, and reserve independent validation data. The [ms-swift fine-tuning guide](./finetune_jev_en.md) covers training and inference environments, the data format, binary classification head configuration, training commands, and JevOCRBench evaluation. A [Chinese version](./finetune_jev_zh.md) is also available.+## FAQ and Troubleshooting++See the [FAQ](./faq_en.md) for common questions about installation, model downloads, GPU memory, input formats, and unexpected outputs.+## LicenseMiniCPM-OCR Jev model weights, code, and documentation are released under the [Apache License 2.0](../LICENSE).diff --git a/docs/minicpm_ocr_jev_zh.md b/docs/minicpm_ocr_jev_zh.mdindex a47ffcc..5b2aa1c 100644--- a/docs/minicpm_ocr_jev_zh.md+++ b/docs/minicpm_ocr_jev_zh.md@@ -4,7 +4,7 @@[← 返回首页](../README_zh.md) · [MiniCPM-OCR 1.0](./minicpm_ocr_1dot0_zh.md)-MiniCPM-OCR Jev 是面向文本、公式和表格区域的 **2B OCR 质量判别模型**。它对已有 OCR 候选结果给出 0–1 评分,可用于安排人工复核或从多个候选结果中择优。本页介绍模型亮点、模型结构、输入输出和具体用法;完整模型对比见 [首页 MiniCPM-OCR Jev 评测表](../README_zh.md#jev-benchmark)。+MiniCPM-OCR Jev 是面向文本、公式和表格区域的 **2B OCR 正确性判别决策模型**。输入图像及对应的 OCR 结果,即可获得 **0–1 的质量评分**,用于筛选可靠结果、定位待复核内容。它可搭配不同解析模型,对 OCR 结果进行区域级判断,也可从同一区域的多个候选结果中择优。## 模型亮点@@ -26,7 +26,7 @@ MiniCPM-OCR Jev **基于 Qwen3.5-2B 训练**,保留其视觉编码器和语言| 候选内容 | OCR 识别文本,以及由该文本生成的渲染图 || 输出 | 0–1 质量评分,分数越高表示模型越倾向于判为正确 |-模型内部使用一一对应的区域原图、候选文本和渲染图。调用 [云端 API](./minicpm_ocr_jev_api_zh.md)、Docker 镜像或内置渲染器的 SDK 服务时,只需提供区域原图、候选文本和正确的区域类别 `category`(`text`、`formula` 或 `table`),渲染由服务完成;不带渲染器的 SDK 服务则需要调用方提供渲染图。请求字段与图像编码格式见对应的 [部署教程](./minicpm_ocr_jev_tutorial_zh.md)。+模型内部使用一一对应的区域原图、候选文本和渲染图。调用 Docker 镜像或内置渲染器的 SDK 服务时,只需提供区域原图、候选文本和正确的区域类别 `category`(`text`、`formula` 或 `table`),渲染由服务完成;不带渲染器的 SDK 服务则需要调用方提供渲染图。请求字段与图像编码格式见对应的 [部署教程](./minicpm_ocr_jev_tutorial_zh.md)。免费云端 API 的 [调用示例](./minicpm_ocr_jev_api_zh.md) 即将提供。## 使用场景@@ -34,6 +34,8 @@ MiniCPM-OCR Jev **基于 Qwen3.5-2B 训练**,保留其视觉编码器和语言对每个区域的解析结果评分,根据业务样本选择阈值:高于阈值的结果自动进入后续流程,其他结果交由人工复核。提高阈值通常会减少自动通过的数量,需同时关注自动通过结果的准确率和人工复核量。+下图展示法律文书、财务票据和复杂文档在不同免检比例下的准确率,用于评估减少人工复核量时的准确率变化。+<p align="center"><a href="../assets/minicpm-ocr/review-free-zh.png"><img src="../assets/minicpm-ocr/review-free-zh.png" alt="免检准确率与免检比例曲线:法律文书、财务票据和复杂文档在不同免检比例下的准确率。" width="100%"></a></p>### 多模型择优,提升解析质量@@ -52,9 +54,11 @@ MiniCPM-OCR Jev **基于 Qwen3.5-2B 训练**,保留其视觉编码器和语言## 评测-[JevOCRBench](https://huggingface.co/datasets/openbmb/JevOCRBench) 面向 OCR 的块级质量判别,每条样本包括区域原图、OCR 候选文本及其渲染图,真值为人工标注的正确/错误。评测使用 **AUROC**(本文按 AUROC ×100 展示),衡量模型区分正确与错误候选的能力,分数越高越好。+[JevOCRBench](https://huggingface.co/datasets/openbmb/JevOCRBench) 面向 OCR 的块级正确性判别,每条样本包括区域原图、OCR 候选文本及其渲染图,真值为人工标注的正确/错误。评测使用 **AUROC**(本文按 AUROC ×100 展示),衡量模型区分正确与错误候选的能力,分数越高越好。++下表展示 JevOCRBench 的整体与分类型 AUROC(×100),包含文本、公式和表格的完整模型对比。-整体、文本、公式与表格的完整模型对比统一见 [首页 JevOCRBench 实验表格](../README_zh.md#jev-benchmark)。+<p align="center"><a href="../assets/minicpm-ocr/jev-benchmark-score-table.png"><img src="../assets/minicpm-ocr/jev-benchmark-score-table.png" alt="JevOCRBench 各模型在整体、文本、公式和表格上的 AUROC 对比,突出 MiniCPM-OCR Jev。" width="100%"></a></p>### 已验证的解析器@@ -80,34 +84,47 @@ AUROC 衡量分数对正确和错误结果的区分能力,不能直接给出## 模型权重-正式权重入口统一见 [首页模型权重](../README_zh.md#model-weights);FlagOS 适配的 BF16 多芯片版本见 [下载列表](./flagos_deploy_zh.md#model-downloads)。+MiniCPM-OCR Jev 提供 BF16 与 GGUF、AWQ、GPTQ 量化版本,可从以下入口下载:++| 版本 | Hugging Face | ModelScope |+| :--- | :--- | :--- |+| BF16 | [MiniCPM-OCR-1.0-Jev](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev) | [MiniCPM-OCR-Jev](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev) |+| GGUF | [MiniCPM-OCR-1.0-Jev-gguf](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-gguf) | [MiniCPM-OCR-Jev-gguf](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-gguf) |+| AWQ | [MiniCPM-OCR-1.0-Jev-AWQ](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-AWQ) | [MiniCPM-OCR-Jev-AWQ](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-AWQ) |+| GPTQ | [MiniCPM-OCR-1.0-Jev-GPTQ](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-GPTQ) | [MiniCPM-OCR-Jev-GPTQ](https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-GPTQ) |++FlagOS 适配的 BF16 多芯片版本见 [下载列表](./flagos_deploy_zh.md#model-downloads)。## 推理| 接入方式 | 使用说明 || :--- | :--- |-| 云端 API | [单候选打分、单块选优与批量选优](./minicpm_ocr_jev_api_zh.md) |+| 免费云端 API | [调用示例](./minicpm_ocr_jev_api_zh.md)(即将提供) || Docker / SDK 本地部署 | [环境准备、渲染方式与服务启动](./minicpm_ocr_jev_tutorial_zh.md) || vLLM 后端 | [不带渲染器与内置渲染器的服务配置](./vllm_deploy_jev_zh.md) || FlagOS | [Torch-FL 多芯片部署指南](./flagos_deploy_zh.md) |-使用云端 API、Docker 或内置渲染器服务的返回结果时,先检查 `verdict` 再使用评分;只有 `scored` 表示完成模型打分,预检失败、渲染失败或前向失败时的固定返回值不能直接当作模型低分。+使用 Docker 或内置渲染器服务的返回结果时,先检查 `verdict` 再使用评分;只有 `scored` 表示完成模型打分,预检失败、渲染失败或前向失败时的固定返回值不能直接当作模型低分。## 流水线接入接在 MiniCPM-OCR 1.0 或其他解析器后时,可按以下顺序组织数据与结果:1. 解析文档时保留页面和区域标识、区域原图、区域类别及 OCR 候选文本。-2. 通过 API 或内置渲染器服务提交原图、类别和候选文本,由服务渲染并评分;已有渲染图时也可使用不带渲染器的服务。+2. 通过 Docker 或内置渲染器服务的 API 提交原图、类别和候选文本,由服务渲染并评分;已有渲染图时也可使用不带渲染器的服务。3. 检查返回状态并将有效评分与原候选关联,按所选阈值分配自动通过或人工复核;多模型场景按区域比较候选分数。4. 按原阅读顺序输出选定结果,并保留待复核区域,便于回看原文。-单候选打分使用 `score`,单块多候选选优使用 `score_best`,多块批量选优使用 `score_best_batch`。请求字段、响应读取和 Python 示例见 [API 文档](./minicpm_ocr_jev_api_zh.md)。+单候选打分使用 `score`,单块多候选选优使用 `score_best`,多块批量选优使用 `score_best_batch`。请求字段、响应读取和调用示例见 [Docker 镜像 API 参考](./minicpm_ocr_jev_docker_api_zh.md)。## 二次微调面向特定文档类型或解析器适配时,可准备区域原图、候选文本、对应渲染图和人工正误标签,并留出独立验证数据。[ms-swift 微调教程](./finetune_jev_zh.md) 提供训练与推理环境、数据格式、二分类头配置、训练命令和 JevOCRBench 评测流程;英文说明见 [Fine-tuning](./finetune_jev_en.md)。+## 常见问题与排查++安装、模型下载、显存、输入格式与输出异常等常见问题见 [FAQ](./faq_zh.md)。+## 许可MiniCPM-OCR Jev 的模型权重、代码与文档均采用 [Apache License 2.0](../LICENSE) 开源。diff --git a/sdk/README.pypi.md b/sdk/README.pypi.mdindex acec03d..253e0d7 100644--- a/sdk/README.pypi.md+++ b/sdk/README.pypi.md@@ -7,9 +7,9 @@<p align="center"><strong>MiniCPM-OCR · Fast, accurate parsing for real-world documents.</strong></p><p align="center">- <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md"><strong>MiniCPM-OCR 1.0</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md"><strong>MiniCPM-OCR 1.0 Guide</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0" title="Hugging Face"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0" title="ModelScope"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a> - <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md"><strong>MiniCPM-OCR Jev</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev" title="Hugging Face"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a>+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md"><strong>MiniCPM-OCR Jev Guide</strong></a> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev" title="Hugging Face"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/huggingface_logo-noborder.svg" width="19" height="18" alt="Hugging Face"></a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev" title="ModelScope"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo_padded.svg" width="25" height="14" alt="ModelScope"></a></p><p align="center">@@ -38,11 +38,11 @@### SOTA Performance, Higher Throughput-Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves a parsing throughput of 1.2 pages/s and the highest equally weighted average score across four document parsing benchmarks: OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench.+Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves 1.2 pages/s and the highest overall performance on OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench.<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/efficiency-performance-en.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/efficiency-performance-en.png" alt="Throughput and parsing quality of open-source OCR models. The horizontal axis shows throughput in pages per second on a logarithmic scale; the vertical axis shows the equally weighted average score across four document parsing benchmarks." width="90%"></a></p>-<sub>The average score weights OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench equally. The horizontal axis shows throughput in pages per second on a logarithmic scale. See the [reproduction guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/benchmark_reproduction_en.md) for test settings and reproduction details, and the [model guide throughput evaluation](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md#throughput) for each model's throughput.</sub>+<sub>See the [reproduction guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/benchmark_reproduction_en.md) for test settings and reproduction details, and the [model guide throughput evaluation](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md#throughput) for each model's throughput.</sub><a id="ocr-benchmark"></a>@@ -57,7 +57,7 @@ Among the open-source OCR models shown below, MiniCPM-OCR 1.0 achieves a parsing</details>-See the [OCR model guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md#evaluation) for per-benchmark bar charts and throughput details.+See the [MiniCPM-OCR 1.0 guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_1dot0_en.md#evaluation) for per-benchmark bar charts and throughput details.### Examples@@ -123,7 +123,7 @@ Jev scores for text, formula, and table recognition.<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/jev-case-en.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/jev-case-en.png" alt="Original images, two OCR candidates, and their Jev scores for text, formulas, and tables." width="100%"></a></p>-See the [model guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md), [use cases](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md#use-cases), [cross-model evaluation](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md#validated-parsers), and [decision examples](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md#examples).+See the [MiniCPM-OCR Jev model guide](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md) for more on usage, technical specifications, evaluation results, and efficiency results.<a id="quick-start"></a>