Instructions to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp 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 AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
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 AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Use Docker
docker model run hf.co/AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
- Unsloth Desktop
- Pi
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
- Lemonade
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Run and chat with the model
lemonade run user.MiniCPM-OCR-1.0-AX8860-llama.cpp-BF16
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "AXERA-TECH/MiniCPM-OCR-1.0-AX8860-llama.cpp:BF16" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
File size: 4,501 Bytes
6534c46 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | {
"font": "Noto Sans CJK SC / Noto Serif CJK SC with Latin, digits, and CJK coverage",
"images": {
"doc_en.png": [
"AX8860 OCR Test Document",
"This document verifies the MiniCPM-OCR-1.0 model on the",
"AX8860 NPU.",
"The quick brown fox jumps over the lazy dog.",
"Invoice number: AX-2026-1113 Total: 1,284.50 USD",
"Contact: ocr-team@example.com",
"Version 1.0 | 2026-11-14 | Build 8860",
"",
"The model should preserve punctuation, digits, and line",
"breaks.",
"Section 1. Introduction",
"This is a generated English document for deterministic",
"end-to-end testing.",
"Section 2. Results",
"The recognition output will be compared with a CPU",
"reference.",
"Accuracy target: 100% for digits, Latin letters, and",
"punctuation."
],
"doc_invoice_en.png": [
"NORTHSTAR INSTRUMENTS",
"Invoice AX-8860-0042",
"Item Qty Unit Amount",
"AX8860 edge module 2 1299.00 2598.00",
"Vision adapter cable 4 39.50 158.00",
"Documentation kit 1 75.00 75.00",
"Support plan 1 120.00 120.00",
"Subtotal: 2891.00",
"Tax (8%): 231.28",
"Total: 3122.28",
"Payment is due within 30 days.",
"Thank you for your business.",
"Generated for OCR regression testing. No commercial value."
],
"doc_notice_zh.png": [
"设备维护通知",
"尊敬的用户:",
"本周六 09:00 至 12:00 对 AX8860 推理节点进行维护。",
"维护期间 OCR 服务将暂停,请提前保存工作结果。",
"如有紧急需求,请联系值班工程师王明。",
"电话:021-5555-8860",
"邮箱:ops@example.cn",
"",
"感谢您的理解与配合。",
"运维中心 2026年11月14日"
],
"doc_zh.png": [
"MiniCPM-OCR 中文识别测试",
"本文件用于验证 AX8860 平台上的端到端文字识别能力。",
"订单编号:CN-20261113,数量:十二件。",
"金额:人民币 1,284.50 元",
"联系人:张三 电话:138-0000-0000",
"测试日期:2026-11-14",
"",
"第一节 项目背景",
"本模型应当保留中文标点、数字、拉丁字母和换行。",
"第二节 验收结果",
"识别结果将与 CPU 参考逐字比较。",
"目标:中文、English、1234567890 全部正确显示。"
],
"handwriting_en.png": [
"Meeting note / 会议记录",
"Remember to test the OCR model on Tuesday.",
"检查表格里的数字是否正确。",
"Call Wang Ming about the AX8860 board.",
"Next step: compare with the CPU reference.",
"提交报告之前再跑一次 benchmark。",
"Reviewed 11/14"
],
"handwriting_mixed.png": [
"Handwritten Notes / 手写笔记",
"Dear team,",
"Please check the OCR result before Friday.",
"请确认表格中的数字是否正确。",
"Thanks!",
"Zhang San 2026-11-14"
],
"screenshot_en.png": [
"AX8860 Model Console",
"Model MiniCPM-OCR-1.0",
"Backend llama.cpp / AX8860 x4",
"Image doc_invoice_en.png",
"Prompt Text Recognition:",
"Status: running",
"Image encode: 80 ms",
"Decode: 125 tok/s",
"Run OCR"
],
"screenshot_mixed.png": [
"Terminal - AX8860",
"$ llama-mtmd-cli -m minicpm-ocr.gguf --mmproj mmproj.gguf",
"loading model ... done",
"NPU cores: 4",
"图像编码耗时: 80 ms",
"prefill: 256 tokens",
"decode: 120 tok/s",
"识别成功:Hello, 世界!"
],
"table_en.png": [
"Quarterly Sales Report",
"Region Q1 Q2 Q3 Total",
"North 120 135 150 405",
"South 98 110 127 335",
"East 145 160 171 476",
"West 88 95 102 285",
"All amounts are in thousands of USD."
],
"table_mixed.png": [
"OCR benchmark / 识别结果",
"模型 Model 语言 Lang 图片 Image 状态 Status",
"MiniCPM-OCR 中文 发票.png 通过",
"MiniCPM-OCR English invoice.png PASS",
"Reference 混合 screenshot.png 通过",
"Reference 手写 note.png PASS",
"准确率: 97.8%",
"Average latency: 1.42 s",
"备注:本表为合成测试数据。"
]
}
}
|