Qwen3-VL-30B-A3B-Instruct on AX8860 (llama.cpp)

ๅœจ็ˆฑ่Šฏ AX8860 ็š„ NPU๏ผˆ4 ๆ ธ๏ผ‰ไธŠ็”จ llama.cpp ่ฟ่กŒ Qwen3-VL-30B-A3B-Instruct๏ผŒๆ”ฏๆŒๆ–‡ๆœฌๅ’Œๅ›พๅƒ่พ“ๅ…ฅ๏ผŒไธŠไธ‹ๆ–‡ 262144ใ€‚ Qwen3-VL-30B-A3B-Instruct with text and image input on the 4-core NPU of the Axera AX8860, with llama.cpp; context up to 262144.

ๆ€ง่ƒฝ / Performance

้กน / Item ๅ€ผ / Value
decode๏ผˆ็Ÿญ prompt / short prompt๏ผ‰ 65.0 tokens/s
decode๏ผˆ4k ไธŠไธ‹ๆ–‡ / 4k context๏ผ‰ 50.7 tokens/s
4k prompt prefill๏ผˆ3907 token๏ผ‰ 3165 tokens/s๏ผˆ1.23 s๏ผ‰
็Ÿญ prompt๏ผˆ5 token๏ผ‰prefill ่€—ๆ—ถ / short prompt (5 tokens) prefill time 1.03 s
ๅ›พๅƒ็ผ–็  / image encoding๏ผˆViT๏ผŒbus.jpg ๅŽŸๅ›พ / original๏ผ‰ 0.59 s
ๅ›พๅƒ็ผ–็  / image encoding๏ผˆViT๏ผŒ640ร—480๏ผ‰ 0.26 s
ไธŠไธ‹ๆ–‡ / context 262144
ๆจกๅž‹ๅŠ ่ฝฝ / load 36 s

NPU ๅ†…ๅญ˜๏ผˆCMM๏ผ‰้š -c ๅ˜ๅŒ– / NPU memory (CMM) follows -c๏ผš

-c 16384 131072 262144
CMM 19.1 GB 30.8 GB 44.1 GB

ไปฅไธŠๆ•ฐๅญ—ๅ‡็”ฑๅŒ…ๅ†… sh bench.sh ๅœจ AX8860๏ผˆSDK V0.6.0๏ผ‰ไธŠๆต‹ๅพ—๏ผŒ่ดชๅฟƒ่งฃ็  / all numbers from sh bench.sh on an AX8860 (SDK V0.6.0), greedy decoding.

ๅฟซ้€Ÿๅผ€ๅง‹ / Quick start

sh run.sh "The capital of France is" 64                 # ๆ–‡ๆœฌ่กฅๅ…จ / text completion
sh run.sh -i bus.jpg "่ฏท็”จไธญๆ–‡ๆ่ฟฐ่ฟ™ๅผ ๅ›พ็‰‡ใ€‚" 256         # ๅ›พๅƒๆ่ฟฐ / describe an image
sh run.sh -c                                            # ๅ‘ฝไปค่กŒๅคš่ฝฎๅฏน่ฏ / multi-turn chat in the terminal
sh run.sh -s 8080                                       # OpenAI ๅ…ผๅฎนๆœๅŠก๏ผˆๆ–‡ๆœฌ + ๅ›พๅƒ๏ผ‰/ OpenAI-compatible server (text + image)
CTX=262144 sh run.sh -s 8080                            # 256k ไธŠไธ‹ๆ–‡ / 256k context
sh bench.sh                                             # ๅค็ŽฐไธŠ่กจ / reproduce the tables above

้œ€่ฆ AX8860 ๅผ€ๅ‘ๆฟๅ’Œ SDK ่ฟ่กŒๅบ“๏ผˆ/opt/lib๏ผ‰๏ผŒSDK V0.6.0๏ผ›HF ไธ‹่ฝฝ็š„ๆ–‡ไปถๆฒกๆœ‰ๆ‰ง่กŒๆƒ้™๏ผŒ็”จ sh ่ฐƒ็”จๅณๅฏใ€‚่„šๆœฌไฝฟ็”จๅŒ…ๅ†…็›ธๅฏน่ทฏๅพ„๏ผŒๅฏๅœจไปปๆ„็›ฎๅฝ•่ฐƒ็”จใ€‚ Needs an AX8860 board with the SDK runtime in /opt/lib (SDK V0.6.0); call the scripts with sh; they use paths inside the package and can be run from any directory.

ๆœๅŠก็ซฏ่ฏทๆฑ‚็คบไพ‹ / server request:

curl -s http://127.0.0.1:8080/v1/chat/completions -H 'Content-Type: application/json' -d '{
  "messages":[{"role":"user","content":"็”จไธ‰ๅฅ่ฏไป‹็ป้•ฟๅŸŽใ€‚"}],
  "max_tokens":256,"temperature":0}'

ๆ–‡ไปถ / Files

ๆ–‡ไปถ / File ่ฏดๆ˜Ž / Description
Qwen3-VL-30B-A3B-NVFP4.gguf ่ฏญ่จ€ๆจกๅž‹ๆƒ้‡๏ผŒNVFP4๏ผŒ17.4 GB / language-model weights
mmproj-Qwen3-VL-30B-A3B-BF16.gguf ่ง†่ง‰็ผ–็ ๅ™จๆƒ้‡๏ผŒBF16๏ผŒ1.1 GB / vision-encoder weights
kernels/ 4 ไธช 4 ๆ ธ axmodel๏ผˆprefillใ€decodeใ€ไธคๆกฃ ViT๏ผš3072 ๅ’Œ 1536 patch๏ผ›่พ“ๅ‡บๅคดๅนถๅ…ฅ prefill ๅ’Œ decode๏ผ‰ๅ’Œ manifest.json / four 4-core axmodels (prefill, decode, ViT for 3072 and 1536 patches; the output head is inside prefill and decode)
bin/ llama-serverใ€llama-completionใ€llama-mtmd-cliใ€llama-perplexityใ€llama-bench๏ผˆ้™ๆ€้“พๆŽฅ / static๏ผ‰
run.shใ€chat_template.jinja ่ฟ่กŒ่„šๆœฌๅ’Œๅฏน่ฏๆจกๆฟ / run script and chat template
bench.shใ€p_short.txtใ€p4k.txtใ€bus.jpgใ€bus640x480.jpg ๆ€ง่ƒฝๅค็Žฐ่„šๆœฌๅ’Œๅ›บๅฎš่พ“ๅ…ฅ / benchmark script and fixed inputs
ppl_zh.txt ๅ›ฐๆƒ‘ๅบฆๆต‹่ฏ•ๆ–‡ๆœฌ / perplexity text
BIN_COMMITใ€SHA256SUMS ็จ‹ๅบๅฏนๅบ”็š„ llama.cpp ๆไบคใ€ๅ…จๅŒ…ๆ ก้ชŒๅ’Œ / llama.cpp commit of the programs, checksums

ๆญฃ็กฎๆ€ง / Correctness

  • ๅ›ฐๆƒ‘ๅบฆ๏ผˆppl_zh.txt๏ผŒ-c 512๏ผ‰๏ผšๆฟไธŠ prefill ่ทฏๅพ„ 5.164๏ผŒ้€ token decode ่ทฏๅพ„ 5.179๏ผ›ๅŒไธ€ GGUF ๅœจ CPU ไธŠ 5.185 / perplexity: 5.164 on the prefill path and 5.179 on the one-token decode path; the same GGUF on the CPU: 5.185.
  • ๅ›พๅƒๆ่ฟฐๆญฃ็กฎ๏ผˆ้ฉฌๅพท้‡Œ EMT ่“็™ฝ็”ตๅŠจๅ…ฌไบค่ฝฆ๏ผ‰/ image description correct (the blue-and-white EMT Madrid electric bus).
  • ้•ฟไธŠไธ‹ๆ–‡ๆฃ€็ดข๏ผˆneedle๏ผ‰32k / 120k / 240k ๅ‡ๅ‘ฝไธญ / needle retrieval at 32k / 120k / 240k all found.

่ฏดๆ˜Ž / Notes

  • ่ฟ่กŒๆ—ถๅ ็”จๅ…จ้ƒจ 4 ไธช NPU ๆ ธ๏ผŒๆœๅŠก็ซฏๅ›บๅฎš -np 1 / takes all 4 NPU cores; the server runs with -np 1.
  • run.sh ้ป˜่ฎค -ctxcp 0๏ผšllama.cpp ็š„ไธŠไธ‹ๆ–‡ checkpoint ไผšๅคๅˆถๆ•ดไธช KV๏ผˆ262144 ๆ—ถ็บฆ 24 GiB๏ผ‰๏ผŒๆฟไธŠๅ†…ๅญ˜ๆ”พไธไธ‹ / run.sh defaults to -ctxcp 0: a llama.cpp context checkpoint copies the whole KV (about 24 GiB at 262144), which does not fit in the board's memory.
  • ๆฏๅผ ๅ›พๆœ€ๅคš 768 ไธชๅ›พๅƒ token๏ผˆIMAGE_MAX_TOKENS๏ผ‰๏ผ›ไธ่ถ…่ฟ‡ 1536 patch ็š„ๅ›พ๏ผˆๅฆ‚ 640ร—480๏ผ‰่‡ชๅŠจ่ตฐ่พƒๅฐ็š„ ViT / up to 768 image tokens per image (IMAGE_MAX_TOKENS); images of at most 1536 patches (e.g. 640ร—480) use the smaller ViT automatically.
  • run.sh ๅ’Œ bench.sh ่ฎพ็ฝฎ GGML_AXERA_SYNC=1๏ผˆๆฏ token ๅชๆœ‰ไธ€ๆฌก NPU ่ฐƒ็”จ๏ผŒๅŒๆญฅ่ฐƒ็”จ็•ฅๅฟซ๏ผ‰๏ผ›็›ดๆŽฅ่ฐƒ็”จ bin/ ไธ‹็š„็จ‹ๅบๆ—ถๅปบ่ฎฎๅŒๆ ท่ฎพ็ฝฎ / run.sh and bench.sh set GGML_AXERA_SYNC=1 (one NPU call per token, so synchronous calls are slightly faster); set it too when calling the programs in bin/ directly.
  • ๅŒ…ๅ†… GGUF ้œ€็”จๆœฌไป“ๅบ“็š„ llama.cpp ็จ‹ๅบๅŠ ่ฝฝ / the GGUFs here load with the llama.cpp programs in this package.
  • llama-perplexity ๅชๆ”ฏๆŒๅ•ๅบๅˆ—๏ผš-c 512 -b 512 / llama-perplexity is single-sequence: -c 512 -b 512.
  • ๅŒไธ€่พ“ๅ…ฅๅคšๆฌก่ฟ่กŒ๏ผŒ่ดชๅฟƒ่พ“ๅ‡บๅฏ่ƒฝๅœจ่พƒ้•ฟ็”ŸๆˆๅŽๅ‡บ็Žฐๅทฎๅผ‚๏ผˆNPU ไธŠ็ดฏๅŠ ้กบๅบไธๅ›บๅฎš๏ผ‰/ repeated greedy runs can diverge after many tokens (the NPU's accumulation order varies).

ๆบ็  / Source

https://github.com/ZHEQIUSHUI/llama.cpp ๏ผˆๆž„ๅปบๆไบค่ง BIN_COMMIT / build commit in BIN_COMMIT๏ผ‰

Downloads last month
194
GGUF
Model size
31B params
Architecture
qwen3vlmoe
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/Qwen3-VL-30B-A3B-AX8860-llama.cpp

Quantized
(62)
this model

Collection including AXERA-TECH/Qwen3-VL-30B-A3B-AX8860-llama.cpp