Image-Text-to-Text
MiniCPM-OCR
Safetensors
English
Chinese
minicpm_ocr
ocr
document-parsing
multimodal
vision-language
table-recognition
formula-recognition
conversational
Eval Results
Instructions to use openbmb/MiniCPM-OCR-1.0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MiniCPM-OCR
How to use openbmb/MiniCPM-OCR-1.0 with MiniCPM-OCR:
pip install "minicpm-ocr[all]" huggingface_hub # Deploy openbmb/MiniCPM-OCR-1.0 as a recognition service before running the Python example: # https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/vllm_deploy_en.md # vLLM: load the model above; use --port 8080, # --served-model-name minicpm-ocr and --max-model-len 40960. # Layout detection uses cuda:0; recognition runs on the deployed service.
from importlib.resources import files from pathlib import Path from minicpmvocr import load_config, pipelined_run from huggingface_hub import snapshot_download layout_model = snapshot_download("PaddlePaddle/PP-DocLayoutV3") 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", "max_model_len": 40960, }, "layout": {"model_dir": layout_model, "device": "cuda:0"}, # Render PDFs in-process so this example also works without a main guard. "pipeline": {"overlap_layout": True, "render_workers": 1}, }, ) pipelined_run(cfg) - Notebooks
- Google Colab
- Kaggle
Commit History
-
ReadME / ModelCard 优化
Verified signature03d4a42 -
Update README.md
Verified signature6796197 -
Update README.md
Verified signatureedfc918
-
Restore top navigation and remove the hero image from the model card.
a59a4ac -
docs: serve card images from the GitHub repo
Verified signaturee744c26 -
Update the English case examples image on the model card.
2c017cd -
Remove leftover hero slogan from the model card.
fbc6bee -
Add top navigation links and remove the hero image from the model card.
1542d18 -
Update README.md (#6)
- Update README.md (b3910c8514db5af4bbe0de9f7d8de14f6836027f) Co-authored-by: Tianyu Yu <Yirany@users.noreply.huggingface.co>4f8eaa6 -
Rename quality-assessment to quality-decision in the model card.
a9c6a0a -
docs: sync with latest GitHub (OpenBMB links, examples, KIE, seal/chart prompts)
Verified signature2db951b -
Point documentation links to the public OpenBMB/MiniCPM-OCR repository.
a6d9cc2 -
add model card
Verified signaturefdf0ab1 -
Update generation_config.json
Verified signaturec93352f -
Update config.json
Verified signature7e6ec36
-
update model weights
Verified signature595b163
-
Update tokenizer_config.json (#4)
- Update tokenizer_config.json (19aaabd563f76670cf76ad923743ad089deb34df) Co-authored-by: airlsyn <airlsyn@users.noreply.huggingface.co>4f97a0c -
Update config.json (#2)
- Update config.json (1f6423481f6d581358162d0b3e18606206aa6dbd) Co-authored-by: airlsyn <airlsyn@users.noreply.huggingface.co>06ee913 -
Update generation_config.json (#3)
- Update generation_config.json (0389910b4a153a088d0b2688659967fc465fe74d) Co-authored-by: airlsyn <airlsyn@users.noreply.huggingface.co>06f3f32 -
Delete video_preprocessor_config.json (#5)
- Delete video_preprocessor_config.json (e833836b8edb6bba471f176439c1fc6b4fb1457c) Co-authored-by: airlsyn <airlsyn@users.noreply.huggingface.co>e7b5829 -
Update chat_template.jinja (#1)
- Update chat_template.jinja (d9a2bb5473a384ea0b2c22915c579580a1dd98f5) Co-authored-by: airlsyn <airlsyn@users.noreply.huggingface.co>9b997f8
-
remove readme
Verified signaturea1380a6 -
init
Verified signature1e6c0d2 -
initial commit
Verified signature567ac49