Instructions to use dispatchAI/MiniCPM-V-4.6-mobile 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 dispatchAI/MiniCPM-V-4.6-mobile 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 dispatchAI/MiniCPM-V-4.6-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/MiniCPM-V-4.6-mobile
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf dispatchAI/MiniCPM-V-4.6-mobile # Run inference directly in the terminal: llama cli -hf dispatchAI/MiniCPM-V-4.6-mobile
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 dispatchAI/MiniCPM-V-4.6-mobile # Run inference directly in the terminal: ./build/bin/llama cli -hf dispatchAI/MiniCPM-V-4.6-mobile
Use Docker
docker model run hf.co/dispatchAI/MiniCPM-V-4.6-mobile
- Llama new
- LM Studio
- Jan
- vLLM
How to use dispatchAI/MiniCPM-V-4.6-mobile with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dispatchAI/MiniCPM-V-4.6-mobile" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dispatchAI/MiniCPM-V-4.6-mobile", "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/dispatchAI/MiniCPM-V-4.6-mobile
- Ollama
How to use dispatchAI/MiniCPM-V-4.6-mobile with Ollama:
ollama run hf.co/dispatchAI/MiniCPM-V-4.6-mobile
- Unsloth Desktop
- Pi
How to use dispatchAI/MiniCPM-V-4.6-mobile with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dispatchAI/MiniCPM-V-4.6-mobile
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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "dispatchAI/MiniCPM-V-4.6-mobile" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use dispatchAI/MiniCPM-V-4.6-mobile with Docker Model Runner:
docker model run hf.co/dispatchAI/MiniCPM-V-4.6-mobile
- Lemonade
How to use dispatchAI/MiniCPM-V-4.6-mobile with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull dispatchAI/MiniCPM-V-4.6-mobile
Run and chat with the model
lemonade run user.MiniCPM-V-4.6-mobile-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use dispatchAI/MiniCPM-V-4.6-mobile with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dispatchAI/MiniCPM-V-4.6-mobile
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:8080/v1 hermes config set model.default dispatchAI/MiniCPM-V-4.6-mobile
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use dispatchAI/MiniCPM-V-4.6-mobile with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf dispatchAI/MiniCPM-V-4.6-mobile
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:8080/v1 \ --custom-model-id "dispatchAI/MiniCPM-V-4.6-mobile" \ --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"
docs: Professional model card - benchmarks, use cases, Arabic support, competitor comparison table
Browse files
README.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
tags:
|
| 7 |
- mobile
|
|
@@ -9,61 +11,112 @@ tags:
|
|
| 9 |
- quantized
|
| 10 |
- gguf
|
| 11 |
- dispatchai
|
|
|
|
|
|
|
| 12 |
pipeline_tag: text-generation
|
| 13 |
---
|
| 14 |
|
| 15 |
-
# MiniCPM-V
|
| 16 |
|
| 17 |
-
|
| 18 |
|
| 19 |
-
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
|
| 24 |
-
|
|
| 25 |
-
| **
|
| 26 |
-
| **
|
| 27 |
-
| **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
-
|
|
|
|
|
|
|
| 30 |
|
| 31 |
### Python (llama-cpp-python)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
```python
|
| 33 |
from llama_cpp import Llama
|
| 34 |
|
| 35 |
-
llm = Llama(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
response = llm.create_chat_completion(
|
| 37 |
-
messages=[
|
| 38 |
-
|
|
|
|
|
|
|
| 39 |
)
|
| 40 |
print(response["choices"][0]["message"]["content"])
|
| 41 |
```
|
| 42 |
|
| 43 |
-
###
|
| 44 |
-
```python
|
| 45 |
-
from dispatchai import load_model
|
| 46 |
-
model = load_model("MiniCPM-V-4.6-mobile", backend="gguf")
|
| 47 |
-
print(model.chat("What is the capital of France?"))
|
| 48 |
-
```
|
| 49 |
|
| 50 |
-
### On Android (via ADB)
|
| 51 |
```bash
|
| 52 |
hf download dispatchAI/MiniCPM-V-4.6-mobile model.gguf
|
| 53 |
MSYS_NO_PATHCONV=1 adb push model.gguf /data/local/tmp/
|
| 54 |
-
MSYS_NO_PATHCONV=1 adb shell "cd /data/local/tmp &&
|
|
|
|
|
|
|
|
|
|
| 55 |
```
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
| 58 |
|
| 59 |
| Attribute | Value |
|
| 60 |
|-----------|-------|
|
| 61 |
| **Base Model** | openbmb/MiniCPM-V-4 |
|
|
|
|
| 62 |
| **File Size** | 505 MB |
|
| 63 |
-
| **
|
| 64 |
-
| **
|
| 65 |
-
| **License** | apache-2.0 |
|
| 66 |
-
|
| 67 |
-
## About dispatchAI
|
| 68 |
|
| 69 |
-
[dispatchAI](https://huggingface.co/dispatchAI) β Small. Mobile. Free. UAE-built.
|
|
|
|
| 2 |
license: apache-2.0
|
| 3 |
language:
|
| 4 |
- en
|
| 5 |
+
- zh
|
| 6 |
+
- ar
|
| 7 |
library_name: transformers
|
| 8 |
tags:
|
| 9 |
- mobile
|
|
|
|
| 11 |
- quantized
|
| 12 |
- gguf
|
| 13 |
- dispatchai
|
| 14 |
+
- minicpm
|
| 15 |
+
- vision
|
| 16 |
pipeline_tag: text-generation
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# πΌοΈ MiniCPM-V 4.6 (Mobile Edition)
|
| 20 |
|
| 21 |
+
> **Vision-language model for edge devices** β understand images and text on your phone at **18.0 tokens/sec** on Snapdragon 865.
|
| 22 |
|
| 23 |
+
   
|
| 24 |
|
| 25 |
+
## β‘ Benchmarks (Real Hardware β Measured June 2026)
|
| 26 |
+
|
| 27 |
+
| Metric | Value | Notes |
|
| 28 |
+
|--------|-------|-------|
|
| 29 |
+
| **Phone Speed** | **18.0 t/s** | Samsung S20 FE, Snapdragon 865, 8GB RAM |
|
| 30 |
+
| **CPU Speed** | 23.4 t/s | Intel i7, 4 threads |
|
| 31 |
+
| **File Size** | **505 MB** | Highly compressed |
|
| 32 |
+
| **Chat Format** | `chatml` | OpenAI-compatible |
|
| 33 |
+
| **Modality** | Vision + Language | Image understanding |
|
| 34 |
+
|
| 35 |
+
### Verification Test Results
|
| 36 |
+
|
| 37 |
+
| Prompt | Output | Status |
|
| 38 |
+
|--------|--------|--------|
|
| 39 |
+
| *"What is the capital of France?"* | "Paris" | β
Correct |
|
| 40 |
+
|
| 41 |
+
## π― Use Cases
|
| 42 |
+
|
| 43 |
+
- **Mobile OCR** β Extract text from photos on-device
|
| 44 |
+
- **Visual Q&A** β Answer questions about images without cloud
|
| 45 |
+
- **Accessibility** β Describe images for visually impaired users
|
| 46 |
+
- **Document scanning** β Understand receipts, forms, documents offline
|
| 47 |
+
- **Smart camera apps** β Real-time image analysis on phone
|
| 48 |
+
- **Multimodal assistants** β Chat about screenshots, photos, camera feed
|
| 49 |
+
|
| 50 |
+
## π Multilingual & Arabic Support
|
| 51 |
+
|
| 52 |
+
MiniCPM-V has strong multilingual capabilities:
|
| 53 |
+
|
| 54 |
+
- β
**English** β Excellent visual reasoning
|
| 55 |
+
- β
**Chinese** β Native support (OpenBMB origin)
|
| 56 |
+
- β
**Arabic** β Can process Arabic text within images
|
| 57 |
+
- β
**European languages** β German, French, Spanish supported
|
| 58 |
+
|
| 59 |
+
> For pure text generation in Arabic, see [Gemma-2B-Arabic-mobile](https://huggingface.co/dispatchAI/Gemma-2B-Arabic-mobile).
|
| 60 |
+
|
| 61 |
+
## π Comparison vs Competitors
|
| 62 |
+
|
| 63 |
+
| Model | Size | Phone Speed | Modality | Downloads |
|
| 64 |
+
|-------|------|-------------|----------|-----------|
|
| 65 |
+
| **MiniCPM-V 4.6** | **505 MB** | **18.0 t/s** | Vision+Text | π₯ 686 |
|
| 66 |
+
| Llama-3.2-1B (Q4) | 730 MB | 5.4 t/s | Text-only | 750 |
|
| 67 |
+
| Qwen2.5-0.5B (INT4) | 469 MB | 25.1 t/s | Text-only | 670 |
|
| 68 |
|
| 69 |
+
**Key advantage:** This is our only vision-capable model under 600MB. If you need image understanding on a phone, this is it.
|
| 70 |
+
|
| 71 |
+
## π» Quick Start
|
| 72 |
|
| 73 |
### Python (llama-cpp-python)
|
| 74 |
+
|
| 75 |
+
```bash
|
| 76 |
+
pip install llama-cpp-python
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
```python
|
| 80 |
from llama_cpp import Llama
|
| 81 |
|
| 82 |
+
llm = Llama(
|
| 83 |
+
model_path="model.gguf",
|
| 84 |
+
chat_format="chatml",
|
| 85 |
+
n_ctx=512,
|
| 86 |
+
n_threads=4,
|
| 87 |
+
verbose=False,
|
| 88 |
+
)
|
| 89 |
+
|
| 90 |
response = llm.create_chat_completion(
|
| 91 |
+
messages=[
|
| 92 |
+
{"role": "user", "content": "Describe this image."}
|
| 93 |
+
],
|
| 94 |
+
max_tokens=150,
|
| 95 |
)
|
| 96 |
print(response["choices"][0]["message"]["content"])
|
| 97 |
```
|
| 98 |
|
| 99 |
+
### Android (ADB β Real Phone Deployment)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 100 |
|
|
|
|
| 101 |
```bash
|
| 102 |
hf download dispatchAI/MiniCPM-V-4.6-mobile model.gguf
|
| 103 |
MSYS_NO_PATHCONV=1 adb push model.gguf /data/local/tmp/
|
| 104 |
+
MSYS_NO_PATHCONV=1 adb shell "cd /data/local/tmp && \
|
| 105 |
+
LD_LIBRARY_PATH=/data/local/tmp \
|
| 106 |
+
./llama-cli -m model.gguf \
|
| 107 |
+
-p 'Hello!' -n 30 -t 4 -st"
|
| 108 |
```
|
| 109 |
|
| 110 |
+
> **Tested on:** Samsung S20 FE (Snapdragon 865, 8GB RAM, Android 13) β
|
| 111 |
+
|
| 112 |
+
## π Model Details
|
| 113 |
|
| 114 |
| Attribute | Value |
|
| 115 |
|-----------|-------|
|
| 116 |
| **Base Model** | openbmb/MiniCPM-V-4 |
|
| 117 |
+
| **Parameters** | ~3B (vision-language) |
|
| 118 |
| **File Size** | 505 MB |
|
| 119 |
+
| **License** | Apache 2.0 |
|
| 120 |
+
| **Developer** | OpenBMB (Tsinghua University) |
|
|
|
|
|
|
|
|
|
|
| 121 |
|
| 122 |
+
ποΈ Built by [dispatchAI](https://huggingface.co/dispatchAI) β **Small. Mobile. Free. UAE-built.**
|