Skip to content

Fast, accurate OCR with correctness assessment.

release: publish 1.0.1 with repository README on PyPI

caowanxia12358589fc00d74
diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml
new file mode 100644
index 0000000..f0f4564
--- /dev/null
+++ b/.github/workflows/publish-pypi.yml
@@ -0,0 +1,88 @@
+name: Publish SDK to PyPI
+
+on:
+ push:
+ tags:
+ - "sdk-v*"
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v6
+ with:
+ persist-credentials: false
+ - uses: actions/setup-python@v6
+ with:
+ python-version: "3.12"
+ - name: Install build tools
+ run: python -m pip install --upgrade build twine
+ - name: Check release tag
+ run: |
+ python - <<'PY'
+ import ast
+ import os
+ from pathlib import Path
+
+ source = ast.parse(Path("sdk/minicpmvocr/_version.py").read_text())
+ version = next(
+ ast.literal_eval(node.value)
+ for node in source.body
+ if isinstance(node, ast.Assign)
+ and any(isinstance(target, ast.Name) and target.id == "__version__" for target in node.targets)
+ )
+ reference = os.environ["GITHUB_REF"]
+ if reference.startswith("refs/tags/"):
+ expected = f"refs/tags/sdk-v{version}"
+ if reference != expected:
+ raise SystemExit(f"Release tag {reference!r} must match {expected!r}")
+ print(f"Building minicpm-ocr {version}")
+ PY
+ - name: Build SDK distributions
+ run: |
+ python -m unittest discover -s scripts/tests -p test_prepare_pypi_readme.py
+ python scripts/prepare_pypi_readme.py
+ python -m build sdk --outdir dist
+ - name: Validate package metadata
+ run: python -m twine check --strict dist/*
+ - name: Test installed wheel
+ run: |
+ python -m venv "$RUNNER_TEMP/sdk-smoke"
+ "$RUNNER_TEMP/sdk-smoke/bin/python" -m pip install dist/*.whl
+ "$RUNNER_TEMP/sdk-smoke/bin/minicpmvocr" --help
+ "$RUNNER_TEMP/sdk-smoke/bin/minicpmvocr" parse --help
+ "$RUNNER_TEMP/sdk-smoke/bin/python" - <<'PY'
+ from importlib.metadata import version
+ from importlib.resources import files
+ import minicpmvocr
+
+ assert version("minicpm-ocr") == minicpmvocr.__version__
+ assert files("minicpmvocr").joinpath("configs/minicpmvocr.yaml").is_file()
+ print(f"Installed minicpm-ocr {minicpmvocr.__version__}")
+ PY
+ - uses: actions/upload-artifact@v5
+ with:
+ name: sdk-distributions
+ path: dist/
+ if-no-files-found: error
+
+ publish:
+ if: startsWith(github.ref, 'refs/tags/sdk-v')
+ needs: build
+ runs-on: ubuntu-latest
+ environment:
+ name: pypi
+ url: https://pypi.org/p/minicpm-ocr
+ permissions:
+ id-token: write
+ steps:
+ - uses: actions/download-artifact@v6
+ with:
+ name: sdk-distributions
+ path: dist/
+ - name: Publish to PyPI
+ uses: pypa/gh-action-pypi-publish@release/v1
diff --git a/docs/pypi_publish.md b/docs/pypi_publish.md
index eb7267f..b16a56d 100644
--- a/docs/pypi_publish.md
+++ b/docs/pypi_publish.md
@@ -4,7 +4,18 @@
SDK 源码保留在官方仓库 [OpenBMB/MiniCPM-OCR](https://github.com/OpenBMB/MiniCPM-OCR) 的 `sdk/`。PyPI 发行包名为 `minicpm-ocr`,Python 导入名和命令均为 `minicpmvocr`。版本号统一维护在 [`sdk/minicpmvocr/_version.py`](../sdk/minicpmvocr/_version.py)。
-本仓库当前没有内置的 PyPI 自动发布工作流;推送代码或 SDK 标签不会自动上传包。以下步骤供项目维护者手动构建、检查和发布。
+PyPI 介绍以根目录 `README.md` 为唯一内容来源。`scripts/prepare_pypi_readme.py` 自动生成 `sdk/README.pypi.md`,将相对图片、文档和页内跳转转换为官方仓库的绝对链接,保留代码示例。生成文件随源码包分发,不手动维护第二份正文。
+
+## GitHub Actions 自动发布
+
+PyPI 项目的 **Manage → Publishing** 中应配置 GitHub 可信发布者:Owner 为 `OpenBMB`,Repository 为 `MiniCPM-OCR`,Workflow 为 `publish-pypi.yml`,Environment 为 `pypi`。
+
+`.github/workflows/publish-pypi.yml` 使用 OIDC 发布,无需保存 PyPI API Token。手动运行工作流仅构建检查;推送与 SDK 版本一致的 `sdk-v*` 标签会在构建、元数据和安装检查通过后上传到 PyPI。例如版本 `1.0.1`:
+
+```bash
+git tag sdk-v1.0.1
+git push origin sdk-v1.0.1
+```
## 构建与检查
@@ -12,6 +23,7 @@ SDK 源码保留在官方仓库 [OpenBMB/MiniCPM-OCR](https://github.com/OpenBMB
```bash
python -m pip install --upgrade build twine
+python scripts/prepare_pypi_readme.py
python -m build sdk --outdir sdk/dist
python -m twine check --strict sdk/dist/*
```
@@ -28,10 +40,10 @@ python -m twine upload sdk/dist/*
按提示提供 PyPI API Token。上传方式见 [PyPA 官方发布教程](https://packaging.python.org/en/latest/tutorials/packaging-projects/#uploading-the-distribution-archives)。同一版本不能覆盖上传,后续发布需递增版本号。
-确认 [PyPI 项目页](https://pypi.org/project/minicpm-ocr/) 出现对应版本后,即可安装。以下以 `1.0.0` 为例:
+确认 [PyPI 项目页](https://pypi.org/project/minicpm-ocr/) 出现对应版本后,即可安装。以下以 `1.0.1` 为例:
```bash
-python -m pip install "minicpm-ocr[all]==1.0.0"
+python -m pip install "minicpm-ocr[all]==1.0.1"
```
PaddlePaddle GPU 运行时需单独安装,具体命令见[安装与推理教程](./minicpmvocr_tutorial.md#1-sdk-环境配置)。
diff --git a/scripts/prepare_pypi_readme.py b/scripts/prepare_pypi_readme.py
new file mode 100644
index 0000000..bdd6b78
--- /dev/null
+++ b/scripts/prepare_pypi_readme.py
@@ -0,0 +1,86 @@
+"""Generate the SDK's PyPI description from the repository README.
+
+README.md remains the source of truth. The generated file is included in the
+sdist so building a wheel from a standalone source distribution also works.
+"""
+
+import argparse
+import posixpath
+import re
+from pathlib import Path
+from urllib.parse import quote, unquote, urlsplit, urlunsplit
+
+
+ROOT = Path(__file__).resolve().parents[1]
+DEFAULT_REPOSITORY = "OpenBMB/MiniCPM-OCR"
+HTML_URL = re.compile(r"(?P<prefix>\b(?:src|href)\s*=\s*)(?P<quote>[\"'])(?P<url>.*?)(?P=quote)")
+MARKDOWN_URL = re.compile(r"(?P<prefix>!?\[[^\]\n]*\]\()(?P<url><[^>\n]+>|[^\s)]+)")
+
+
+def render_readme(source, repository=DEFAULT_REPOSITORY, ref="main"):
+ """Rewrite repository links without changing code examples or prose."""
+ github = f"https://github.com/{repository}/blob/{quote(ref, safe='')}"
+ raw = f"https://raw.githubusercontent.com/{repository}/{quote(ref, safe='')}"
+
+ def absolute_url(url, image=False):
+ parts = urlsplit(url)
+ if parts.scheme or parts.netloc:
+ return url
+ if not parts.path:
+ # PyPI sanitizes HTML anchors; use the original README's anchors.
+ return f"{github}/README.md{url}"
+ path = posixpath.normpath(unquote(parts.path))
+ path = quote(path, safe="/@-._~")
+ base = raw if image or path.startswith("assets/") else github
+ return urlunsplit(("https", urlsplit(base).netloc, f"{urlsplit(base).path}/{path}", parts.query, parts.fragment))
+
+ def html_url(match):
+ url = absolute_url(match["url"], image=match["prefix"].lstrip().startswith("src"))
+ return f'{match["prefix"]}{match["quote"]}{url}{match["quote"]}'
+
+ def markdown_url(match):
+ url = match["url"]
+ angle = url.startswith("<")
+ url = absolute_url(url[1:-1] if angle else url, image=match["prefix"].startswith("!"))
+ return match["prefix"] + (f"<{url}>" if angle else url)
+
+ lines = []
+ fence = None
+ for line in source.splitlines(keepends=True):
+ marker = re.match(r"^\s{0,3}(`{3,}|~{3,})", line)
+ if marker:
+ run = marker[1]
+ if fence is None:
+ fence = run
+ elif run[0] == fence[0] and len(run) >= len(fence):
+ fence = None
+ lines.append(line)
+ elif fence is not None:
+ lines.append(line)
+ else:
+ # Split around inline code so paths in commands remain executable.
+ pieces = re.split(r"(`+[^`]*`+)", line)
+ for index in range(0, len(pieces), 2):
+ pieces[index] = MARKDOWN_URL.sub(markdown_url, HTML_URL.sub(html_url, pieces[index]))
+ lines.append("".join(pieces))
+ return "<!-- Generated from the repository README.md; do not edit manually. -->\n\n" + "".join(lines)
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("--repository", default=DEFAULT_REPOSITORY, help="GitHub owner/repository")
+ parser.add_argument("--ref", default="main", help="GitHub branch, tag or commit used by links")
+ parser.add_argument("--check", action="store_true", help="Fail if the generated description is stale")
+ args = parser.parse_args()
+ destination = ROOT / "sdk" / "README.pypi.md"
+ description = render_readme((ROOT / "README.md").read_text(encoding="utf-8"), args.repository, args.ref)
+ if args.check:
+ if not destination.is_file() or destination.read_text(encoding="utf-8") != description:
+ parser.exit(1, "PyPI README is stale; run python scripts/prepare_pypi_readme.py\n")
+ else:
+ destination.write_text(description, encoding="utf-8")
+ print(f"Generated {destination.relative_to(ROOT)}")
+
+
+if __name__ == "__main__":
+ main()
diff --git a/scripts/tests/test_prepare_pypi_readme.py b/scripts/tests/test_prepare_pypi_readme.py
new file mode 100644
index 0000000..cfe404d
--- /dev/null
+++ b/scripts/tests/test_prepare_pypi_readme.py
@@ -0,0 +1,34 @@
+"""Check that PyPI link conversion preserves executable README examples."""
+
+import sys
+import unittest
+from pathlib import Path
+
+sys.path.insert(0, str(Path(__file__).resolve().parents[1]))
+from prepare_pypi_readme import render_readme
+
+
+class PyPIReadmeTests(unittest.TestCase):
+ def test_documents_images_and_anchors(self):
+ source = '[Guide](./docs/guide.md#usage) <img src="./assets/a.png"> <a href="#start">Go</a>'
+ result = render_readme(source, "team/repository")
+ self.assertIn("https://github.com/team/repository/blob/main/docs/guide.md#usage", result)
+ self.assertIn("https://raw.githubusercontent.com/team/repository/main/assets/a.png", result)
+ self.assertIn("https://github.com/team/repository/blob/main/README.md#start", result)
+
+ def test_code_examples_are_not_rewritten(self):
+ source = '`[literal](./example)`\n```python\n[code](./example)\n```\n~~~text\n<img src="./example">\n~~~\n'
+ self.assertTrue(render_readme(source).endswith(source))
+
+ def test_absolute_and_email_links_are_unchanged(self):
+ source = '[Web](https://example.com/a) [Mail](mailto:[email protected]) <img src="https://example.com/a.png">'
+ self.assertTrue(render_readme(source).endswith(source))
+
+ def test_markdown_images_spaces_and_release_ref(self):
+ result = render_readme('![Image](<./assets/a b.png>) [Guide](./docs/guide.md)', "team/repository", "sdk-v1.0.1")
+ self.assertIn("https://raw.githubusercontent.com/team/repository/sdk-v1.0.1/assets/a%20b.png", result)
+ self.assertIn("https://github.com/team/repository/blob/sdk-v1.0.1/docs/guide.md", result)
+
+
+if __name__ == "__main__":
+ unittest.main()
diff --git a/sdk/MANIFEST.in b/sdk/MANIFEST.in
index a661adf..36b81a7 100644
--- a/sdk/MANIFEST.in
+++ b/sdk/MANIFEST.in
@@ -1,4 +1,5 @@
include LICENSE
+include README.pypi.md
recursive-include minicpmvocr *.py *.yaml py.typed
prune scripts
prune tests
diff --git a/sdk/README.pypi.md b/sdk/README.pypi.md
new file mode 100644
index 0000000..268a425
--- /dev/null
+++ b/sdk/README.pypi.md
@@ -0,0 +1,199 @@
+<!-- Generated from the repository README.md; do not edit manually. -->
+
+<div align="center">
+
+<img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/release-hero.svg" alt="MiniCPM-OCR: fast, accurate document parsing into text, tables, and formulas, with a lightning arrow connecting documents to structured results; a decision model helps identify regions that need review (illustration)." width="100%">
+
+<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>&ensp;<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>&ensp;<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>
+ &emsp;
+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_en.md"><strong>MiniCPM-OCR Jev</strong></a>&ensp;<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>&ensp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-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"><sub>
+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#quick-start">Get Started</a> &nbsp;·&nbsp;
+ <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#model-weights">Model Weights</a> &nbsp;·&nbsp;
+ <a href="https://platform.modelbest.cn/console/playground/document-parse">Online Demo (China)</a> &nbsp;·&nbsp;
+ <a href="https://platform.modelbest.ai/console/playground/document-parse">Online Demo (Global)</a>
+ &nbsp;|&nbsp; English &nbsp;·&nbsp; <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README_zh.md">中文</a>
+</sub></p>
+
+</div>
+
+<a id="overview"></a>
+
+**MiniCPM-OCR** is a family of models for efficient document parsing and text recognition. **MiniCPM-OCR 1.0** parses Chinese and English documents and PDFs, balancing quality and efficiency across challenging inputs such as scans, photographs, curved pages, and recaptured documents. **MiniCPM-OCR Jev** evaluates OCR results at the region level, distinguishing problematic regions from reliable ones. It works with different parsing models to help users locate content that needs review.
+
+## MiniCPM-OCR 1.0
+
+**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. Its key features include:
+
+- 🏆 **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, a full-featured API, and established agent workflows** for application integration and customization. Online demos are available for [China](https://platform.modelbest.cn/console/playground/document-parse) and [global](https://platform.modelbest.ai/console/playground/document-parse) users.
+
+### 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.
+
+<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>
+
+<a id="ocr-benchmark"></a>
+
+### Benchmark Comparisons
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/benchmark-radar.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/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>
+
+<details>
+<summary>View complete MiniCPM-OCR 1.0 evaluation results</summary>
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/ocr-benchmarks.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/ocr-benchmarks.png" alt="Detailed OCR model results on OmniDocBench v1.6, Real5, Wild, olmOCR-Bench, CHAOS-Bench, and OCRBench v2." width="100%"></a></p>
+
+</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.
+
+### Examples
+
+Left to right: original document, detected layout, and rendered Markdown.
+
+#### English Documents
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/minicpm-english-examples-3-column.gif"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/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="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/minicpm-chinese-examples-3-column.gif"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/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.
+
+**English Documents**
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/minicpm-ocr-english-cases.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/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>
+
+**Chinese Documents**
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/minicpm-ocr-chinese-cases.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/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>
+
+</details>
+
+## MiniCPM-OCR Jev
+
+**MiniCPM-OCR Jev** is an **OCR quality decision model** for text, formulas, and tables. 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.
+
+- 🛡️ **Strong performance in a small model**: With only 2B parameters, MiniCPM-OCR Jev achieves an AUROC (×100) of 93.6 on [JevOCRBench](https://huggingface.co/datasets/openbmb/JevOCRBench), **outperforming JEV-35B-A3B (90.1)** and approaching Qwen3.5-397B-A17B (93.8).
+- 🧩 **Consistent generalization**: Across parsing results from MiniCPM-OCR 1.0, GLM-OCR, PaddleOCR-VL-1.6, and Xiaomi-OCR-0, its AUROC (×100) ranges from **91.9 to 93.4**.
+
+<a id="jev-benchmark"></a>
+
+<a id="评测表现"></a>
+
+### Evaluation Results
+
+The table below reports overall and per-category AUROC (×100) on JevOCRBench. Higher values indicate better discrimination between correct and incorrect parsing results.
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/jev-benchmark-score-table.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/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>
+
+<a id="判别力跨ocr模型泛化"></a>
+<a id="使用场景"></a>
+<a id="用法一块级直通省掉大部分人工核验"></a>
+<a id="用法二多专家聚合扩展-ocr-的能力边界"></a>
+
+### Review-Free Accuracy
+
+Accuracy at different review-free rates across three document types.
+
+<p align="center"><a href="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/review-free-en.png"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/review-free-en.png" alt="Accuracy versus review-free rate for legal documents, financial receipts, and complex documents." width="100%"></a></p>
+
+### Decision Examples
+
+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).
+
+<a id="quick-start"></a>
+
+## Using MiniCPM-OCR
+
+Choose how to integrate MiniCPM-OCR 1.0 and MiniCPM-OCR Jev:
+
+<a id="使用-agent-skill-部署推荐"></a>
+
+### Skill
+
+Ask a coding agent to follow the MiniCPM-OCR 1.0 [skill](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/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.
+
+### API
+
+Use the API to access MiniCPM-OCR 1.0 recognition and MiniCPM-OCR Jev quality scoring.
+
+[MiniCPM-OCR 1.0 API example](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_api_en.md) &emsp;·&emsp; [MiniCPM-OCR Jev API example](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_api_en.md) (coming soon)
+
+<a id="手动部署"></a>
+
+<a id="本地部署"></a>
+
+### Local Deployment
+
+Run the models on your own hardware: MiniCPM-OCR 1.0 parses PDFs and images into Markdown or JSON, while MiniCPM-OCR Jev scores the parsing results.
+
+[MiniCPM-OCR 1.0 deployment tutorial](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpmvocr_tutorial_en.md) · [MiniCPM-OCR Jev deployment tutorial](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_tutorial_en.md)
+
+<a id="模型微调"></a>
+
+### Fine-Tuning
+
+| Model | Fine-tuning tutorial |
+| :--- | :--- |
+| MiniCPM-OCR 1.0 | [LLaMA-Factory](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/llamafactory_minicpm_ocr_french_en.md) · [Swift](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/swift_minicpm_ocr_french_en.md) |
+| MiniCPM-OCR Jev | [Swift](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/finetune_jev_en.md) |
+
+<a id="resources"></a>
+<a id="model-weights"></a>
+
+## Model Weights
+
+<table border="1" cellspacing="0" cellpadding="8">
+<tr>
+<td nowrap>Model</td>
+<td width="360">Description</td>
+<td nowrap width="170">Main Model Weights</td>
+<td nowrap width="150">DSpark Heads</td>
+</tr>
+<tr>
+<td nowrap>MiniCPM&#8209;OCR&nbsp;<strong>1.0</strong></td>
+<td width="360">Efficient document parsing and text recognition for Chinese and English documents and PDFs, balancing quality and speed across scans, photographs, curved pages, and recaptured documents.</td>
+<td nowrap><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>BF16</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-gguf">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-gguf"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>GGUF</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-AWQ">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-AWQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>AWQ</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-GPTQ">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-GPTQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>GPTQ</strong></td>
+<td nowrap><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-DSpark"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>BF16</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark-gguf">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-DSpark-gguf"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>GGUF</strong></td>
+</tr>
+<tr>
+<td nowrap>MiniCPM&#8209;OCR&nbsp;<strong>Jev</strong></td>
+<td width="360">An OCR quality decision model for text, formulas, and tables. Given an image and its OCR result, it returns a quality score from 0 to 1.</td>
+<td align="center" valign="middle" colspan="2"><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-Jev"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>BF16</strong>&emsp;<a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-gguf">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-Jev-gguf"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>GGUF</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-AWQ">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-Jev-AWQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>AWQ</strong>&emsp;<a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-GPTQ">🤗</a>&nbsp;&nbsp;<a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-1.0-Jev-GPTQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a>&nbsp;<strong>GPTQ</strong></td>
+</tr>
+</table>
+
+## 💡 FAQ and Troubleshooting
+
+See the [FAQ](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/faq_en.md) for common questions about installation, model downloads, GPU memory, input formats, and unexpected outputs.
+
+## 📄 License
+
+The entire project is released under the [Apache License 2.0](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/LICENSE), including code, documentation, and model weights for MiniCPM-OCR 1.0 and MiniCPM-OCR Jev.
diff --git a/sdk/minicpmvocr/_version.py b/sdk/minicpmvocr/_version.py
index 5becc17..5c4105c 100644
--- a/sdk/minicpmvocr/_version.py
+++ b/sdk/minicpmvocr/_version.py
@@ -1 +1 @@
-__version__ = "1.0.0"
+__version__ = "1.0.1"
diff --git a/sdk/pyproject.toml b/sdk/pyproject.toml
index 6516a19..9dccf42 100644
--- a/sdk/pyproject.toml
+++ b/sdk/pyproject.toml
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
name = "minicpm-ocr"
dynamic = ["version"]
description = "MiniCPM-V OCR SDK: document layout + VLM orchestration frontend with pluggable inference backends"
-readme = { text = "MiniCPM-OCR SDK for document parsing with pluggable inference backends.", content-type = "text/plain" }
+readme = { file = "README.pypi.md", content-type = "text/markdown" }
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["LICENSE"]