Repository navigation
engine: llama.cpp back to v0.8.0 with ExecuTorch 1.6.0 kept (fallback, merge only if the POCO says so) - #3
Closed
alpharomercoma wants to merge 1 commit into
Closed
alpharomercoma wants to merge 1 commit into
alpharomercoma wants to merge 1 commit into
Conversation
…a phone measures v1.0.0's decode slower than the owner will accept The fallback for 0dd8201, 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 <noreply@anthropic.com>
Member
Author
|
Not needed: the Galaxy S24 measured v1.0.0's decode 20% to 23% slower at 1,500 to 6,000 tokens of context, so main now carries the same revert directly (a303c2b), with the measurements in its message and in docs/research/llama-cpp-v100-executorch-160.md. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The fallback for llama.cpp v1.0.0 on main. Merge it only if the POCO's decode check says v1.0.0 is too slow; otherwise close it.
What it does: main (
eaef5b18, version code 754) with only the llama.cpp submodule put back to v0.8.0 (8642541b). ExecuTorch 1.6.0 and every other change stay.engine_session.cppis identical on both pins.Why it exists: llama.cpp v1.0.0 widens the F16 KV cache to F32 inside attention (upstream #31854, #29810). Decode measured:
tools/snapdragon/llama_bench_ab.sh, six pairs);No phone was reachable overnight to measure it.
How to decide (about 15 minutes, POCO awake and unlocked):
What merging gives up: v1.0.0's fix for flash attention's F16 accumulator overflowing to NaN on long contexts (#29774).
Details:
docs/research/llama-cpp-v100-executorch-160.md.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.