Instructions to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-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-V-4.7-35B-A3B-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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
Use Docker
docker model run hf.co/AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
- Unsloth Desktop
- Pi
How to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
- Lemonade
How to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
Run and chat with the model
lemonade run user.MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp-NVFP4
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/MiniCPM-V-4.7-35B-A3B-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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4
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-V-4.7-35B-A3B-AX8860-llama.cpp:NVFP4" \ --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"
MiniCPM-V-4.7-35B-A3B on AX8860 (llama.cpp + ggml-axera)
ๅจ็ฑ่ฏ AX8860 ็ NPU ไธ็จ llama.cpp ่ฟ่ก MiniCPM-V-4.7-35B-A3B๏ผNVFP4 GGUF๏ผ๏ผMoE๏ผๆฟๆดป 3B๏ผ๏ผๆๆฌ + ๅพๅ + ่ง้ข่พๅ ฅ๏ผๆ้ฟ 256k ไธไธๆ๏ผOpenAI ๅ ผๅฎนๆๅกใ MiniCPM-V-4.7-35B-A3B (NVFP4 GGUF) on the Axera AX8860 NPU with llama.cpp: MoE (3B active), text + image + video input, up to 256k context, OpenAI-compatible server.
ๆง่ฝ / Performance
| decode | 78.4 tokens/s |
| 4k prompt prefill | 5189 tokens/s๏ผ3908 token 0.75 s๏ผ |
ๅๅพ้ฆ token / image TTFT๏ผbus.jpg |
1.39 s๏ผ466 ๅพๅ token / image tokens๏ผ่ง่ง็ผ็ / vision encode 620 ms๏ผ |
| 10 ็ง่ง้ข้ฆ token / 10 s video TTFT | 4.62 s๏ผ10 ๅธง / frames๏ผ่ง่ง็ผ็ / vision encode 2.3 s๏ผ |
| ไธไธๆ / context | ๆ้ฟ / up to 262144 |
sh bench.sh ๅค็ฐ / reproduce๏ผ็ๆ 128 token / 128 generated tokens๏ผ็ญ prompt ไป
ๅ่ๆถ / short prompts report time only๏ผ๏ผ
| prompt | -c |
prompt ่ๆถ / time | decode tokens/s |
|---|---|---|---|
| 5 token | 8192 | 0.15 s | โ |
| 47 token | 8192 | 0.22 s | โ |
| 3908 token | 8192 | 0.75 s | 72.3 |
| 5 token | 262144 | 0.16 s | โ |
| 47 token | 262144 | 0.22 s | โ |
| 3908 token | 262144 | 0.76 s | 72.6 |
ๅพๅไธ่ง้ข / image and video๏ผsh bench.sh๏ผๆๅก็ซฏ่ฏทๆฑ / server requests๏ผ-c 8192๏ผ๏ผ
| ่ฏทๆฑ / request | ่ง่ง token / vision tokens | ่ง่ง็ผ็ / vision encode | prompt ่ๆถ / time | ้ฆ token / TTFT |
|---|---|---|---|---|
ๅๅพ / image bus.jpg |
466 | 0.62 s | 1.10 s | 1.39 s |
่ง้ข / video test-3.mp4๏ผ10 s๏ผ10 ๅธง / frames๏ผ |
1990 | 2.31 s | 3.39 s | 4.62 s |
| ๅไธ่ง้ขๆข้ฎ้ข / same video, new question | 1990 | ็ผๅญๅฝไธญ / cached๏ผ10/10๏ผ | 1.09 s | 2.04 s |
ๅฟซ้ๅผๅง / Quick start
sh run.sh "The capital of France is" 64 # ๆๆฌ / text
sh run.sh -i bus.jpg "Describe this image." 256 # ๅพๅ / image
sh run.sh -v test-video/test-3.mp4 "Describe this video." 128 # ่ง้ข / video
sh run.sh -c # ๅฝไปค่กๅฏน่ฏ / chat
sh run.sh -s 8080 # ๆๅก็ซฏ๏ผๆๆฌ + ๅพๅ + ่ง้ข / server: text + images + video
CTX=131072 sh run.sh -s 8080 # ้ฟไธไธๆ / long context (default 16384)
sh bench.sh # ๆง่ฝๅค็ฐ / benchmark
้่ฆ AX8860๏ผSDK V0.5.1 ๆๆดๆฐ๏ผHF ไธ่ฝฝ็ๆไปถๆฒกๆๆง่กๆ้๏ผ็จ sh ่ฐ็จๅณๅฏ / needs an AX8860 with SDK V0.5.1+; call the scripts with sh.
่ง้ข่พๅ
ฅ้่ฆๆฟไธๆ ffmpeg ๅ ffprobe๏ผapt install ffmpeg๏ผไธ้ๅ
ๆไพ๏ผ๏ผไธๅจ PATH ๆถ็จ VIDEO_FFMPEG_DIR=<็ฎๅฝ> ๆๅฎใๆๅก็ซฏ็จ video_url ๆ input_video ไผ ่ง้ข / video input needs ffmpeg and ffprobe on the board (apt install ffmpeg, not shipped); set VIDEO_FFMPEG_DIR=<dir> when they are outside PATH. The server takes a video as video_url or input_video.
ๆไปถ / Files
| ๆไปถ / File | ่ฏดๆ / Description |
|---|---|
minicpmv4.7-35b-a3b-nvfp4.gguf |
ๆจกๅๆ้๏ผNVFP4๏ผๅซ .scale ไผด้ๅผ ้๏ผ/ weights (NVFP4 with .scale sidecars)๏ผ20.1 GB๏ผmd5 1370dad7607839d56f1da0e823973ead |
mmproj-minicpmv4.7-35b-a3b-bf16.gguf |
่ง่ง็ผ็ ๅจ / vision encoder๏ผ1.12 GB๏ผmd5 38ebd57881c2749491a941d0acd86df3 |
bin/ |
llama.cpp ๆฟ็ซฏ็จๅบ๏ผ้ๆ้พๆฅ๏ผ/ board programs (static) |
kernels/ |
NPU kernel + manifest.json |
run.sh๏ผchat_template.jinja |
่ฟ่ก่ๆฌไธๆๅก็ซฏๅฏน่ฏๆจกๆฟ / run script and the server's chat template |
bench.sh ๅ prompt |
ๆง่ฝๅค็ฐ / benchmark |
test-images/๏ผtest-video/ |
16 ๅผ ๆต่ฏๅพไธ 10 ็งๆต่ฏ่ง้ข / 16 test images and a 10-second test video |
่ฏดๆ / Notes
- GGUF ไธบ NVFP4๏ผๆ้ไปฅ NVFP4 block ๅญๅจ๏ผๆ่พนๅธฆ F32
.scaleไผด้ๅผ ้ใๅชๆๆฌ fork ่ฝๆญฃ็กฎๅ ่ฝฝ๏ผไธๆธธ llama.cpp ไธๆฏๆ / the GGUF is NVFP4: the weights use NVFP4 blocks with F32.scalesidecar tensors. Only this fork loads it correctly; upstream llama.cpp cannot. - ่ง้ขๆๅธงๅค็๏ผ้ป่ฎคๆฏ็งๅ 1 ๅธง๏ผ
VIDEO_FPS=1๏ผไธๆจกๅๅฎๆน้ๆ ทไธ่ด๏ผ๏ผๆฏๅธง 199 ไธช่ง่งไฝ็ฝฎ๏ผVIDEO_FPS=4ๅฏๅ ๅฏ้ๆ ท / video is handled frame by frame at 1 frame per second by default (VIDEO_FPS=1, the model's own sampling rate), 199 vision positions per frame;VIDEO_FPS=4samples more densely. - ๅไธๅพๅๆ่ง้ขๅๆฌกๅบ็ฐๆถๅค็จ่ง่ง็ผ็ ็ปๆ๏ผๅช้็ฎๆๆฌ้จๅ / a repeated image or video reuses its vision encoding; only the text part is recomputed.
- ๅพๅๆๆจกๅ้ป่ฎค็ 16x ไธ้ๆ ทๅค็๏ผไธๆไพ 4x / images use the model's default 16x downsampling; 4x is not provided.
- ๆฌๆจกๅๆ้ไธญๆฒกๆ MTP ๅคด๏ผไธๆฏๆ MTP ๆๆบ่งฃ็ / the checkpoint has no MTP head, so MTP speculative decoding is not available.
- ๆๅก็ซฏ้ป่ฎคๅ
ณ้ญๆ่๏ผ
--reasoning off๏ผ๏ผchat_template.jinjaๅ่ชๆจกๅๅๆจกๆฟ / the server does not think by default; the template is the model's own. - Prompt cache ้ป่ฎคๆพๅจ 4 GB ๅ
ๅญ๏ผ่ฎพ็ฝฎ
CACHE_DIR=<SSD ็ฎๅฝ>ๅฏ่ฝ็๏ผ้ๅฏๅไป่ฝๅฝไธญ / the prompt cache lives in 4 GB of host memory; setCACHE_DIR=<an SSD directory>to keep it on disk across restarts. - KV cache ไธบ FP8๏ผE4M3๏ผ๏ผๆๅก็ซฏ้ป่ฎค
-ctxcp 8ไฟๅญ้ฟไธไธๆ็ checkpoint๏ผๆปๅจๅค็จ / the KV cache is FP8 (E4M3); the server keeps 8 rolling context checkpoints (-ctxcp 8). - ่ฟ่กๆถ็ฌๅ NPU 4 ๆ ธ๏ผๆๅก็ซฏ
-np 1/ takes all 4 NPU cores; the server runs-np 1. run.sh่ฎพ็ฝฎไบ kernel ็ฎๅฝ๏ผ็ฎๅฝๆ kernel ๆไปถ็ผบๅคฑๆถ็จๅบ็ดๆฅๆฅ้้ๅบ๏ผไธไผ้ๅฐ CPU ไธ่ฟ่ก /run.shsets the kernel directory; if it or a kernel file is missing the program exits with an error instead of falling back to the CPU.llama-benchๅฏ็จ๏ผ่ฏทๅ-b 4096 -ub 4096/llama-benchworks; pass-b 4096 -ub 4096.
ๆญฃ็กฎๆง / Correctness
- PPL๏ผ
-c 512 --chunks 2๏ผ๏ผไธญๆ-ub 19.2642ใ-ub 49.2701๏ผ่ฑๆ 7.0561 / 7.0110ใๅไธ NVFP4 GGUF ๅจ CPU ไธไธบไธญๆ 9.4225 / 9.5198ใ่ฑๆ 7.0466 / 7.0536 / PPL: Chinese 9.2642 (-ub 1) and 9.2701 (-ub 4), English 7.0561 / 7.0110; the same NVFP4 GGUF on the CPU gives Chinese 9.4225 / 9.5198 and English 7.0466 / 7.0536. - "The capital of France is" โ "Paris"๏ผ
bus.jpgๆ่ฟฐๆญฃ็กฎ๏ผ่็ฝ็ตๅจๅ ฌไบค่ฝฆใcero emisionesใ่กไบบ๏ผ/ text and image descriptions correct (blue/white electric bus,cero emisiones, pedestrians). - 16 ๅผ ๆต่ฏๅพ๏ผ็ ง็ใๆๆกฃใ่กจๆ ผใๆชๅพใๅพ่กจใๆๅใๅคๅพใๅคงๅพ๏ผๅ จ้จๆญฃๅธธ๏ผprompt token ๆฐไธ CPU ๅ่้้กน็ธๅ / all 16 test images (photo, document, table, screenshot, chart, handwriting, multi-image, large image) work; prompt token counts equal the CPU reference.
- ่ง้ข๏ผๆๅก็ซฏ
video_urlใinput_videoไธๅฝไปค่ก-vๅๆญฃๅธธ๏ผๆ่ฟฐไธ็ป้ขไธ่ด / video works through the server (video_url,input_video) and the command line (-v); the description matches the footage. - ๆๅก็ซฏ 170 ๆฌก่ฏทๆฑ็็ผๅญๅๅๆต่ฏๆ ้่ฏฏ๏ผๅค่ฝฎๅฏน่ฏใๅพ็่พๅ
ฅๆญฃๅธธ๏ผๆ PID
SIGTERMๅฏ้ๅบ / a 170-request server cache stress test passes without errors; multi-turn chat and image input work; the process exits onSIGTERM.
ๆบ็ / Sources
- llama.cpp๏ผZHEQIUSHUI/llama.cpp @
6613735ce
ๆดๆฐ / Changelog
- 2026-11-17๏ผๆฐๅข MiniCPM-V-4.7-35B-A3B๏ผๆๆฌ + ๅพๅ + ่ง้ข่พๅ ฅ๏ผNVFP4 ๆๆฌๆ้ + BF16 ่ง่งๆ้ / MiniCPM-V-4.7-35B-A3B added: text + image + video input, NVFP4 text weights and BF16 vision weights.
- Downloads last month
- 253
4-bit
Model tree for AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp
Base model
openbmb/MiniCPM-V-4.7-35B-A3B