Run this model with HF Jobs
Run openbmb/MiniCPM-OCR-Jev-gguf on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/openbmb/MiniCPM-OCR-Jev-gguf. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/openbmb/MiniCPM-OCR-Jev-gguf on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/openbmb/MiniCPM-OCR-Jev-gguf. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use openbmb/MiniCPM-OCR-Jev-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MiniCPM-OCR
How to use openbmb/MiniCPM-OCR-Jev-gguf with MiniCPM-OCR:
pip install "minicpm-ocr[all]" huggingface_hub # Deploy openbmb/MiniCPM-OCR-Jev-gguf as a recognition service before running the Python example: # https://github.com/OpenBMB/MiniCPM-OCR/blob/main/docs/llamacpp_deploy.md # llama.cpp: load the model and vision projector; use --port 8080, # --alias minicpm-ocr, --ctx-size 8192, --parallel 1, --jinja --reasoning off. # Layout detection uses cpu; 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": "llamacpp", "server_url": "http://127.0.0.1:8080", "model_name": "minicpm-ocr", "max_model_len": 8192, }, "layout": {"model_dir": layout_model, "device": "cpu"}, # Render PDFs in-process so this example also works without a main guard. "pipeline": {"queue_mode": "serial", "max_workers": 1, "render_workers": 1}, }, ) pipelined_run(cfg) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use openbmb/MiniCPM-OCR-Jev-gguf with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M # Run inference directly in the terminal: llama cli -hf openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
Use Docker
docker model run hf.co/openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use openbmb/MiniCPM-OCR-Jev-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openbmb/MiniCPM-OCR-Jev-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openbmb/MiniCPM-OCR-Jev-gguf", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
- Ollama
How to use openbmb/MiniCPM-OCR-Jev-gguf with Ollama:
ollama run hf.co/openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use openbmb/MiniCPM-OCR-Jev-gguf with Docker Model Runner:
docker model run hf.co/openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
- Lemonade
How to use openbmb/MiniCPM-OCR-Jev-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull openbmb/MiniCPM-OCR-Jev-gguf:Q4_K_M
Run and chat with the model
lemonade run user.MiniCPM-OCR-Jev-gguf-Q4_K_M
List all available models
lemonade list
- Atomic Chat
This repository hosts the GGUF build of MiniCPM-OCR Jev for llama.cpp. For the original weights and the full model card, see the base repository.
MiniCPM-OCR Jev (2B) scores OCR candidates for text, formula, and table regions, returning a quality score from 0 to 1.
Files
| File | Size | Notes |
|---|---|---|
mmproj-model-f16.gguf |
0.671 GB | vision projector โ required |
MiniCPM-OCR-Jev-F16.gguf |
3.776 GB | reference |
MiniCPM-OCR-Jev-Q8_0.gguf |
2.012 GB | near-lossless |
MiniCPM-OCR-Jev-Q6_K.gguf |
1.556 GB | |
MiniCPM-OCR-Jev-Q5_K_M.gguf |
1.411 GB | |
MiniCPM-OCR-Jev-Q5_K_S.gguf |
1.374 GB | |
MiniCPM-OCR-Jev-Q5_1.gguf |
1.460 GB | |
MiniCPM-OCR-Jev-Q5_0.gguf |
1.374 GB | |
MiniCPM-OCR-Jev-Q4_K_M.gguf |
1.274 GB | smallest recommended |
MiniCPM-OCR-Jev-Q4_K_S.gguf |
1.212 GB | |
MiniCPM-OCR-Jev-Q4_1.gguf |
1.288 GB | |
MiniCPM-OCR-Jev-Q4_0.gguf |
1.202 GB | |
MiniCPM-OCR-Jev-IQ4_XS.gguf |
1.202 GB | imatrix |
MiniCPM-OCR-Jev-IQ4_NL.gguf |
1.236 GB | imatrix |
MiniCPM-OCR-Jev-IQ3_M.gguf |
1.059 GB | imatrix |
MiniCPM-OCR-Jev-IQ3_XS.gguf |
1.027 GB | imatrix |
Usage
llama-server \
--model ./MiniCPM-OCR-Jev-Q8_0.gguf \
--mmproj ./mmproj-model-f16.gguf \
--host 0.0.0.0 --port 18498 \
--ctx-size 40960 \
--n-gpu-layers 999
Check verdict in the response โ only scored means scoring actually ran.
Deployment details: llama.cpp guide for Jev.
Related checkpoints
| Format | Hugging Face | ModelScope |
|---|---|---|
| BF16 (original) | ๐ค | ModelScope |
| GGUF (llama.cpp) (this repo) | ๐ค | ModelScope |
| AWQ W4A16 | ๐ค | ModelScope |
| GPTQ W4A16 | ๐ค | ModelScope |
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.
- Downloads last month
- 53,444
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
