alt.freeweights.minicpm / MiniCPM-OCR-1.0
From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject:

MiniCPM-OCR-1.0

Date: 2026-11-14Commit: 883ca36Signed: 2DC28CC7B26A283B ✓

Image text to text model with 1.3B parameters. Safetensors weights, 2.62 GB in all. Published by openbmb under Apache-2.0.

1.3B params2.62GBMiniCPM-OCR-1.0safetensorspermissive
FactsParams1.3BSize2.62 GBFormatssafetensorsTaskimage text to textLicenseApache-2.0From sourcepermissive
$ fw get openbmb/MiniCPM-OCR-1.0
# manifest sha256 362eb55e9e51… · 2.62 GB · 14 files
$ fw verify ./MiniCPM-OCR-1.0 openbmb/MiniCPM-OCR-1.0
From sourceHosted (signed)openbmb/MiniCPM-OCR-1.0Last check: 2026-11-14 21:24 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of MiniCPM-V-4.6.

Works with

Overview

Size
2.62 GB
Weights
2.60 GB (safetensors)
Parameters
1.3B
Formats
safetensors
Task
image text to text
License
Apache-2.0 (permissive)
Files
14, each with a sha256
Publisher
openbmb
Added
2026-11-14
Section
alt.freeweights.minicpm
Lineage

Original release from the publisher.

Base model: openbmb/MiniCPM-V-4.6

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-14 21:24 UTCpassed

Model card

From the publisher at commit 883ca36. Shown as plain text with links; images open at the publisher.

MiniCPM logo

Usage Guide

| πŸš€ Free API

Try it online for free, then call the API from your own code.

Playground (CN / Global)

API docs (CN / Global)

| πŸ€– Agent Skill

One prompt: the agent installs it and parses your first document.

SKILL.md

| πŸ’» Self-hosting

vLLM / SGLang / llama.cpp / Ollama, plus an official Docker image. Data stays on your side.

Deployment guide

| πŸ“± Mobile App

On-device and offline. Document parsing is iOS-only for now.

iOS Demo

Demo (CN / Global) &nbsp;Β·&nbsp; GitHub &nbsp;Β·&nbsp; SDK usage &nbsp;Β·&nbsp; DSpark &nbsp;Β·&nbsp; Discord &nbsp;|&nbsp; δΈ­ζ–‡

MiniCPM-OCR 1.0 (1.3B) is the first OCR-specific model in the MiniCPM-V/o family. It focuses on text-centric document understanding β€” text, tables, formulas, charts, seals, and structured information extraction β€” and balances quality against speed on real-world captures.

Highlights#

  • πŸ† SOTA document parsing: 93.68 on Real5-OmniDocBench, a benchmark for real-world document parsing, with leading results on OmniDocBench v1.6, Wild-OmniDocBench, and olmOCR-Bench. Handles Chinese and English documents and PDFs, including scans, curved pages, photographs, skewed pages, and recaptured documents.
  • ⚑ Efficient inference. With DSpark decoding acceleration (BF16, GGUF) end-to-end processing efficiency improves by 55%. Throughput is about 1.49Γ— PaddleOCR-VL-1.6 and 3.62Γ— MinerU2.5 Pro.
  • πŸ” General recognition and information extraction: 54.7 on OCRBench v2, plus key information extraction (KIE) for downstream automation.
  • πŸ› οΈ Easy to deploy and develop: vLLM, SGLang, llama.cpp, and Ollama from day one, with quantized variants and multi-chip builds. Supports further fine-tuning, and ships a pip SDK, a full API, and agent workflows. Online demos: HF Spaces Β· CN Β· Official CN Β· Official Global.

SOTA quality at higher throughput#

Among the open-source OCR models compared, MiniCPM-OCR 1.0 reaches 1.2 pages/s and the highest equal-weight average score across OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, and olmOCR-Bench.

Image: Throughput versus parsing quality for open-source OCR models. Horizontal axis: pages per second (log scale). Vertical axis: equal-weight average score across four document parsing benchmarks.

Average score is the equal-weight mean of the four benchmarks. All models use accelerated configurations. Settings and reproduction: reproduction guide. Per-model throughput: model guide.

Benchmark comparisons#

Image: Radar chart comparing MiniCPM-OCR 1.0 with other OCR models across six benchmarks.

Full MiniCPM-OCR 1.0 evaluation results#

Image: Detailed OCR model results on OmniDocBench v1.6, Real5-OmniDocBench, Wild-OmniDocBench, olmOCR-Bench, CHAOS-Bench, and OCRBench v2.

Image: Per-benchmark bar charts for Real5-OmniDocBench, Wild-OmniDocBench, OmniDocBench v1.6, olmOCR-Bench, OCRBench v2, and CHAOS-Bench.

Each panel keeps its own benchmark's scores; higher is better. Scores from different benchmarks are not directly comparable. Test settings and reproduction steps are in the reproduction guide; per-benchmark discussion is in the model guide.

Throughput#

On an NVIDIA GeForce RTX 5090 with all 1651 OmniDocBench v1.6 images, image-level concurrency 1, and each system's accelerated configuration, MiniCPM-OCR 1.0 reaches 1.2 pages/s (relative throughput 1.00Γ—; higher is faster).

Image: OCR system throughput with accelerated configurations; MiniCPM-OCR 1.0 achieves 1.2 pages/s.

Concurrency 1 is image-level: regions inside a page are still recognised in parallel. Real throughput also depends on page content, backend, concurrency, and hardware.

Examples#

Left to right: original document, detected layout, and rendered Markdown.

English documents

Image: English document animation: original, detected layout, and rendered Markdown.

Chinese documents

Image: Chinese document animation: original, detected layout, and rendered Markdown.

More examples

Original documents and parsed results, side by side.

English documents

Image: English examples comparing inputs and results: handwriting, historical and scanned documents, newspapers, financial statements, and key information extraction.

Chinese documents

Image: Chinese examples comparing inputs and results: handwritten notes, complex formulas, newspapers, financial statements, stamped documents, illustrations, and key information extraction.

Model architecture#

ItemDescription
Parameters1.3B
BaseTrained for OCR on top of MiniCPM-V 4.6
ComponentsSigLIP vision encoder + Qwen3.5 language model
Primary languagesChinese and English
TasksText, tables, formulas, charts, seals, and key information extraction
Parsing pipelineMiniCPM-OCR 1.0 + PP-DocLayoutV3 layout model + minicpmvocr SDK
Visual tokens4Γ— compression, scale_resolution 448, up to 9 slices
Parsing pipeline#

Full-page parsing runs as a two-stage pipeline orchestrated by the minicpm-ocr SDK. The two stages use separate models, run in separate environments, and may run on different machines:

  • Stage 1 β€” Layout detection (SDK environment). The PP-DocLayoutV3 layout model detects document regions β€” text, tables, formulas, charts, seals β€” and determines reading order; the SDK crops each region. It runs locally inside the SDK environment and requires PaddlePaddle / PaddleX.
  • Stage 2 β€” Region recognition (inference service). The SDK sends each cropped region over HTTP to a MiniCPM-OCR 1.0 inference service β€” served by vLLM, SGLang, llama.cpp, or Ollama β€” with a prompt matching the region type, then assembles the recognized content into the final Markdown / JSON in reading order.

Image: Parsing pipeline: in the minicpm-ocr SDK environment, the PP-DocLayoutV3 layout model detects and crops document regions; each cropped region is sent over HTTP to a separate recognition service running MiniCPM-OCR 1.0 (vLLM, SGLang, llama.cpp, or Ollama); the SDK then assembles the recognized text, tables, formulas, charts, and seals into Markdown and JSON in reading order.

See the model guide for more on architecture, parsing workflow, deployment options, and benchmark breakdowns.

Quick start#

Online Demo#

To quickly try text-centric document understanding and structured information extraction, we recommend HF Spaces, CN, Official CN, Official Global / API.

Use with the MiniCPM-OCR SDK#

Required before using either the CLI or Python API: deploy and start the OCR model service first, and wait until it is ready to accept requests. The SDK examples below are clients of that running service; they do not deploy or start the OCR model service automatically.

Use the official minicpm-ocr SDK to parse a local image or PDF. It detects layout with PP-DocLayoutV3, recognises each region, and saves structured JSON and Markdown in reading order.

Install Python 3.10+ and the SDK:

pip install "minicpm-ocr[all]"

Install minicpm-ocr for your platform using the installation guide.

Prerequisite: deploy and start the model service#

Before running either the CLI or Python API, deploy and start a vLLM recognition service for openbmb/MiniCPM-OCR-1.0 following the deployment guide. The examples assume a service at http://127.0.0.1:8080, served model name minicpm-ocr, and an NVIDIA GPU for layout detection. Match the endpoint, backend, and device to your deployment. Configure the service to listen on port 8080 and serve the model as minicpm-ocr to use the examples unchanged.

CLI#

Start the model service described above and wait until it is ready before running this command. Save a local image as demo.png, then run:

minicpmvocr parse demo.png \
  --backend vllm \
  --server-url http://127.0.0.1:8080 \
  --model minicpm-ocr \
  --device cuda:0 \
  --set run.run_root=output \
  --output output/demo.md

The CLI automatically downloads PP-DocLayoutV3 to models/PP-DocLayoutV3_infer/ when needed. The final Markdown is saved to output/demo.md; structured JSON and per-page Markdown are kept in output/<run_tag>/results_json/ and output/<run_tag>/output/.

To parse a PDF, replace demo.png with its local path. Use --device cpu for CPU layout detection. Run minicpmvocr parse --help for all CLI options.

Python API#

The model service described above must already be running before you execute this Python example. Set engine.server_url and engine.model_name to match that service.

Save a local image as demo.png, then run:

from importlib.resources import files
from pathlib import Path

from minicpmvocr import load_config, pipelined_run
from minicpmvocr.layouts.download import ensure_layout_model


def main():
    layout_model = ensure_layout_model(Path("models/PP-DocLayoutV3_infer"))

    cfg = load_config(
        str(files("minicpmvocr").joinpath("configs/minicpmvocr.yaml")),
        overrides={
            "input": {"file_path": str(Path("demo.png").resolve())},
            "engine": {
                "type": "vllm",
                "server_url": "http://127.0.0.1:8080",
                "model_name": "minicpm-ocr",
            },
            "layout": {
                "model_dir": str(layout_model),
                "device": "cuda:0",
            },
            "pipeline": {"overlap_layout": True},
            "run": {"run_root": str(Path("output").resolve())},
        },
    )

    pipelined_run(cfg)

    print("JSON directory:", cfg["_meta"]["result_json_dir"])
    print("Markdown directory:", cfg["_meta"]["output_dir"])


if __name__ == "__main__":
    main()

ensure_layout_model() downloads the official layout model when it is missing. Results are written to output/<run_tag>/results_json/ and output/<run_tag>/output/. To parse a PDF, replace demo.png with its local path.

For a CPU layout detector, set layout.device to cpu. For the GGUF checkpoint served by llama.cpp, set engine.type to llamacpp and match the service context length with engine.max_model_len.

See the SDK API reference for configuration and document-level Markdown export.

Agent Skill#

You can also have a coding agent follow the Agent Skill to set up the environment, download the model, and parse a first document.

Read and execute https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/SKILL_en.md
Fine-tuning#

LLaMA-Factory Β· ms-swift β€” data preparation, full-parameter SFT with the multimodal projector frozen, training, and evaluation (French handwritten text lines).

Recognition guide#

| Task | Region | Prompt | Output

| Text-centric document understanding | Text block / Paragraph / Title / Page | Text Recognition: | Plain text

| Table | Table Recognition: | Table in HTML format(via SDK post-processing)

| Formula | Formula Recognition: | LaTeX

| Inline formula | Text Recognition: | LaTeX

| Seal | Seal Recognition: | Plain text

| Chart | Chart to Table: | Table in HTML format(via SDK post-processing)

| Structured information extraction | Specified fields | Extract the "field", .... Format the output as a JSON object with keys: "field", .... If an item is not in the image, use "###". | JSON

FormatHugging FaceModelScope
BF16 (original) (this repo)πŸ€—ModelScope
GGUF (llama.cpp)πŸ€—ModelScope
AWQ W4A16πŸ€—ModelScope
GPTQ W4A16πŸ€—ModelScope
DSpark draft (BF16)πŸ€—ModelScope
DSpark draft (GGUF)πŸ€—ModelScope

DSpark requires a matching main and draft model from the same release β€” do not mix draft weights with a different main checkpoint. See DSpark acceleration.

For OCR quality assessment (auto-accept, human-review routing, best-of-N across models), see MiniCPM-OCR Jev.

FAQ#

Installation, model downloads, GPU memory, input formats, and unexpected outputs: FAQ.

License#

Model weights, code, and documentation are released under the Apache License 2.0.

Files

14 files Β· 2.62 GBWeights 2.60 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 14 files with their sha256
FileSizesha256
.eval_results/olmocr-bench.yaml162 Bd18c3f9820b03d8c9244790e361b659db72d5e62a37071408bfd409d05cb8ada
.eval_results/real5_omnidocbench.yaml1.42 KBe4b5a0bd7751892e48648f29670b00ead2e85eafe659f2080753cd2c19691eda
.gitattributes2.21 KB6b265fb9c22bee54168c8e9fb1dac10bcfc9eee8f95c129580066d1a2f8350fe
README.md19.2 KB41397755907ff633bc4aa689c3660a1ef8e1e62b642e0944c0abccc97004ad27
README_zh.md18.2 KBc7a7c10f3d35d3a75ebfc98e1f43ee4593a6d7d19a5da8759b3817abb6ddcb3c
assets/parsing_pipeline.svg4.49 KBe601a364eeb37709a7d100e86b0099e57e7a071610bcaf22884d21fb1e0f127e
chat_template.jinja7.34 KBc6a5f1387c6baa0befecc39e36f293e44baba865a9c7809ac93fae1604b2c210
config.json2.27 KB762025491b206967a3c29c3e36ff2cccd8af6a8c750360b61dc91882b573f759
generation_config.json133 B7cecf81e246f8db6bcc4c14f22313dd7decf2d6a70dd1b45c4d237a2e6927405
model.safetensors2.60 GB83f4e433b044fd23f9ea7eb3acbc7d59e4fe11a1fdf3c3129b7021d0ab4f8fd4
preprocessor_config.json340 B7b46cf09f350fa1cd3bfd4d20fe8b8532e76dcc5d892a0052660f803c8ad532b
processor_config.json46 Bb71fbc3e22a7dbe04622e1a2641e8553375bc1434875ac438066c58a88b974b1
tokenizer.json20.0 MB6269eb38f25c20c0f2ba676577f2e5603f79eab3be573dfdaa727ca6eeb5522d
tokenizer_config.json1.46 KB74f51078120066292803d9dfe5437f67b778c5ef6d16eb04dbc6a3f7a13e5826
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
883ca368d1 pinned now manifest updated, same commit2026-11-14 21:24 UTC14 files Β· 2.62 GB
883ca368d12026-11-14 21:24 UTC14 files Β· 2.62 GB

Use it

$ fw get openbmb/MiniCPM-OCR-1.0
# manifest sha256 362eb55e9e51… · 2.62 GB · 14 files
$ fw verify ./MiniCPM-OCR-1.0 openbmb/MiniCPM-OCR-1.0
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openbmb/MiniCPM-OCR-1.0.json --dir ./MiniCPM-OCR-1.0 $ python3 fw.py verify ./MiniCPM-OCR-1.0 ./openbmb__MiniCPM-OCR-1.0.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM-OCR-1.0 --revision 883ca368d17335b9ce5aa6fef4d000ef0684fcaa --local-dir ./MiniCPM-OCR-1.0
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForImageTextToText, AutoProcessor processor = AutoProcessor.from_pretrained("openbmb/MiniCPM-OCR-1.0", revision="883ca368d17335b9ce5aa6fef4d000ef0684fcaa") model = AutoModelForImageTextToText.from_pretrained("openbmb/MiniCPM-OCR-1.0", revision="883ca368d17335b9ce5aa6fef4d000ef0684fcaa", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openbmb/MiniCPM-OCR-1.0 --revision 883ca368d17335b9ce5aa6fef4d000ef0684fcaa

License

Name
Apache License 2.0
Id
Apache-2.0
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-14
Text in
README.md
Text sha256
41397755907ff633bc4aa689c3660a1ef8e1e62b642e0944c0abccc97004ad27
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: openbmb <huggingface.co/openbmb>Newsgroups: alt.freeweights.minicpmSubject: MiniCPM-OCR-1.0Date: 2026-11-14Commit: 883ca36Signed: 2DC28CC7B26A283B ✓
Upstream
openbmb/MiniCPM-OCR-1.0
Pinned commit
883ca368d17335b9ce5aa6fef4d000ef0684fcaa
Manifest
MiniCPM-OCR-1.0.json Β· .minisig
Manifest sha256
362eb55e9e5162ffac2357a83fa17521261a8eaca59ea5ef778476e4f2b11c7a
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-14 21:24 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM-OCR-1.0.json $ curl -O https://freeweights.allternit.com/manifests/openbmb/MiniCPM-OCR-1.0.json.minisig $ minisign -Vm MiniCPM-OCR-1.0.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

openbmb/MiniCPM-V-4.6 Β· this model is a finetune of it

4 models in the catalog name this one as their parent.

Fine-tunes
2
Quantizations
2
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openbmb/MiniCPM-OCR-1.0
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. MiniCPM-OCR-1.0.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of MiniCPM-OCR-1.0. Each has its own license check and page.

From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Explore-GGUF
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report
From: openbmb <huggingface.co/openbmb>Subject: AgentCPM-Report-GGUF
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-0.5B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-1B-gguf
From: openbmb <huggingface.co/openbmb>Subject: BitCPM-CANN-3B-gguf