Instructions to use AXERA-TECH/Qwen3.5-9B-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.5-9B-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.5-9B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.5-9B-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.5-9B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.5-9B-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.5-9B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16
Use Docker
docker model run hf.co/AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16
- Unsloth Desktop
- Pi
How to use AXERA-TECH/Qwen3.5-9B-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.5-9B-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:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16
- Lemonade
How to use AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16
Run and chat with the model
lemonade run user.Qwen3.5-9B-AX8860-llama.cpp-BF16
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/Qwen3.5-9B-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.5-9B-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:8080/v1 hermes config set model.default AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/Qwen3.5-9B-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.5-9B-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:8080/v1 \ --custom-model-id "AXERA-TECH/Qwen3.5-9B-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"
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16# Run inference directly in the terminal:
llama cli -hf AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16Build 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.5-9B-AX8860-llama.cpp:BF16# Run inference directly in the terminal:
./build/bin/llama cli -hf AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16Use Docker
docker model run hf.co/AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16Qwen3.5-9B on AX8860 (llama.cpp + ggml-axera)
ๅจ็ฑ่ฏ AX8860 ็ NPU ไธ็จ llama.cpp ่ฟ่ก Qwen3.5-9B๏ผๆๆฌ + ๅพๅ่พๅ ฅ๏ผOpenAI ๅ ผๅฎนๆๅกใ Qwen3.5-9B on the Axera AX8860 NPU with llama.cpp: text + image input, OpenAI-compatible server.
ๆง่ฝ / Performance
| decode | 43.7 tokens/s |
| decode๏ผMTP ่ช้ๅบ / adaptive MTP | ๆ้ซ / up to 76.6 tokens/s๏ผ1.75x๏ผ |
| 4k prompt๏ผMTP / MTP on 4k | 41.2 โ 68.1 tokens/s๏ผ1.65x๏ผaccepted 44/57๏ผ |
| 4k prompt prefill | 2959 tokens/s๏ผ3908 token 1.32 s๏ผ |
| ไธไธๆ / context | ๆ้ฟ / up to 262144 |
MTP ๅฏ้๏ผMTP=1 ./run.sh -s ่ช้ๅบ๏ผMTP=force ๅผบๅถ๏ผ้ป่ฎคๅ
ณ้ญ๏ผ/ optional MTP (MTP=1 ./run.sh -s adaptive, MTP=force forced, off by default):
| ๅ ๅฎน / content | ๆฎ้ / plain | ้ป่ฎค / adaptive | ๅผบๅถ / forced | ๅ ้ / speed-up | ๆฅๅ็ / accept๏ผๅฏ็จๆถ / when active๏ผ |
|---|---|---|---|---|---|
| ไปฃ็ / code | 43.6 | 58.7 | 61.9 | 1.35x | 0.595 |
| ไธญ่ฏ่ฑ / translation | 43.0 | 67.9 | 64.1 | 1.58x | 0.691 |
| Markdown ่กจๆ ผ / table | 43.7 | 76.6 | 77.1 | 1.75x | 0.816 |
| ๆฐๅญฆ่งฃ้ข / maths | 43.5 | 66.3 | 66.0 | 1.52x | 0.667 |
| ไธญๆ็ญๆ / Chinese essay | 43.7 | 43.4 | 47.3 | 0.99x | 0.369 |
| ่ฑๆๆ ไบ / English story | 43.4 | 42.3 | 47.3 | 0.97x | 0.376 |
| ไปฃ็ ๏ผๆจ่้ๆ ท / code, sampled | 42.7 | 42.1 | 39.4 | 0.98x | 0.444 |
| ไธญๆ็ญๆ๏ผๆจ่้ๆ ท / essay, sampled | 43.2 | 42.9 | 28.7 | 0.99x | 0.267 |
| Linux ๅฝไปคๅ่กจ / list | 43.1 | 54.2 | 55.1 | 1.26x | 0.500 |
| ไธญๆ่งฃ้ / explanation | 42.8 | 43.2 | 50.5 | 1.01x | 0.433 |
ๅไฝ 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.11 s | โ |
| 47 token | 8192 | 0.11 s | โ |
| 3908 token | 8192 | 1.32 s | 41.9 |
| 5 token | 262144 | 0.11 s | โ |
| 47 token | 262144 | 0.11 s | โ |
| 3908 token | 262144 | 1.31 s | 41.5 |
| 3908 token๏ผๆจ่้ๆ ท / sampled | 8192 | 1.32 s | 41.5 |
ๅฟซ้ๅผๅง / 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 # OpenAI ๅ
ผๅฎนๆๅก / server
MTP=1 sh run.sh -s 8080 # ่ช้ๅบ MTP / adaptive MTP
MTP=force sh run.sh -s 8080 # ๅผบๅถ MTP / forced 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-9b-mxfp4.gguf |
ๆจกๅๆ้ / weights๏ผ6.00 GB๏ผmd5 57b4b4b8fe3e7d05af29019438e5369a |
mmproj-qwen3.5-9b-bf16.gguf |
่ง่ง็ผ็ ๅจ / vision encoder๏ผ921 MB๏ผmd5 69d1a645084d0f31d4296a82dce991cf |
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/ |
10 ไธช MTP ๅบๆฏ่ฏทๆฑ / 10 MTP scene requests |
MTP.md |
ๅฏ้ MTP ็จๆณ / optional MTP usage |
่ฏดๆ / Notes
- MTP ๅฏ้๏ผ
MTP=1 ./run.sh -s่ช้ๅบๅผๅฏ๏ผMTP=force ./run.sh -sๅผบๅถๅผๅฏ๏ผMTP ๅผๅ ณไธๆนๅ้ๆ ทๅๆฐใ่ดชๅฟ่ฏทๆฑ้กปๆพๅผๅธฆpresence_penalty: 0๏ผๅฆๅๆๅก็ซฏๆจ่็ presence penalty ไผๅ ณ้ญ fused greedy๏ผ่ช้ๅบ MTP ไธไผ็ๆ / optional MTP:MTP=1 ./run.sh -senables it adaptively andMTP=forceforces it, without changing sampling. Greedy requests must setpresence_penalty: 0; otherwise the server's recommended presence penalty disables fused greedy and adaptive MTP stays dormant. - ๆๅก็ซฏ้ป่ฎคไฝฟ็จๆจกๅๅกๆจ่็้ๆ ทๅๆฐ๏ผๆๆฌ่กฅๅ จไธๅพๅๆ่ฟฐไธบ่ดชๅฟ่งฃ็ / the server uses the model card's recommended sampling; completion and image description are greedy.
- ๆๅก็ซฏ้ป่ฎคๅ
ณ้ญๆ่๏ผ
--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; setCACHE_DIR=<an SSD directory>to keep it on disk across restarts. - ่ฟ่กๆถ็ฌๅ 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๏ผ2-chunk๏ผ
ppl_zh.txt๏ผ-ub 120.8654ใ-ub 420.8061๏ผ20-chunk๏ผppl_zh_long.txt๏ผ-ub 123.7616ใ-ub 423.7930 / PPL: 20.8654 (-ub 1) and 20.8061 (-ub 4) over 2 chunks; 23.7616 and 23.7930 over 20 chunks. - "The capital of France is" โ "Paris. โฆ"๏ผๅพๅๆ่ฟฐๆญฃ็กฎ๏ผ่ฝฆ่พใๆๅญใไบบ็ฉ๏ผ/ text and image descriptions correct.
- ๆฟ็ซฏ bin ๆดๆฐๅ่พๅบไธไธไธ็ไธ่ด๏ผMTP ็่็จฟ็ฑ็ฎๆ ๆจกๅ้ token ้ช่ฏ๏ผ่ดชๅฟ่พๅบไธๆฎ้่งฃ็ ไธ่ด / output matches the previous release after the board-bin update; every MTP draft is verified by the target model and greedy output equals plain decoding.
ๆบ็ / Sources
- llama.cpp๏ผZHEQIUSHUI/llama.cpp
axera-dev@0104880be
ๆดๆฐ / Changelog
- 2026-11-09๏ผ9B ๅขๅ ๅฏ้ MTP๏ผ256k kernels๏ผ๏ผ็ปไธๆฟ็ซฏ bin๏ผ่ดชๅฟๅบๆฏๆพๅผ
presence_penalty: 0๏ผperplexity ๅบๅฎ่ตฐๅ จ logits / optional 9B MTP with 256k kernels, unified board bins, explicitpresence_penalty: 0in greedy scenes, perplexity keeps the full-logits head.
- Downloads last month
- 403
4-bit
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16# Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.5-9B-AX8860-llama.cpp:BF16