Qwen3.5-35B-A3B on AX8860 (llama.cpp + ggml-axera)

ๅœจ็ˆฑ่Šฏ AX8860 ็š„ NPU ไธŠ็”จ llama.cpp ่ฟ่กŒ Qwen3.5-35B-A3B๏ผˆNVFP4 GGUF๏ผ‰๏ผšMoE๏ผˆๆฟ€ๆดป 3B๏ผ‰๏ผŒๆ–‡ๆœฌ + ๅ›พๅƒ่พ“ๅ…ฅ๏ผŒๆœ€้•ฟ 256k ไธŠไธ‹ๆ–‡๏ผŒMTP ๆŠ•ๆœบ่งฃ็ ๏ผŒOpenAI ๅ…ผๅฎนๆœๅŠกใ€‚ Qwen3.5-35B-A3B (NVFP4 GGUF) on the Axera AX8860 NPU with llama.cpp: MoE (3B active), text + image input, up to 256k context, MTP speculative decoding, OpenAI-compatible server.

ๆ€ง่ƒฝ / Performance

decode 78.1 tokens/s
decode๏ผŒMTP ่‡ช้€‚ๅบ” / adaptive MTP ๆœ€้ซ˜ / up to 97.4 tokens/s๏ผˆ1.26x๏ผ‰
4k prompt prefill 5221 tokens/s๏ผˆ3908 token 0.75 s๏ผ‰
ไธŠไธ‹ๆ–‡ / context ๆœ€้•ฟ / up to 262144

MTP ๆŒ‰ๅ†…ๅฎน๏ผˆ้ป˜่ฎค่‡ช้€‚ๅบ”๏ผ›MTP_FORCE=1 ๅผบๅˆถๅผ€ๅฏ๏ผ‰/ MTP by content (adaptive by default; MTP_FORCE=1 forces it):

ๅ†…ๅฎน / content ๆ™ฎ้€š / plain ้ป˜่ฎค / adaptive ๅผบๅˆถ / forced ๅŠ ้€Ÿ / speed-up ๆŽฅๅ—็އ / accept๏ผˆๅฏ็”จๆ—ถ / when active๏ผ‰
ไปฃ็  / code 76.2 86.8 91.0 1.14x 0.709
ไธญ่ฏ‘่‹ฑ / translation 76.0 75.9 79.4 1.00x 0.578
Markdown ่กจๆ ผ / table 77.3 97.4 100.5 1.26x 0.789
ๆ•ฐๅญฆ่งฃ้ข˜ / maths 76.9 84.0 83.1 1.09x 0.679
ไธญๆ–‡็Ÿญๆ–‡ / Chinese essay 76.9 77.9 60.4 1.01x 0.319
่‹ฑๆ–‡ๆ•…ไบ‹ / English story 76.9 76.5 60.5 0.99x 0.363
ไปฃ็ ๏ผŒๆŽจ่้‡‡ๆ ท / code, sampled 45.3 45.0 44.3 0.99x 0.556
ไธญๆ–‡็Ÿญๆ–‡๏ผŒๆŽจ่้‡‡ๆ ท / essay, sampled 44.2 43.9 37.0 0.99x 0.300

ๅ•ไฝ tokens/s๏ผ›ๆฏ้กนๆœ€ๅคš็”Ÿๆˆ 256 token๏ผŒๆœชๆณจๆ˜Ž็š„ไธบ่ดชๅฟƒ่งฃ็  / tokens/s; up to 256 tokens each, greedy unless noted.

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.16 s โ€”
47 token 8192 0.23 s โ€”
3908 token 8192 0.75 s 74.1
5 token 262144 0.16 s โ€”
47 token 262144 0.23 s โ€”
3908 token 262144 0.75 s 72.6

ๅฟซ้€Ÿๅผ€ๅง‹ / 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 -c                                      # ๅ‘ฝไปค่กŒๅฏน่ฏ / chat
sh run.sh -s 8080                                 # ๆœๅŠก็ซฏ๏ผŒ้ป˜่ฎค่‡ช้€‚ๅบ” MTP / server, adaptive MTP
MTP=0 sh run.sh -s 8080                           # ๅ…ณ้—ญ MTP / MTP off
MTP_FORCE=1 sh run.sh -s 8080                     # ๅผบๅˆถ MTP / force MTP
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.

ๆ–‡ไปถ / Files

ๆ–‡ไปถ / File ่ฏดๆ˜Ž / Description
qwen3.5-35b-a3b-nvfp4.gguf ๆจกๅž‹ๆƒ้‡๏ผˆNVFP4๏ผŒๅซ .scale ไผด้šๅผ ้‡๏ผ‰/ weights (NVFP4 with .scale sidecars)๏ผŒ20.5 GB๏ผŒmd5 3bb6ac32663612d2af009fcd72a9074d
mmproj-qwen3.5-35b-a3b-bf16.gguf ่ง†่ง‰็ผ–็ ๅ™จ / vision encoder๏ผŒ903 MB๏ผŒmd5 d4dd36066a7195e345c6f0806f030bcd
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
scenes/ 8 ไธช MTP ๅœบๆ™ฏ่ฏทๆฑ‚ / 8 MTP scene requests

่ฏดๆ˜Ž / 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.
  • ่ดชๅฟƒ่ฏทๆฑ‚่ฏทๆ˜พๅผๅธฆ presence_penalty: 0๏ผŒๅฆๅˆ™ๆœๅŠก็ซฏๆŽจ่็š„ presence penalty ไผšๅ…ณ้—ญ fused greedy๏ผŒ่‡ช้€‚ๅบ” MTP ไธไผš็”Ÿๆ•ˆ / greedy requests should set presence_penalty: 0; otherwise the recommended presence penalty disables fused greedy and adaptive MTP stays dormant.
  • ๆœๅŠก็ซฏ้ป˜่ฎคๅผ€ MTP๏ผˆ--spec-type draft-mtp๏ผŒๆฏ่ฝฎๆœ€ๅคš 3 ไธช่‰็จฟ๏ผ‰๏ผŒๅนถๆŒ‰่ฏทๆฑ‚่‡ช้€‚ๅบ”ๅ†ณๅฎšๆ˜ฏๅฆไฝฟ็”จ๏ผ›MTP=0 ๅ…ณ้—ญ๏ผŒMTP_FORCE=1 ๅผบๅˆถๅผ€ๅฏ๏ผŒMTP_NMAX ๆ”น่‰็จฟๆ•ฐ / the server enables MTP by default and adapts it per request; MTP=0 disables it, MTP_FORCE=1 forces it, MTP_NMAX sets the drafts per round.
  • ๆœๅŠก็ซฏ้ป˜่ฎคๅ…ณ้—ญๆ€่€ƒ๏ผˆ--reasoning off๏ผ‰๏ผŒๅนถๅ…่ฎธๅฏน่ฏไธญๆฎต็š„ system ๆถˆๆฏ๏ผˆCodex ็ญ‰ agent ๅฎขๆˆท็ซฏๅฏ็”จ๏ผ‰/ the server does not think by default and accepts a mid-conversation system message (works with agent clients such as Codex).
  • 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.
  • llama-bench ๅฏ็”จ๏ผŒ่ฏทๅŠ  -b 4096 -ub 4096 / llama-bench works; pass -b 4096 -ub 4096.
  • ไธชๅˆซ็Žฏๅขƒไธ‹่ฟž็ปญ่ฏทๆฑ‚ๅถๅ‘ ret = -3๏ผŒ้‡่ฏ•ๅณๅฏ / in rare cases a back-to-back request fails with ret = -3; retry it.

ๆญฃ็กฎๆ€ง / Correctness

  • ไธญๆ–‡ PPL๏ผˆๅ†…้ƒจๆต‹่ฏ•้›†๏ผŒ-c 512 --chunks 20๏ผ‰๏ผš-ub 1 18.7207 ยฑ 0.82704๏ผŒ-ub 4 18.6932 ยฑ 0.82500๏ผ›nvgguf ไธบ 18.71 / Chinese PPL on an internal set: 18.7207 with -ub 1 and 18.6932 with -ub 4; nvgguf reports 18.71.
  • ่‹ฑๆ–‡ PPL๏ผˆ-c 4096 --chunks 8๏ผ‰๏ผš1.6354 ยฑ 0.01813๏ผ›nvgguf ไธบ 1.632 / English PPL: 1.6354; nvgguf reports 1.632.
  • needle 32k / 64k / 120k๏ผšๅ…จ้ƒจ็ญ”ๅฏน๏ผ›็บฆ 30917 / 61177 / 113463 token ็š„ prompt / needle 32k, 64k and 120k all answered correctly (about 30917, 61177 and 113463 prompt tokens).
  • "The capital of France is" โ†’ "Paris. โ€ฆ"๏ผ›ๅ›พ็‰‡ๆ่ฟฐๆญฃ็กฎ๏ผˆ่“็™ฝ EMT Madrid ็”ตๅŠจๅ…ฌไบค่ฝฆใ€่ฝฆ่บซๆ–‡ๅญ— cero emisiones๏ผ‰/ text and image descriptions correct (blue/white EMT Madrid electric bus, the body text).
  • ๆœๅŠก็ซฏๅคš่ฝฎ่ฎฐๅฟ†ใ€ไธญ้€” system ๆถˆๆฏใ€ๅ›พ็‰‡่พ“ๅ…ฅๅ‡ๆญฃๅธธ๏ผ›ๆŒ‰ PID SIGTERM ๅฏ้€€ๅ‡บ๏ผ›r3client.py grow ๅˆฐ โ‰ฅ60k token ไธ OOM / server multi-turn memory, mid-conversation system and image input work; the process exits on SIGTERM; r3client.py grow reaches โ‰ฅ60k prompt tokens without OOM.
  • MTP ็š„่‰็จฟ็”ฑ็›ฎๆ ‡ๆจกๅž‹้€ token ้ชŒ่ฏ๏ผ›่ดชๅฟƒๆ—ถ่พ“ๅ‡บไธŽๆ™ฎ้€š่ดชๅฟƒ่งฃ็ ไธ€่‡ด / every draft is verified by the target model; greedy output equals plain greedy decoding.

ๆบ็  / Sources

ๆ›ดๆ–ฐ / Changelog

  • 2026-11-09๏ผšGGUF ๆ”นไธบ NVFP4๏ผˆ.scale ไผด้šๅผ ้‡๏ผŒไป…ๆœฌ fork ๆ”ฏๆŒ๏ผ‰๏ผ›KV cache ๆ”นไธบ FP8๏ผ›ๆœๅŠก็ซฏ้ป˜่ฎค่‡ช้€‚ๅบ” MTP๏ผ›้•ฟไธŠไธ‹ๆ–‡ checkpoint ๅ†…ๅญ˜ไธๅ†้šไธŠไธ‹ๆ–‡ๅขž้•ฟ๏ผ›่ดชๅฟƒๅœบๆ™ฏๆ˜พๅผ presence_penalty: 0๏ผ›perplexity ๅ›บๅฎš่ตฐๅ…จ logits / NVFP4 GGUF, FP8 KV cache, adaptive MTP by default, checkpoint memory no longer grows with context, explicit presence_penalty: 0 in greedy scenes, perplexity keeps the full-logits head.
Downloads last month
41
GGUF
Model size
36B 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/Qwen3.5-35B-A3B-AX8860-llama.cpp

Quantized
(323)
this model

Collection including AXERA-TECH/Qwen3.5-35B-A3B-AX8860-llama.cpp