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 .scale sidecar 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=4 samples 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; set CACHE_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.sh sets 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-bench works; pass -b 4096 -ub 4096.

ๆญฃ็กฎๆ€ง / Correctness

  • PPL๏ผˆ-c 512 --chunks 2๏ผ‰๏ผšไธญๆ–‡ -ub 1 9.2642ใ€-ub 4 9.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 on SIGTERM.

ๆบ็  / Sources

ๆ›ดๆ–ฐ / 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
GGUF
Model size
35B params
Architecture
qwen35moe
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp

Quantized
(77)
this model

Collection including AXERA-TECH/MiniCPM-V-4.7-35B-A3B-AX8860-llama.cpp