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/-ub large (1024 in the scripts) so the whole prompt goes in one batch; 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
224
GGUF
Model size
4B params
Architecture
qwen3vl
Hardware compatibility
Log In to add your hardware

8-bit

16-bit

Video Preview
loading

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

Quantized
(2)
this model