Image-Text-to-Text
Safetensors
English
Chinese
minicpm_ocr
minicpm-ocr
ocr
document-parsing
multimodal
awq
4-bit precision
quantized
conversational
Instructions to use openbmb/MiniCPM-OCR-1.0-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Local Apps Settings
- vLLM
How to use openbmb/MiniCPM-OCR-1.0-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openbmb/MiniCPM-OCR-1.0-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openbmb/MiniCPM-OCR-1.0-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/openbmb/MiniCPM-OCR-1.0-AWQ
- SGLang
How to use openbmb/MiniCPM-OCR-1.0-AWQ with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "openbmb/MiniCPM-OCR-1.0-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openbmb/MiniCPM-OCR-1.0-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "openbmb/MiniCPM-OCR-1.0-AWQ" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openbmb/MiniCPM-OCR-1.0-AWQ", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use openbmb/MiniCPM-OCR-1.0-AWQ with Docker Model Runner:
docker model run hf.co/openbmb/MiniCPM-OCR-1.0-AWQ
Commit ·
e3cd6a1
1
Parent(s): f34cb12
Add top navigation links and remove the hero image from the model card.
Browse files
README.md
CHANGED
|
@@ -16,19 +16,16 @@ base_model: openbmb/MiniCPM-OCR-1.0
|
|
| 16 |
base_model_relation: quantized
|
| 17 |
---
|
| 18 |
|
| 19 |
-
> **This repository hosts the AWQ W4A16 quantized version of
|
| 20 |
-
> [MiniCPM-OCR 1.0](https://huggingface.co/openbmb/MiniCPM-OCR-1.0).** For the original BF16 weights and the base model
|
| 21 |
-
> card, see [openbmb/MiniCPM-OCR-1.0](https://huggingface.co/openbmb/MiniCPM-OCR-1.0). Everything below describes the model
|
| 22 |
-
> itself; see [Quantization](#quantization) for what changed.
|
| 23 |
-
|
| 24 |
<div align="center">
|
| 25 |
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
<p align="center"><strong>MiniCPM-OCR · Fast, accurate parsing for real-world documents.</strong></p>
|
| 29 |
|
| 30 |
</div>
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
**MiniCPM-OCR 1.0** (1.3B) is the first OCR-specific model in the
|
| 33 |
[MiniCPM-V/o](https://github.com/openbmb/MiniCPM-V) family. It focuses on text-centric document
|
| 34 |
understanding — text, tables, formulas, charts, seals, and structured information extraction —
|
|
|
|
| 16 |
base_model_relation: quantized
|
| 17 |
---
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
<div align="center">
|
| 20 |
|
| 21 |
+
[GitHub](https://github.com/OpenBMB/MiniCPM-OCR) · [API](https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/minicpm_ocr_api_en.md) · [Demo](https://platform.modelbest.ai/console/playground/document-parse) · [DSpark](https://huggingface.co/openbmb/MiniCPM-OCR-1.0-DSpark)
|
|
|
|
|
|
|
| 22 |
|
| 23 |
</div>
|
| 24 |
|
| 25 |
+
> **This repository hosts the AWQ W4A16 quantized version of
|
| 26 |
+
> [MiniCPM-OCR 1.0](https://huggingface.co/openbmb/MiniCPM-OCR-1.0).** For the original BF16 weights and the base model
|
| 27 |
+
> card, see [openbmb/MiniCPM-OCR-1.0](https://huggingface.co/openbmb/MiniCPM-OCR-1.0). Everything below describes the model
|
| 28 |
+
> itself; see [Quantization](#quantization) for what changed.
|
| 29 |
**MiniCPM-OCR 1.0** (1.3B) is the first OCR-specific model in the
|
| 30 |
[MiniCPM-V/o](https://github.com/openbmb/MiniCPM-V) family. It focuses on text-centric document
|
| 31 |
understanding — text, tables, formulas, charts, seals, and structured information extraction —
|