Fast, accurate OCR with correctness assessment.
docs: add the hosted MiniCPM-OCR Jev API guide
LuMingcongdbae41f805fa
diff --git a/README.md b/README.mdindex c30497d..20021dc 100644--- a/README.md+++ b/README.md@@ -153,7 +153,7 @@ If you have already cloned this repository, you can use `./docs/SKILL_en.md` andUse the Free API to access MiniCPM-OCR 1.0 recognition and MiniCPM-OCR Jev quality scoring.-[MiniCPM-OCR 1.0 API example](./docs/minicpm_ocr_api_en.md)  ·  [MiniCPM-OCR Jev API example](./docs/minicpm_ocr_jev_api_en.md) (coming soon)+[MiniCPM-OCR 1.0 API example](./docs/minicpm_ocr_api_en.md)  ·  [MiniCPM-OCR Jev API example](./docs/minicpm_ocr_jev_api_en.md)<a id="手动部署"></a>diff --git a/README_zh.md b/README_zh.mdindex 969f0d8..27cc451 100644--- a/README_zh.md+++ b/README_zh.md@@ -151,7 +151,7 @@ Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev通过免费API接入 MiniCPM-OCR 1.0 的识别能力和 MiniCPM-OCR Jev 的质量判别能力。-[MiniCPM-OCR 1.0 调用示例](./docs/minicpm_ocr_api_zh.md)  ·  [MiniCPM-OCR Jev 调用示例](./docs/minicpm_ocr_jev_api_zh.md)(即将提供)+[MiniCPM-OCR 1.0 调用示例](./docs/minicpm_ocr_api_zh.md)  ·  [MiniCPM-OCR Jev 调用示例](./docs/minicpm_ocr_jev_api_zh.md)<a id="手动部署"></a>diff --git a/docs/minicpm_ocr_jev_api_en.md b/docs/minicpm_ocr_jev_api_en.mdindex 6767e9e..7a10a24 100644--- a/docs/minicpm_ocr_jev_api_en.md+++ b/docs/minicpm_ocr_jev_api_en.md@@ -1,5 +1,145 @@-## MiniCPM-OCR Jev Usage Example+# MiniCPM-OCR Jev API Calls-[中文版](minicpm_ocr_jev_api_zh.md)+[← Back to README](../README.md#api) · [中文](./minicpm_ocr_jev_api_zh.md) · [MiniCPM-OCR 1.0 API calls](./minicpm_ocr_api_en.md)-We will provide concrete usage instructions in the next 1 to 2 days. The methods are similar to the MiniCPM-OCR 1.0 API.+Use the OpenAI-compatible Chat Completions API to assign a quality score from 0 to 1 to an existing OCR candidate, or to pick the highest-scoring candidate for one image region. The API does not recognize the image again and does not rewrite the text. You provide the service URL, API key, model name, original region image, and candidate text; the service renders the text.++## Endpoint and Authentication++| Setting | Description |+| :--- | :--- |+| `JEV_BASE_URL` | `https://api.modelbest.cn/v1`, including `/v1` but excluding `/chat/completions` |+| `JEV_API_KEY` | API key created on the [ModelBest platform](https://platform.modelbest.cn), sent as `Authorization: Bearer <API_KEY>` |+| `JEV_MODEL` | `MiniCPM-OCR-Jev`, case-sensitive |++```bash+export JEV_BASE_URL="https://api.modelbest.cn/v1"+export JEV_API_KEY="<your API key>"+export JEV_MODEL="MiniCPM-OCR-Jev"+```++Scoring requests use `POST ${JEV_BASE_URL}/chat/completions` with a JSON body and `stream: false`. First, check which models the key can access:++```bash+curl -fsS "${JEV_BASE_URL%/}/models" \+ -H "Authorization: Bearer ${JEV_API_KEY}"+```++Confirm that the returned `data` list contains an entry whose `id` is `MiniCPM-OCR-Jev` before sending a scoring request. Images must be PNG or JPEG, encoded as `data:image/png;base64,...` or `data:image/jpeg;base64,...`. One request accepts at most 64 scoring items. PDF files, image URLs, and multipart uploads are not accepted directly.++## Python Example: Score One Candidate++Install the client. Save the original region image as `block.png` and the corresponding UTF-8 candidate text as `ocr.txt`:++```bash+pip install openai+```++```python+import base64+import json+import os+from pathlib import Path++from openai import OpenAI++client = OpenAI(+ api_key=os.environ["JEV_API_KEY"],+ base_url=os.environ["JEV_BASE_URL"].rstrip("/"),+)+image_base64 = base64.b64encode(Path("block.png").read_bytes()).decode("utf-8")+ocr_text = Path("ocr.txt").read_text(encoding="utf-8")++response = client.chat.completions.create(+ model=os.environ["JEV_MODEL"],+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "image_url",+ "image_url": {"url": f"data:image/png;base64,{image_base64}"},+ },+ {"type": "text", "text": ocr_text},+ ],+ }+ ],+ extra_body={+ "minicpm_ocr_jev": {"mode": "score", "category": "text"},+ },+ stream=False,+)++result = json.loads(response.choices[0].message.content)+item = result["results"][0]+if item["verdict"] != "scored":+ raise RuntimeError(f"{item['verdict']}: {item.get('detail', '')}")+print(item["prob_yes"])+```++The scoring settings belong in the top-level `minicpm_ocr_jev` object, not inside `messages`. The official Python SDK sends that object through `extra_body`. The score payload is a JSON string in `choices[0].message.content` and must be parsed again. `prob_yes` is a model score only when `verdict` is `scored`.++## Modes and Content Categories++| `mode` | Use |+| :--- | :--- |+| `score` | Score each candidate on its own. For several regions, put each one in `items` with `case_id`, `image`, `ocr_text`, and `category` |+| `score_best` | Pick the highest score among candidates for one original image. Put the candidates in `candidates` |+| `score_best_batch` | Pick the best candidate for each of several regions. Each item has its own `image`, `category`, and `candidates` |++| `category` | Candidate text |+| :--- | :--- |+| `text` | Prose or Markdown, with formulas kept as LaTeX |+| `formula` | Formula LaTeX. Escape backslashes in JSON, for example `"$$\\frac{1}{2}$$"` |+| `table` | An HTML table. Convert OTSL or Markdown tables to HTML first |++`category` must match the real type of the region. A mismatch raises no error, but the score is off. When using `items`, set the image, text, and category on each item, and also place those same original images and candidate texts in `messages`.++### Selecting among Candidates for One Region++Keep the text in `messages` aligned with `candidates`, and separate the candidates with a blank line. Choose the highest score only among candidates whose `verdicts[i]` is `scored`. `best_text` is the selected input text, not a new or corrected transcription. Selection does not use `threshold`. If every candidate fails to score, the API still returns `best_index: 0` and the first candidate text; check `verdicts[best_index]` before using it.++```python+response = client.chat.completions.create(+ model=os.environ["JEV_MODEL"],+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "image_url",+ "image_url": {"url": f"data:image/png;base64,{image_base64}"},+ },+ {"type": "text", "text": "合计金额:128.00 元\n\n合计金额:123.00 元"},+ ],+ }+ ],+ extra_body={+ "minicpm_ocr_jev": {+ "mode": "score_best",+ "category": "text",+ "candidates": ["合计金额:128.00 元", "合计金额:123.00 元"],+ },+ },+ stream=False,+)+picked = json.loads(response.choices[0].message.content)+index = picked["best_index"]+if picked["verdicts"][index] != "scored":+ raise RuntimeError("No candidate was scored; the returned text is only a fallback")+print(picked["best_text"], picked["scores"][index])+```++For several regions, set `mode` to `score_best_batch`. `results[i]` follows the order of `items[i]`, and `best_index` refers to that region's own `candidates`.++## Score Status++| `verdict` | Score | Meaning |+| :--- | :--- | :--- |+| `scored` | A model score from 0 to 1 | Scoring finished |+| `precheck_reject`, `render_error`, `missing_original_image` | `0.0` | The text or original image never reached the model |+| `encode_error`, `forward_error` | `-1.0` | The image could not be decoded, or model scoring failed |++`0.0` and `-1.0` are fixed values returned on failure. They are not low model scores. In a `score` response, `summary.pass_rate` is the share of items that finished scoring (`scored / total`). `throughput_rate` is the share that met the threshold, not a rate per second. The default threshold is 0.5. It is used only for that summary and does not change the raw scores.++This page describes the hosted Chat Completions API. The Docker image uses a different, flat request body; the two are not interchangeable. See the [Docker image API](./minicpm_ocr_jev_docker_api_en.md). To recognize a region before scoring it, see [MiniCPM-OCR 1.0 API calls](./minicpm_ocr_api_en.md).diff --git a/docs/minicpm_ocr_jev_api_zh.md b/docs/minicpm_ocr_jev_api_zh.mdindex 685ee0c..ea0af43 100644--- a/docs/minicpm_ocr_jev_api_zh.md+++ b/docs/minicpm_ocr_jev_api_zh.md@@ -1,5 +1,145 @@-## MiniCPM-OCR Jev 调用示例+# MiniCPM-OCR Jev API 调用-[English](minicpm_ocr_jev_api_en.md)+[← 返回首页](../README_zh.md#api) · [English](./minicpm_ocr_jev_api_en.md) · [MiniCPM-OCR 1.0 API 调用](./minicpm_ocr_api_zh.md)-我们将在未来 1 到 2 天提供具体的使用方法,整体使用方法与 MiniCPM-OCR 1.0 API 类似。+通过 OpenAI 兼容的 Chat Completions 接口,对已有 OCR 候选结果给出 0–1 质量分,或从同一图像块的多个候选中选出分数最高的一条。接口不重新识别,也不改写文本。调用方准备服务地址、API Key、模型名、区域原图和候选文本即可;文本渲染图由服务端生成。++## 接口与鉴权++| 配置 | 说明 |+| :--- | :--- |+| `JEV_BASE_URL` | `https://api.modelbest.cn/v1`,包含 `/v1`,不包含 `/chat/completions` |+| `JEV_API_KEY` | 在 [ModelBest 平台](https://platform.modelbest.cn) 创建的 API Key,通过 `Authorization: Bearer <API_KEY>` 发送 |+| `JEV_MODEL` | `MiniCPM-OCR-Jev`,区分大小写 |++```bash+export JEV_BASE_URL="https://api.modelbest.cn/v1"+export JEV_API_KEY="<你的 API Key>"+export JEV_MODEL="MiniCPM-OCR-Jev"+```++评分请求使用 `POST ${JEV_BASE_URL}/chat/completions`,请求体为 JSON,并设置 `stream: false`。可先检查当前 Key 能访问的模型:++```bash+curl -fsS "${JEV_BASE_URL%/}/models" \+ -H "Authorization: Bearer ${JEV_API_KEY}"+```++确认返回的 `data` 列表中包含 `id` 为 `MiniCPM-OCR-Jev` 的模型,再发送评分请求。图片使用 PNG 或 JPEG,编码为 `data:image/png;base64,...` 或 `data:image/jpeg;base64,...`。单次请求最多 64 条评分项;不支持直接传入 PDF、图片 URL 或 multipart 文件。++## Python 单候选评分++安装客户端。将区域原图保存为 `block.png`,对应的 UTF-8 候选文本保存为 `ocr.txt`:++```bash+pip install openai+```++```python+import base64+import json+import os+from pathlib import Path++from openai import OpenAI++client = OpenAI(+ api_key=os.environ["JEV_API_KEY"],+ base_url=os.environ["JEV_BASE_URL"].rstrip("/"),+)+image_base64 = base64.b64encode(Path("block.png").read_bytes()).decode("utf-8")+ocr_text = Path("ocr.txt").read_text(encoding="utf-8")++response = client.chat.completions.create(+ model=os.environ["JEV_MODEL"],+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "image_url",+ "image_url": {"url": f"data:image/png;base64,{image_base64}"},+ },+ {"type": "text", "text": ocr_text},+ ],+ }+ ],+ extra_body={+ "minicpm_ocr_jev": {"mode": "score", "category": "text"},+ },+ stream=False,+)++result = json.loads(response.choices[0].message.content)+item = result["results"][0]+if item["verdict"] != "scored":+ raise RuntimeError(f"{item['verdict']}: {item.get('detail', '')}")+print(item["prob_yes"])+```++评分配置放在请求体顶层的 `minicpm_ocr_jev`,不要写进 `messages`。官方 Python SDK 用 `extra_body` 传入该对象。评分 JSON 在 `choices[0].message.content` 中,需要再解析一次。只有 `verdict` 为 `scored` 时,`prob_yes` 才是模型分数。++## 模式与内容类别++| `mode` | 用途 |+| :--- | :--- |+| `score` | 每个候选单独评分。多块时把每块放进 `items`,每条包含 `case_id`、`image`、`ocr_text` 和 `category` |+| `score_best` | 同一张原图的多条候选中选最高分,候选放在 `candidates` |+| `score_best_batch` | 多个块各自选优。每个 item 自带 `image`、`category` 和 `candidates` |++| `category` | 候选文本 |+| :--- | :--- |+| `text` | 正文或 Markdown;其中的公式保留 LaTeX |+| `formula` | 公式 LaTeX。JSON 字符串中的反斜杠需要转义,例如 `"$$\\frac{1}{2}$$"` |+| `table` | HTML 表格。OTSL 或 Markdown 表格需先转成 HTML |++`category` 必须与块的真实类型一致,填错不会报错,但分数会偏。使用 `items` 时,在每个 item 里分别填写图片、文本和类别,并在 `messages` 中放上同样的原图和待评分文本。++### 单块多候选选优++`messages` 里的文本与 `candidates` 保持一致,候选之间用空行隔开。只在 `verdicts[i]` 为 `scored` 的候选里取最高分;`best_text` 是被选中的输入原文,不是重新识别或纠正后的文本。选优不看 `threshold`。若全部候选都未完成评分,接口仍返回 `best_index: 0` 和第一条文本,使用前要检查 `verdicts[best_index]`。++```python+response = client.chat.completions.create(+ model=os.environ["JEV_MODEL"],+ messages=[+ {+ "role": "user",+ "content": [+ {+ "type": "image_url",+ "image_url": {"url": f"data:image/png;base64,{image_base64}"},+ },+ {"type": "text", "text": "合计金额:128.00 元\n\n合计金额:123.00 元"},+ ],+ }+ ],+ extra_body={+ "minicpm_ocr_jev": {+ "mode": "score_best",+ "category": "text",+ "candidates": ["合计金额:128.00 元", "合计金额:123.00 元"],+ },+ },+ stream=False,+)+picked = json.loads(response.choices[0].message.content)+index = picked["best_index"]+if picked["verdicts"][index] != "scored":+ raise RuntimeError("所有候选均未完成评分,返回文本只是回退值")+print(picked["best_text"], picked["scores"][index])+```++多块选优把 `mode` 设为 `score_best_batch`。`results[i]` 与请求 `items[i]` 的顺序一致,`best_index` 对应该块自己的 `candidates`。++## 评分状态++| `verdict` | 分数 | 含义 |+| :--- | :--- | :--- |+| `scored` | 0–1 的模型分数 | 已完成评分 |+| `precheck_reject`、`render_error`、`missing_original_image` | `0.0` | 文本或原图没有进入模型 |+| `encode_error`、`forward_error` | `-1.0` | 图片无法解码,或模型评分失败 |++`0.0` 和 `-1.0` 都是失败时的固定返回值,不能当成模型给出的低分。`score` 响应里的 `summary.pass_rate` 是评分成功率(`scored / total`),`throughput_rate` 是达到阈值的条目比例,不是每秒吞吐量。默认阈值为 0.5,只用于达标统计,不改变原始分数。++本页描述云端 Chat Completions 接口。Docker 镜像使用另一套扁平请求体,两者不能互换,见 [Docker 镜像 API](./minicpm_ocr_jev_docker_api_zh.md)。先识别再评分时,见 [MiniCPM-OCR 1.0 API 调用](./minicpm_ocr_api_zh.md)。diff --git a/sdk/README.pypi.md b/sdk/README.pypi.mdindex 253e0d7..748136c 100644--- a/sdk/README.pypi.md+++ b/sdk/README.pypi.md@@ -9,7 +9,7 @@<p align="center"><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 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>+ <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-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">@@ -17,7 +17,7 @@<a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#model-weights">Model Weights</a> · <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api">Free API</a> · <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill">Skill</a> · - Online Demo (<a href="https://platform.modelbest.cn/console/playground/document-parse">CN</a> / <a href="https://platform.modelbest.ai/console/playground/document-parse">Global</a>)+ Online Demo (<a href="https://huggingface.co/spaces/openbmb/MiniCPM-OCR">HF Space</a> / <a href="https://platform.modelbest.ai/console/playground/document-parse">Official Demo</a> / <a href="https://platform.modelbest.cn/console/playground/document-parse">Official Demo(CN)</a>) | English · <a href="https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README_zh.md">中文</a></p>@@ -34,7 +34,7 @@- 🏆 **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](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api)** for application integration and customization. You can also **[get started quickly with SKILL.md](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/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.+- 🛠️ **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](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#api)** for application integration and customization. You can also **[get started quickly with SKILL.md](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/README.md#skill)**. Try the Online Demo ([HF Space](https://huggingface.co/spaces/openbmb/MiniCPM-OCR) / [Official Demo](https://platform.modelbest.ai/console/playground/document-parse) / [Official Demo(CN)](https://platform.modelbest.cn/console/playground/document-parse)) to explore parsing results.### SOTA Performance, Higher Throughput@@ -141,7 +141,13 @@ Ask a coding agent to follow the MiniCPM-OCR 1.0 [skill](https://github.com/OpenRead 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.+Ask a coding agent to follow the MiniCPM-OCR Jev [skill](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev_en.md) to deploy, start, and verify the scoring service locally, with vLLM, SGLang, llama.cpp, or Ollama as the inference backend. Send the following instruction to the agent:++```text+Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_jev_en.md+```++If you have already cloned this repository, you can use `./docs/SKILL_en.md` and `./docs/SKILL_jev_en.md` directly.<a id="api"></a>@@ -149,7 +155,7 @@ If you have already cloned this repository, you can use `./docs/SKILL_en.md` dirUse the Free 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)  ·  [MiniCPM-OCR Jev API example](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_api_en.md) (coming soon)+[MiniCPM-OCR 1.0 API example](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_api_en.md)  ·  [MiniCPM-OCR Jev API example](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_jev_api_en.md)<a id="手动部署"></a>@@ -191,7 +197,7 @@ Run the models on your own hardware: MiniCPM-OCR 1.0 parses PDFs and images into<tr><td nowrap>MiniCPM‑OCR <strong>Jev</strong></td><td width="360">An OCR correctness 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> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>BF16</strong> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-gguf">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-gguf"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>GGUF</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-AWQ">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-AWQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>AWQ</strong> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-1.0-Jev-GPTQ">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-GPTQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>GPTQ</strong></td>+<td align="center" valign="middle" colspan="2"><a href="https://huggingface.co/openbmb/MiniCPM-OCR-Jev">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>BF16</strong> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-Jev-gguf">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-gguf"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>GGUF</strong><br><a href="https://huggingface.co/openbmb/MiniCPM-OCR-Jev-AWQ">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-AWQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>AWQ</strong> <a href="https://huggingface.co/openbmb/MiniCPM-OCR-Jev-GPTQ">🤗</a> <a href="https://modelscope.cn/models/OpenBMB/MiniCPM-OCR-Jev-GPTQ"><img src="https://raw.githubusercontent.com/OpenBMB/MiniCPM-OCR/main/assets/minicpm-ocr/modelscope_logo.png" width="20" alt="ModelScope"></a> <strong>GPTQ</strong></td></tr></table>