ggml-hexagon 在 Hexagon v73 (QCM6690) 上: 无论提示是什么, NPU 输出都是字节相同 - 无噪音损坏, 没有崩溃, `graph splits = 3`
Describe the bug On a Zebra TC501 (Qualcomm QCM6690, Hexagon v73), the llama_cpp plugin with --device npu produces output that does not depend on the input prompt at all. Two completely different prompts yield byte-identical generations. The same binary and model on --device cpu answers both correctly. There is no crash, no error, and no fallback warning: the model loads, all layers are offloaded to HTP0, graph splits = 3, throughput is normal. The results are simply invalid. This is distinct from the existing crash reports (#1170 on V68, #1390 on X Elite) — nothing fails here, the output is silently wrong. ## To Reproduce ```bash # geniex-bench v0.6.1, android-arm64 adb push bin lib /data/local/tmp/gx061/ adb shell cp /data/local/tmp/gx061/lib/llama_cpp/libggml-htp-v73.so /data/local/tmp/gx061/lib/ printf 'What is the capital of France?' > neutral.txt # 30 bytes printf 'Quelle est la capitale de la France ?' > other.txt # different prompt, different length adb push neutral.txt other.txt gemma-3-1b-Q4_0.gguf /data/local/tmp/ run() { # $1 = device, $2 = prompt file adb shell "cd /data/local/tmp && \
LD_LIBRARY_PATH=/data/local/tmp/gx061/lib:/data/local/tmp/gx061/lib/llama_cpp
ADSP_LIBRARY_PATH=/data/local/tmp/gx061/lib
/data/local/tmp/gx061/bin/geniex-bench --plugin llama_cpp --device $1
-m gemma-3-1b-Q4_0.gguf --prompt-file $2 --accuracy -n 30" | grep '^[gen ' } run npu neutral.txt > npu_a.txt ; run npu other.txt > npu_b.txt ; diff npu_a.txt npu_b.txt run cpu neutral.txt > cpu_a.txt ; run cpu other.txt > cpu_b.txt ; diff cpu_a.txt cpu_b.txt } ## Expected behavior --device npu answers the prompt, and different prompts give different outputs — as --device cpu does. ## Actual behavior ** --device npu** — the two prompts produce identical bytes: $ diff npu_a.txt npu_b.txt # no output $ sha256sum npu_a.txt npu_b.txt 2352d6398a4142043c79f4ac99e3d3c5b7887d5c67a79e907e0f69f64fddecc1 npu_a.txt 2352d6398a4142043c79f4ac99e3d3c5b7887d5c67a79e907e0f69f64fddecc1 npu_b.txt and the content itself is random tokens across unrelated scripts: [gen ] ც千萬ङ् đối dibuka违法 afford eigenvalue альбо LHຍ -லிக்கDimsbewer menambahकडील дослідজिStudioProjectsühm姓ствииতই dessasまず ஆகும்ให้руп αποκ导师 vertebrateAwayмя razón mujer kickedőség4 हल्की equalizer प्लानदमbs7тил टीकेüte here [ok ] cell plugin=llama_cpp device=npu(id=HTP0) ngl=-1 ttft=136.0ms prefill=119.1tps decode=14.8tps gen=50 tok ** --device cpu** — same two prompts, correct and distinct answers: $ cat cpu_a.txt [gen ] The capital of France is Paris. $ cat cpu_b.txt [gen ] La capitale de la France est Paris. $ sha256sum cpu_a.txt cpu_b.txt 3765449a6db65bfc0f7c48c8e162b57ee23515c5341bf94c943c6bd67f5a6e25 cpu_a.txt e5c3ae5c5e83465cb8af55d43bf5f0ba3e0d7d7ccf5d460ec41b99cf7c8e24a5 cpu_b.txt The CPU run is the control: it proves the harness does feed the prompt through, and that only the NPU path discards …
内容来源: qualcomm/GenieX