Instructions to use AXERA-TECH/Qwen3.6-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/Qwen3.6-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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
Use Docker
docker model run hf.co/AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
- Unsloth Desktop
- Pi
How to use AXERA-TECH/Qwen3.6-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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
- Lemonade
How to use AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
Run and chat with the model
lemonade run user.Qwen3.6-35B-A3B-AX8860-llama.cpp-BF16
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/Qwen3.6-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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/Qwen3.6-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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16
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/Qwen3.6-35B-A3B-AX8860-llama.cpp:BF16" \ --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"
Qwen3.6-35B-A3B on AX8860 (llama.cpp + ggml-axera)
ๅจ็ฑ่ฏ AX8860 ็ NPU ไธ็จ llama.cpp ่ฟ่ก Qwen3.6-35B-A3B๏ผNVFP4 GGUF๏ผ๏ผMoE๏ผๆฟๆดป 3B๏ผ๏ผๆๆฌ + ๅพๅ่พๅ ฅ๏ผๆ้ฟ 256k ไธไธๆ๏ผMTP ๆๆบ่งฃ็ ๏ผOpenAI ๅ ผๅฎนๆๅกใ Qwen3.6-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 | 76.4 tokens/s |
| decode๏ผMTP ่ช้ๅบ / adaptive MTP | ๆ้ซ / up to 86.8 tokens/s๏ผ1.13x๏ผ |
| 4k prompt prefill | 5276 tokens/s๏ผ3908 token 0.74 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.9 | 86.8 | 96.9 | 1.13x | 0.752 |
| ไธญ่ฏ่ฑ / translation | 76.0 | 75.9 | 80.2 | 1.00x | 0.598 |
| Markdown ่กจๆ ผ / table | 76.8 | 83.1 | 87.9 | 1.08x | 0.646 |
| ๆฐๅญฆ่งฃ้ข / maths | 76.8 | 84.1 | 86.2 | 1.09x | 0.699 |
| ไธญๆ็ญๆ / Chinese essay | 77.5 | 77.8 | 61.0 | 1.00x | 0.320 |
| ่ฑๆๆ ไบ / English story | 76.3 | 76.7 | 60.4 | 1.00x | 0.365 |
| ไปฃ็ ๏ผๆจ่้ๆ ท / code, sampled | 46.6 | 45.0 | 50.8 | 0.97x | 0.556 |
| ไธญๆ็ญๆ๏ผๆจ่้ๆ ท / essay, sampled | 44.1 | 47.1 | 39.4 | 1.07x | 0.357 |
ๅไฝ 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.74 s | 74.0 |
| 5 token | 262144 | 0.16 s | โ |
| 47 token | 262144 | 0.23 s | โ |
| 3908 token | 262144 | 0.74 s | 73.8 |
ๅฟซ้ๅผๅง / Quick start
sh run.sh "The capital of France is" 64 # ๆๆฌ / text
sh run.sh -i bus.jpg "Describe this image." 256 # ๅพๅ / image
VIT=640x480 sh run.sh -i bus.jpg "Describe this image." 256 # 640ร480 ๅพๅ็ผ็ / 640x480 image encoder
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.6-35b-a3b-nvfp4.gguf |
ๆจกๅๆ้๏ผNVFP4๏ผๅซ .scale ไผด้ๅผ ้๏ผ/ weights (NVFP4 with .scale sidecars)๏ผ20.5 GB๏ผmd5 c8beef1375ba6d77453ae4d3e6bb4600 |
mmproj-qwen3.6-35b-a3b-bf16.gguf |
่ง่ง็ผ็ ๅจ / vision encoder๏ผ903 MB๏ผmd5 d47f758579ad9343324d9208b424c07a |
bin/ |
llama.cpp ๆฟ็ซฏ็จๅบ๏ผ้ๆ้พๆฅ๏ผ/ board programs (static) |
kernels/ |
NPU kernel + manifest.json |
kernels_vit_640x480/ |
ๅฏ้๏ผ640ร480 ๅพๅ็ผ็ kernel๏ผVIT=640x480 ๅฏ็จ๏ผๅ
ถไฝ kernel ๅค็จ kernels/๏ผใๆฟไธ็จ run.sh -i ๅฎๆตๅๅผ ๅพ็ๅพๅ็ผ็ 277 ms โ 116 ms๏ผๆดๅคง็ๅพไผๅ
็ผฉๅฐ 640ร480 ็ๅ็ด ้๏ผ็ป่ๅฐไบ้ป่ฎค / optional 640x480 image encoder, enabled with VIT=640x480 (other kernels are reused from kernels/). Measured on the board with run.sh -i: 277 ms โ 116 ms to encode one image; larger images are scaled down to 640x480 worth of pixels first, so fine detail is lower than the default |
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.scalesidecar tensors. Only this fork loads it correctly; upstream llama.cpp cannot. - ่ดชๅฟ่ฏทๆฑ่ฏทๆพๅผๅธฆ
presence_penalty: 0๏ผๅฆๅๆๅก็ซฏๆจ่็ presence penalty ไผๅ ณ้ญ fused greedy๏ผ่ช้ๅบ MTP ไธไผ็ๆ / greedy requests should setpresence_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=0disables it,MTP_FORCE=1forces it,MTP_NMAXsets the drafts per round. - ๆๅก็ซฏ้ป่ฎคๅ
ณ้ญๆ่๏ผ
--reasoning off๏ผ๏ผๅนถๅ ่ฎธๅฏน่ฏไธญๆฎต็ system ๆถๆฏ๏ผCodex ็ญ agent ๅฎขๆท็ซฏๅฏ็จ๏ผใchat_template.jinjaๅ่ช Qwen3.6 ๅๆจกๆฟ๏ผไป ๆพๅฎฝไบไธญๆฎต system ๆถๆฏ / the server does not think by default and accepts a mid-conversation system message; the template is Qwen3.6's own with only the mid-conversation system restriction relaxed. - Prompt cache ้ป่ฎคๆพๅจ 4 GB ๅ ๅญ / the prompt cache lives in 4 GB of host memory.
- 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-benchworks; pass-b 4096 -ub 4096.- ไธชๅซ็ฏๅขไธ่ฟ็ปญ่ฏทๆฑๅถๅ
ret = -3๏ผ้่ฏๅณๅฏ / in rare cases a back-to-back request fails withret = -3; retry it.
ๆญฃ็กฎๆง / Correctness
- ไธญๆ PPL๏ผๅ
้จๆต่ฏ้๏ผ
-c 512 --chunks 20๏ผ๏ผ-ub 117.1751 ยฑ 0.73694๏ผ-ub 417.1148 ยฑ 0.73427๏ผๅๆบๅๆไปถ Qwen3.5-35B-A3B ไธบ 18.6744 / 18.6075 / Chinese PPL on the same internal file: 17.1751 with-ub 1and 17.1148 with-ub 4; Qwen3.5-35B-A3B on the same board/file is 18.6744 / 18.6075. - ้ๅๆๅคฑ๏ผๅไธไธญๆๆไปถ 20 chunks๏ผ๏ผCPU bf16 15.94๏ผCPU ไธๆ NVFP4 ้ๅๅ็ๅไธๆ้ 16.78๏ผๆฟไธ 17.18๏ผNVFP4 ้ๅๆฌ่บซ +5.3%๏ผๆฟไธ็ธๅฏนๅๆ้ CPU +2.4%๏ผQwen3.5-35B-A3B ๅๅซไธบ +2.6% / +1.7%๏ผ / quantization cost on the same Chinese file: CPU bf16 15.94, CPU with the same NVFP4 weights 16.78, board 17.18; NVFP4 itself +5.3%, board vs CPU on the same weights +2.4% (Qwen3.5-35B-A3B: +2.6% / +1.7%).
- ่ฑๆ PPL๏ผ
-c 4096 --chunks 8๏ผๅไธbook_en.txt๏ผ๏ผ1.3280 ยฑ 0.01180๏ผๅๆบๅๆไปถ Qwen3.5-35B-A3B ไธบ 1.6333 / English PPL on the samebook_en.txt: 1.3280; Qwen3.5-35B-A3B on the same board/file is 1.6333. - needle 32k / 120k๏ผๅ จ้จ็ญๅฏน๏ผ็บฆ 30917 / 113463 token ็ prompt / needle 32k and 120k all answered correctly (about 30917 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,cero emisiones, pedestrians). - ๆๅก็ซฏๅค่ฝฎ่ฎฐๅฟใไธญ้ system ๆถๆฏใๅพ็่พๅ
ฅๅๆญฃๅธธ๏ผๆ PID
SIGTERMๅฏ้ๅบ / server multi-turn memory, mid-conversation system and image input work; the process exits onSIGTERM. - MTP ็่็จฟ็ฑ็ฎๆ ๆจกๅ้ token ้ช่ฏ๏ผ่ดชๅฟ่พๅบไธๆฎ้่งฃ็ ไธ่ด๏ผไป ๅจไธคไธชๅ้ๆฆ็ๅ ไนๅนถๅๅคๅฏ่ฝไธๅ / every draft is verified by the target model; greedy output matches plain decoding except possibly at near-ties.
ๆบ็ / Sources
- llama.cpp๏ผZHEQIUSHUI/llama.cpp
axera-dev@6613735ce
ๆดๆฐ / Changelog
- 2026-11-09๏ผๆฐๅข Qwen3.6-35B-A3B๏ผ็ดๆฅๅค็จ Qwen3.5-35B-A3B ็ AX8860 kernels ไธ bin๏ผGGUF ไธบ NVFP4๏ผ
.scaleไผด้ๅผ ้๏ผไป ๆฌ fork ๆฏๆ๏ผ๏ผKV cache ไธบ FP8๏ผๆๅก็ซฏ้ป่ฎค่ช้ๅบ MTP / Qwen3.6-35B-A3B with the released Qwen3.5-35B-A3B AX8860 kernels and binaries; NVFP4 GGUF with.scalesidecars (this fork only), FP8 KV cache and adaptive MTP by default.
- Downloads last month
- 1,410
4-bit
Model tree for AXERA-TECH/Qwen3.6-35B-A3B-AX8860-llama.cpp
Base model
Qwen/Qwen3.6-35B-A3B