Instructions to use AXERA-TECH/LightNav-0-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/LightNav-0-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/LightNav-0-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/LightNav-0-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/LightNav-0-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: llama cli -hf AXERA-TECH/LightNav-0-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/LightNav-0-AX8860-llama.cpp:BF16 # Run inference directly in the terminal: ./build/bin/llama cli -hf AXERA-TECH/LightNav-0-AX8860-llama.cpp:BF16
Use Docker
docker model run hf.co/AXERA-TECH/LightNav-0-AX8860-llama.cpp:BF16
- Llama new
- LM Studio
- Jan
- Ollama
How to use AXERA-TECH/LightNav-0-AX8860-llama.cpp with Ollama:
ollama run hf.co/AXERA-TECH/LightNav-0-AX8860-llama.cpp:BF16
- Unsloth Desktop
- Pi
How to use AXERA-TECH/LightNav-0-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/LightNav-0-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/LightNav-0-AX8860-llama.cpp:BF16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use AXERA-TECH/LightNav-0-AX8860-llama.cpp with Docker Model Runner:
docker model run hf.co/AXERA-TECH/LightNav-0-AX8860-llama.cpp:BF16
- Lemonade
How to use AXERA-TECH/LightNav-0-AX8860-llama.cpp with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull AXERA-TECH/LightNav-0-AX8860-llama.cpp:BF16
Run and chat with the model
lemonade run user.LightNav-0-AX8860-llama.cpp-BF16
List all available models
lemonade list
- Hermes Agent
How to use AXERA-TECH/LightNav-0-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/LightNav-0-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/LightNav-0-AX8860-llama.cpp:BF16
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use AXERA-TECH/LightNav-0-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/LightNav-0-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/LightNav-0-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"
LightNav-0 on AX8860 (llama.cpp)
ๅจ็ฑ่ฏ AX8860 ็ NPU๏ผ4 ๆ ธ๏ผไธ็จ llama.cpp ่ฟ่กๅ ท่บซๅฏผ่ชๆจกๅ LightNav-0๏ผๅบไบ Qwen3-VL-4B๏ผ๏ผ่พๅ ฅ็ฌฌไธ่ง่ง็ๅๅฒ็ป้ขๅไธๅฅๅฏผ่ชๆไปค๏ผ่พๅบๆๅ token ๅ 3 ไธช RVQ ๅจไฝ token๏ผๅ ๅ ๅฎขๆท็ซฏๆๅฎไปฌ่งฃ็ ๆ 10 ๆญฅ่ทฏ็นใ LightNav-0 (an embodied-navigation model built on Qwen3-VL-4B) on the 4-core NPU of the Axera AX8860, with llama.cpp: given a first-person frame history and an instruction it outputs a pointing token and three RVQ action tokens, which the bundled client decodes into ten waypoints.
ๆง่ฝ / Performance
| ้กน / Item | ๅผ / Value |
|---|---|
| 64 ๅธงๅฏผ่ช่ฏทๆฑ๏ผๅทๅฏ๏ผ่ง่ง็ผๅญๅ ณ้ญ๏ผ23 ็ป็ป้ขๅ จ็ฎ๏ผ/ 64-frame request, cold (vision caches off, all 23 tubelets encoded) | 1.52 / 1.41 / 1.37 s |
| 64 ๅธงๅฏผ่ช่ฏทๆฑ๏ผๅ่ฏทๆฑ้ๅค๏ผ่ง่ง็ผๅญๅฝไธญ๏ผ/ same request repeated (vision caches hit) | 0.71 / 0.70 / 0.69 s |
| ๅฏผ่ช่พๅบ๏ผ6 token๏ผ/ navigation output (6 tokens) | ็บฆ 31 tok/s |
| ๆๆฌ decode / text decode | ็บฆ 34 tok/s |
| ๆจกๅๅ ่ฝฝ๏ผserver๏ผๅซ่ง่ง็ผ็ ๅจ๏ผ/ load (server, with the vision encoder) | ็บฆ 21 s |
ๅฐๆๅบฆ / perplexity๏ผppl_zh.txt๏ผ-c 512๏ผ3 ๆฎต๏ผ |
11.72 ยฑ 1.10 |
ไปฅไธๆฐๅญๅ็ฑๅ
ๅ
sh bench.sh ๅจ AX8860๏ผSDK V0.6.0๏ผไธๆตๅพ๏ผๅ
็ฝฎ่ฏทๆฑ sample/nav64_request.json๏ผ975 token๏ผ๏ผ่ดชๅฟ่งฃ็ ๏ผcache_prompt:false๏ผๅทๅฏ็จไธคไธช็ผๅญๅผๅ
ณๅ
จๅ
ณ็ไธดๆถๆๅกใไธ้ข็ญ๏ผ่ฟ่ทไธๆฌกใ้ญ็ฏๅฏผ่ชๆถ็ธ้ปไธคๆญฅ็ๅๅฒ็ป้ขๅคงๅค็ธๅ๏ผๅฝไธญ็้ฃ้จๅไธๅ่ฟ่ง่ง็ผ็ ๅจ๏ผ่ๆถไปไบๅทๅฏๅ้ๅค่ฏทๆฑไน้ดใ
All numbers come from sh bench.sh on an AX8860 (SDK V0.6.0) with the bundled 975-token request, greedy decoding and cache_prompt:false; the cold rows use a fresh server with both vision caches disabled and no warm-up, three runs each. In a closed navigation loop most history frames repeat between steps and skip the vision encoder, so a step lands between the cold and repeated numbers.
ๅฟซ้ๅผๅง / Quick start
sh run.sh -s 18700 # OpenAI ๅ
ผๅฎนๆๅก๏ผๅฏผ่ช + ๅพๅ + ๆๆฌ๏ผ/ OpenAI-compatible server
sh run.sh nav http://127.0.0.1:18700 --frames sample/frames64.npy --instruction "go to the doorway and stop in front of it"
sh run.sh -i bus.jpg "Describe this image." # ๅพๅๆ่ฟฐ / describe an image
sh run.sh "Describe the corridor." 64 # ๆๆฌ่กฅๅ
จ / text completion
sh bench.sh # ๅค็ฐไธ่กจ / reproduce the table above
้่ฆ AX8860 ๅผๅๆฟๅ SDK ่ฟ่กๅบ๏ผ/opt/lib๏ผ๏ผSDK V0.6.0๏ผHF ไธ่ฝฝ็ๆไปถๆฒกๆๆง่กๆ้๏ผ็จ sh ่ฐ็จๅณๅฏใๅฏผ่ชๅฎขๆท็ซฏ๏ผrun.sh nav๏ผ้่ฆ Python 3 ๅ NumPy๏ผๅฏ่ฃ
ๅฐๅ
ๅ
๏ผpython3 -m pip install --target pylib numpyใbench.sh ๅช็จ wget๏ผไธ้่ฆ Pythonใ
Needs an AX8860 board with the SDK runtime in /opt/lib (SDK V0.6.0); call the scripts with sh. The navigation client (run.sh nav) needs Python 3 and NumPy (python3 -m pip install --target pylib numpy installs it inside the package); bench.sh only needs wget.
ๅฎขๆท็ซฏๆๅฎๆนๅๆณ้ๅธง๏ผSlowFast ๅๆกฃใไธคๅธงไธ็ปใ็ธๅฏนๆถ้ดๆณ๏ผใๆฏๆกฃๅธฆ็ฉบ้ดๆฑ ๅ็ณปๆฐ๏ผๅๆๅก็ซฏๅ OpenAI ๆถๆฏๆ ผๅผ่ฏทๆฑ๏ผๅ็จ action_tokenizer/ ็็ ๆฌๆๅจไฝ token ่งฃๆ่ทฏ็นใๅฎขๆท็ซฏๅๆๅก็ซฏๅจๅไธๅฐๆบๅจไธๆถ๏ผ้ป่ฎค --transport auto๏ผ๏ผๅฎขๆท็ซฏๆๅๅง RGB ๅธงๅๅฐ /dev/shm/lightnav_frames๏ผ่ฏทๆฑ้็จ shm:// ๅผ็จ๏ผ่ฏทๆฑไฝๅชๆ 8 KB ๅทฆๅณ๏ผๅ
ถไปๆบๅจไธ็ๅฎขๆท็ซฏ่ชๅจๆนๅ PNG๏ผ--transport png๏ผใsample/nav64_request.json ๆฏ sample/frames64.npy ๅฏนๅบ็ๅฎๆด่ฏทๆฑ๏ผๅฏ็ดๆฅ POST ๅฐ /v1/chat/completionsใ
The client selects frames the official way (SlowFast tiers, two-frame tubelets, relative timestamps) with a per-tier spatial pooling factor, sends an OpenAI message request and decodes the action tokens with the codebooks in action_tokenizer/. When client and server share a host (default --transport auto) the client writes raw RGB frames to /dev/shm/lightnav_frames and references them as shm://, so the request is about 8 KB; remote clients send PNG instead (--transport png). sample/nav64_request.json is the full request for sample/frames64.npy and can be posted to /v1/chat/completions as is.
ๆไปถ / Files
| ๆไปถ / File | ่ฏดๆ / Description |
|---|---|
lightnav-0-q8_0.gguf |
่ฏญ่จๆจกๅๆ้๏ผQ8_0 GGUF๏ผๅ ่ฝฝๆถ่ฝฌๆ NPU ็ 8-bit ๆ้๏ผW8A16๏ผ๏ผ4.0 GB / language-model weights, converted to 8-bit NPU weights (W8A16) at load |
LightNav-0-MMPROJ-BF16.gguf |
่ง่ง้จๅ็ๅพ็ปๆๅ่พๅ
ฅๅฎไน๏ผ0.8 GB๏ผ่ง่ง่ฎก็ฎ็ฑ kernels/vit_u16.axmodel ๅฎๆ๏ผ/ vision graph and input definitions; the tower runs in kernels/vit_u16.axmodel |
kernels/ |
3 ไธช 4 ๆ ธ axmodel๏ผ่ง่ง็ผ็ ๅจ๏ผpulsar2 ็ผ่ฏ๏ผๅซ deepstack 5/11/17๏ผใprefillใdecode๏ผ่พๅบๅคดๅจ decode ๅ
๏ผๅ manifest.json / three 4-core axmodels: vision encoder (pulsar2, with deepstack), prefill, decode with the output head; plus manifest.json |
kernels_ppl/ |
ๆตๅฐๆๅบฆ็จ็ prefill๏ผ่พๅบๆฏไธชไฝ็ฝฎ็ logits๏ผๅ decode / prefill with per-position logits and decode, for perplexity |
bin/ |
llama-serverใllama-completionใllama-mtmd-cliใllama-cliใllama-perplexityใllama-bench |
nav_client/ใaction_tokenizer/ |
ๅฏผ่ชๅฎขๆท็ซฏๅ RVQ ็ ๆฌ / navigation client and RVQ codebooks |
run.shใchat_template.jinja |
่ฟ่ก่ๆฌๅๅฏน่ฏๆจกๆฟ / run script and chat template |
bench.shใsample/ |
ๆง่ฝๅค็ฐ่ๆฌๅๅบๅฎ่พๅ ฅ๏ผ64 ๅธง็ป้ขๅๅฏนๅบ่ฏทๆฑ๏ผ/ benchmark script and fixed inputs (64 frames and the matching request) |
bus.jpgใppl_zh.txt |
ๅพๅๆ่ฟฐ็คบไพๅพใๅฐๆๅบฆๆต่ฏๆๆฌ / example image, perplexity text |
BIN_COMMITใSHA256SUMS |
็จๅบๅฏนๅบ็ llama.cpp ๆไบคใๅ จๅ ๆ ก้ชๅ / llama.cpp commit of the programs, checksums |
ๆญฃ็กฎๆง / Correctness
- ๅฏผ่ช๏ผ24 ๆฎต MuJoCo ๅบๆฏใๆฏๆฎต 3 ไธชๅจไฝ token๏ผๅ ฑ 72 ไธช๏ผๅๅฎๆน GPU BF16 ๆจ็ไธ่ด 68/72๏ผ94.4%๏ผ๏ผๅๆ ท็ๅฏนๆฏไธ CPU ไธ BF16/Q8_0 ไธบ 69/72๏ผๅทฎ็้ฃไธชๆฏไธคไธชๅ้ๆฆ็ๅ ไน็ธๅ / navigation: 68/72 (94.4%) action tokens agree with the official GPU BF16 inference over 24 MuJoCo segments; CPU BF16/Q8_0 scores 69/72 on the same test, the miss being a near tie.
- ่ง่ง็ผ็ ๅจ๏ผ่พๅบ๏ผไธป่พๅบ + ไธๅฑ deepstack๏ผๅฏน BF16 ๅ่ cos 0.9992 / vision encoder: cosine 0.9992 against the BF16 reference over the main output and the three deepstack outputs.
- ๅฎๆน่ฏๆต้๏ผVLN-CE / ObjectNav / ่ท่ธช๏ผๅฐๆชๅจๆฌๅ ไธ่ท / the official benchmarks (VLN-CE / ObjectNav / tracking) have not been run on this package yet.
่ฏดๆ / Notes
- ่ฟ่กๆถๅ ็จๅ
จ้จ 4 ไธช NPU ๆ ธ๏ผๆๅก็ซฏๅบๅฎ
-np 1/ takes all 4 NPU cores; the server runs with-np 1. - ่ง่ง็ผ็ ๅจๅบๅฎๆ 448ร256 ็ไธคๅธงไธ็ป่ฎก็ฎ๏ผๅ ถไปๅฐบๅฏธ็ๅพๅ ็ผฉๆพๅฐ 448ร256๏ผๅๅผ ๅพๅคๅถๆไธคๅธง / the vision encoder works on two-frame 448ร256 tubelets; other sizes are resized to 448ร256 and a single image is duplicated into a pair.
-b/-ub็จๅคงๅผ๏ผ่ๆฌ้ๆฏ 1024๏ผ๏ผ่ฎฉๆดๆก prompt ไธๆฌกไธๅ๏ผ้ป่ฎคไธไธๆ 9216๏ผๅฏ็จCTX=<n>ๆน / keep-b/-ublarge (1024 in the scripts) so the whole prompt goes in one batch; default context 9216, override withCTX=<n>.--mmproj-linear-pos๏ผrun.shๅทฒๅธฆ๏ผ๏ผๅฎๆนๆจ็ๅฏนๅพๅ token ็จ้กบๅบไฝ็ฝฎ่ไธๆฏ mRoPE๏ผ้่ฆ่ฟไธชๅผๅ ณๆไธ่ด /--mmproj-linear-pos(already inrun.sh): the official inference gives image tokens sequential positions instead of mRoPE.- ่ฏทๆฑ้ๆฏๅผ ๅพๅฏๅธฆ
"mergeable": true๏ผไธคๅธงๅๆไธ็ป๏ผๅ"pool_spatial": 1|2|4๏ผ่ง่ง็ผ็ ๅ็็ฉบ้ดๅนณๅๆฑ ๅ๏ผ๏ผๅฎขๆท็ซฏไผ่ชๅจๅกซ / each image in a request can carry"mergeable": true(two frames form one tubelet) and"pool_spatial": 1|2|4(spatial average pooling after the vision encoder); the client fills them in.
ๆบ็ / Source
https://github.com/ZHEQIUSHUI/llama.cpp ๏ผๆๅปบๆไบค่ง BIN_COMMIT / build commit in BIN_COMMIT๏ผ
ๅๆจกๅ / original model: LightOriginsHQ/LightNav-0๏ผApache-2.0๏ผ
- Downloads last month
- 224
8-bit
16-bit