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 ๅธงๅๅฒ๏ผ975 ไธช prompt token๏ผ/ one navigation request (64-frame history, 975 prompt tokens) | 1.45 s๏ผViT + prefill 0.97 s๏ผ่พๅบ 6 ไธช token / 6 output tokens๏ผ |
| decode | 60.1 tokens/s๏ผๆๆฌ / text๏ผ๏ผ52.5 tokens/s๏ผๅฏผ่ช่ฏทๆฑ / navigation request๏ผ |
| ๆจกๅๅ ่ฝฝ / load๏ผserver๏ผๅซ่ง่ง็ผ็ ๅจ / with the vision encoder๏ผ | 10 s |
ไปฅไธๆฐๅญๅ็ฑๅ
ๅ
sh bench.sh ๅจ AX8860๏ผSDK V0.6.0๏ผไธๆตๅพ๏ผ่ดชๅฟ่งฃ็ ใไธๅค็จ prompt ็ผๅญ / all numbers from sh bench.sh on an AX8860 (SDK V0.6.0), greedy, prompt cache off.
ๅฟซ้ๅผๅง / 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 ่งฃๆ่ทฏ็นใ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-style request and decodes the action tokens with the codebooks in action_tokenizer/. 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-nvfp4.gguf |
่ฏญ่จๆจกๅๆ้๏ผNVFP4๏ผ2.7 GB / language-model weights |
LightNav-0-MMPROJ-BF16.gguf |
่ง่ง็ผ็ ๅจๆ้๏ผBF16๏ผ0.8 GB / vision-encoder weights |
kernels/ |
3 ไธช 4 ๆ ธ axmodel๏ผViTใprefillใdecode๏ผ่พๅบๅคดๅนถๅ
ฅ decode๏ผๅ manifest.json / three 4-core axmodels (ViT, prefill, decode; the output head is inside decode) |
bin/ |
llama-serverใllama-completionใllama-mtmd-cliใllama-cliใllama-perplexityใllama-bench๏ผ้ๆ้พๆฅ / static๏ผ |
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 |
ๅพๅๆ่ฟฐ็คบไพๅพ / example image |
ppl_zh.txt |
ๅฐๆๅบฆๆต่ฏๆๆฌ / perplexity text |
BIN_COMMITใSHA256SUMS |
็จๅบๅฏนๅบ็ llama.cpp ๆไบคใๅ จๅ ๆ ก้ชๅ / llama.cpp commit of the programs, checksums |
ๆญฃ็กฎๆง / Correctness
- ๅฐๆๅบฆ๏ผ
ppl_zh.txt๏ผ-c 512๏ผ3 ๆฎต๏ผ๏ผๆฟไธ 13.86 / perplexity on the board: 13.86. - ๅฏผ่ช๏ผๅไธ็ป 64 ๅธง่พๅ ฅ๏ผNPU ่พๅบ็ๅจไฝ token ไธ CPU ไธ่ฟ่กๅไธไธช NVFP4 GGUF ้ไธชไธ่ด๏ผไธๅๅง BF16 ๆจกๅ็ๅทฎๅซๆฅ่ช NVFP4 ้ๅ / navigation: for the same 64-frame input the NPU's action tokens match the same NVFP4 GGUF run on the CPU token for token; differences from the original BF16 model come from the NVFP4 quantization.
- ่ง่ง็ผ็ ๅจไฟ็ BF16๏ผNVFP4 ็ๆฌ่ฏฏๅทฎ่ฟๅคง๏ผไธ้ๅๅฏผ่ช / the vision encoder stays in BF16; an NVFP4 version was too lossy for navigation.
- ็ฎๅๅช็จๅๆ็ป้ข้ช่ฏ่ฟ๏ผๅฎๆน่ฏๆต้๏ผVLN-CE / ObjectNav / ่ท่ธช๏ผๅฐๆชๅจๆฌๅ ไธ่ท / validated on synthetic frames only; 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. -b/-ubไฟๆ 256๏ผprefill kernel ๅบๅฎ 256 ่ก๏ผ๏ผ้ป่ฎคไธไธๆ 9216๏ผCTX=<n>ๅฏๆน / keep-b/-ubat 256 (the prefill kernel is a fixed 256-row graph); 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
- -
4-bit
16-bit