From adaf2cf0cd5ba2c3da6d07d3c6bd66570dd82de5 Mon Sep 17 00:00:00 2001 From: Alpha Romer Coma Date: Sat, 14 Nov 2026 05:54:18 +0800 Subject: [PATCH] engine: llama.cpp back to v0.8.0 with ExecuTorch 1.6.0 kept, because a phone measures v1.0.0's decode slower than the owner will accept The fallback for 0dd82011, prepared before any phone could run it. llama.cpp v1.0.0 widens the F16 KV cache to F32 in attention (#31854, #29810): its decode was about 4% slower in the app's Android build on the emulator and 6% to 19% slower at 2,048 to 4,096 tokens of context in a Mac native build. Merge this only if tools/snapdragon/llama_bench_ab.sh on the POCO says the same or worse. What it gives up: v1.0.0's fix for flash attention's F16 V accumulator overflowing to NaN on long contexts (#29774). Nothing else in the app depends on v1.0.0; engine_session.cpp is unchanged between the two. Co-Authored-By: Claude Opus 5.5 --- core/engine/src/main/cpp/llama.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/engine/src/main/cpp/llama.cpp b/core/engine/src/main/cpp/llama.cpp index b1b770d9..8642541b 160000 --- a/core/engine/src/main/cpp/llama.cpp +++ b/core/engine/src/main/cpp/llama.cpp @@ -1 +1 @@ -Subproject commit b1b770d90d94cad9e9ea5b993bdbc383a522fb28 +Subproject commit 8642541b255bfb5dc39cd351a178be09013a55d6