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/-ub at 256 (the prefill kernel is a fixed 256-row graph); default context 9216, override with CTX=<n>.
  • --mmproj-linear-pos๏ผˆrun.sh ๅทฒๅธฆ๏ผ‰๏ผšๅฎ˜ๆ–นๆŽจ็†ๅฏนๅ›พๅƒ token ็”จ้กบๅบไฝ็ฝฎ่€Œไธๆ˜ฏ mRoPE๏ผŒ้œ€่ฆ่ฟ™ไธชๅผ€ๅ…ณๆ‰ไธ€่‡ด / --mmproj-linear-pos (already in run.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
-
GGUF
Model size
4B params
Architecture
qwen3vl
Hardware compatibility
Log In to add your hardware

4-bit

16-bit

Video Preview
loading

Model tree for AXERA-TECH/LightNav-0-AX8860-llama.cpp

Quantized
(2)
this model