Instructions to use AXERA-TECH/Qwen3.5-2B-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-2B-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-2B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.5-2B-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-2B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/Qwen3.5-2B-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-2B-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp:BF16
Use Docker
docker model run hf.co/AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp:BF16
- Unsloth Desktop
- Pi
How to use AXERA-TECH/Qwen3.5-2B-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-2B-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-2B-AX8860-llama.cpp:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp:BF16
- Lemonade
How to use AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/Qwen3.5-2B-AX8860-llama.cpp:BF16
Run and chat with the model
lemonade run user.Qwen3.5-2B-AX8860-llama.cpp-BF16
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/Qwen3.5-2B-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-2B-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-2B-AX8860-llama.cpp:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/Qwen3.5-2B-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-2B-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-2B-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.5-2B on AX8860 (llama.cpp + ggml-axera, 2026-11-05)
ๅจ็ฑ่ฏ AX8860 ็ NPU๏ผ4 ๆ ธ๏ผไธ็จ llama.cpp ่ฟ่ก Qwen3.5-2B๏ผๆฏๆๆๆฌๅๅพๅ่พๅ ฅ๏ผๆดไธชๆจกๅ็ prefill ๆฏไธไธช kernelใdecode ๆฏๆฏ 16 ๅฑไธไธช kernel๏ผๆ้ๅจ NPU ๅ ๅญ้ๅชๆพไธไปฝใ Qwen3.5-2B with text and image input on the 4-core NPU of the Axera AX8860, with llama.cpp; the whole model's prefill is one kernel, decode one kernel per 16 layers, one copy of the weights in NPU memory.
ๆไปถ / Files
| ๆไปถ / File | ่ฏดๆ / Description |
|---|---|
qwen3.5-2b-mxfp4.gguf |
ๆจกๅๆ้๏ผGGUF๏ผๆๅฝฑๅฑ MXFP4ใembedding / ่พๅบๅคด Q8_0๏ผ1.3 GB๏ผmd5 4a494ba48e2904a7925fb4fed6cc628f๏ผ/ weights (projections MXFP4, embedding / output head Q8_0) |
mmproj-Qwen3.5-2B-BF16.gguf |
่ง่ง็ผ็ ๅจๆ้๏ผBF16๏ผ0.8 GB๏ผmd5 47c5b21dc254ba4f0d4bd34454442e31๏ผ/ vision encoder weights |
bin/ |
llama.cpp ๆฟ็ซฏ็จๅบ๏ผ้ๆ้พๆฅ๏ผๅชไพ่ต็ณป็ป /opt/lib ไธ libc๏ผ/ the board programs (static; need only the system /opt/lib and libc) |
kernels/ |
NPU kernel๏ผprefill๏ผๆดๆจกๅ๏ผใdecode๏ผ16 ๅฑไธ็ป๏ผใViTใ่พๅบๅคด + manifest.json๏ผไธไธๆ 16384๏ผ/ prefill (whole model), decode (16-layer groups), ViT, output head + manifest.json (context 16384) |
run.sh |
่ฟ่ก่ๆฌ / run script |
ๆ้ๅชๆฅ่ช GGUF๏ผkernel ไธๅซๆ้๏ผๅ ่ฝฝๆถไป GGUF ่ฝฌๆขๅฐ NPU๏ผ2.7 s๏ผ๏ผNPU ๅ ๅญ้ๅชๆพไธไปฝๆ้๏ผprefill ๅ decode ๅ ฑ็จ๏ผใ The weights come only from the GGUFs: the kernels hold none; they are converted from the GGUF at load (2.7 s); one copy of the weights in NPU memory (shared by prefill and decode).
่ฟ่ก / Run
็ฏๅข / Requirements๏ผAX8860๏ผSDK V0.5.0 ๆๆดๆฐ๏ผcat /proc/ax_proc/version๏ผ/ SDK V0.5.0 or newer.
./run.sh "The capital of France is" 64 # ๆๆฌ่กฅๅ
จ / text completion
./run.sh -i bus.jpg "Describe this image." 256 # ๅพๅๆ่ฟฐ / describe an image
./run.sh -c # ๅฝไปค่กๅค่ฝฎๅฏน่ฏ / multi-turn chat in the terminal
./run.sh -s 8080 # OpenAI ๅ
ผๅฎนๆๅก / OpenAI-compatible server
curl http://<board>:8080/v1/chat/completions -H 'Content-Type: application/json' \
-d '{"messages":[{"role":"user","content":"ไฝ ๅฅฝ"}]}'
็ดๆฅ่ฐ็จ็จๅบๆถ่ฎพ็ฝฎ / When calling the programs directly: LD_LIBRARY_PATH=/opt/lib GGML_AXERA_KERNEL_DIR=<repo>/kernels๏ผ-ngl 99๏ผไธไธๆ -c ๆๅคง 16384๏ผๆๅก็ซฏ -np 1๏ผprompt ็จ -ub 4096 -b 4096 ๆๅฟซ / -ub 4096 -b 4096 for the fastest prompt processingใGGML_AXERA_PROF=1 ้ๅบๆถๆๅฐๅ้ถๆฎต่ๆถ / prints per-stage times at exit
ๆง่ฝ / Performance
AX8860๏ผSDK V0.5.1๏ผNPU 4 ๆ ธ / 4 cores๏ผ
| ้กน / Item | ็ปๆ / Result |
|---|---|
| 4k prompt๏ผ4000 token๏ผprefill | 16000 tokens/s๏ผๆฏ 256 token ไธ้กต 15 ms๏ผ้ฆๆฌก prompt ๅฆๅ 2.7 s ๆ้่ฝฌๆข / plus a one-time 2.7 s weight conversion on the first prompt๏ผ |
| decode๏ผ็ญไธไธๆ / short context๏ผ | 121.5 tokens/s |
| ๅพๅ็ผ็ / image encoding | 204 ms๏ผๆดไธช ViT ไธไธช kernel / the whole ViT in one kernel๏ผ+ 20 ms CPU ้ขๅค็ / preprocessing๏ผ่พๅ
ฅ็ผฉๆพๅฐ็บฆ 1024 x 768๏ผๆๅค 768 ไธชๅพๅ token = 3072 ไธช 16 x 16 patch๏ผ--image-max-tokens 768๏ผๆดๅคง็ๅพ็ผฉๅฐใๆดๅฐ็ๅพๆพๅคงๅฐ่ฟไธช้ข็งฏ๏ผ/ the image is scaled to ~1024 x 768 (up to 768 image tokens = 3072 patches of 16 x 16; larger images are scaled down, smaller ones up) |
| ๅ ่ฝฝ / load | 5.5 s๏ผ็ญ๏ผ/ 30 s๏ผๅท๏ผ |
| NPU ๅ ๅญ๏ผCMM๏ผ/ NPU memory | ๅ ่ฝฝๅ / after load 2.05 GB๏ผๅณฐๅผ / peak 2.05 GB |
| ็ณป็ปๅ ๅญๅณฐๅผ / host memory peak | 0.8 GB |
ๆญฃ็กฎๆง / Correctness
- "The capital of France is" โ "Paris. โฆ"๏ผๅพๅๆ่ฟฐๆญฃ็กฎ๏ผ่ฝฆ่พใๆๅญใไบบ็ฉ๏ผ/ image descriptions correct.
- ไธญๆ PPL๏ผๅ
้จๆต่ฏ้๏ผ
-c 512๏ผ๏ผNPU 38.85๏ผๅไธ GGUF ๅจ CPU ไธ 38.00๏ผ+2.2%๏ผ/ Chinese PPL on an internal set: NPU 38.85 vs 38.00 for the same GGUF on the CPU (+2.2%). - ๅไธ่พๅ ฅๅคๆฌก่ฟ่ก๏ผ็ปๆๅถๆๆๅฐๅทฎๅผ๏ผNPU ไธ็ดฏๅ ้กบๅบไธๅบๅฎ๏ผ๏ผไธๅฝฑๅ่พๅบ่ดจ้ใ Repeated runs of one input may differ slightly (the NPU's accumulation order varies); the output quality is the same.
ๅทฒ็ฅ้ๅถ / Known limits
- ่ฟ่กๆถ็ฌๅ NPU 4 ๆ ธ๏ผๅๆถ่ฟ่กๅ ถไป NPU ็จๅบไผๅบ้ / takes all 4 NPU cores; do not run other NPU programs alongside.
- ๅๅบๅ๏ผๆๅก็ซฏ้กป
-np 1/ one sequence: the server needs-np 1. - ไธไธๆๆๅคง 16384๏ผ้ฟไธไธๆ็ๆฌ้ๅ๏ผ/ context up to 16384 (longer contexts to follow).
- ๆฒกๆๆๆบ่งฃ็ ๏ผ่ฟไธชๅฐบๅฏธ็ๆจกๅๆฒกๆ MTP ๅคด๏ผ/ no speculative decoding (no MTP head at this size).
ๆบ็ / Sources
- llama.cpp๏ผZHEQIUSHUI/llama.cpp
axera-dev@57a30bd๏ผggml/src/ggml-axera/models/qwen35_whole๏ผ - kernel๏ผZHEQIUSHUI/ax-dsl-kernels
main๏ผmodels/qwen35_2b/whole๏ผkernels.md5๏ผ
- Downloads last month
- 243
4-bit