Skip to content

Upgrade llama.rn to 0.13.0-rc.3 (llama.cpp b10588 -> b10829) - #901

Merged
a-ghorbani merged 2 commits into
a-ghorbani:mainfrom
dongjiang1989:update-llama.rn
Sep 10, 2026
Merged

Upgrade llama.rn to 0.13.0-rc.3 (llama.cpp b10588 -> b10829)#901
a-ghorbani merged 2 commits into
a-ghorbani:mainfrom
dongjiang1989:update-llama.rn

Conversation

@dongjiang1989

Copy link
Copy Markdown
Contributor

Description

Upgrades the vendored llama.rn native dependency from 0.13.0-rc.1 to 0.13.0-rc.3 — a llama.cpp sync of b10588 → b10829.

The TypeScript surface of llama.rn is unchanged apart from src/version.ts, so no app code moves.

What's new in rc.3 (over rc.1)

  • llama.cpp sync to b10829 (rc.1 was b10588; rc.2 brought b10603/b10645 along the way)
  • Android fix: probe HTP sessions for real device count, keep CPU out of device overrides — lets CPU paths use optimized repacked buffers
  • New model support: hy-v4, qwen4exp, spark2-5, deepseek4v
  • Android OpenCL kernel entries, mmap adjustments, Metal guard fix, Android madvise constant conversion

Known follow-up

ios/Podfile.lock SPEC CHECKSUMS for llama-rn still reflects the rc.1 hash; it needs a pod install to recompute. The current local pod install fails on a pre-existing, unrelated react-native-worklets-core resolution issue (reproduces on main before this bump), so the checksum was left for a follow-up once that is addressed.

Platform Affected

  • iOS
  • Android

Checklist

  • Necessary comments have been made.
  • Unit tests and integration tests pass locally.

…829)

Syncs the vendored llama.rn native dependency from 0.13.0-rc.1 to
0.13.0-rc.3 — a llama.cpp sync of b10588 -> b10829, plus an Android
fix that probes HTP sessions for the real device count and keeps CPU
out of device overrides so CPU paths can use optimized repacked
buffers. New model support: hy-v4, qwen4exp, spark2-5, deepseek4v.

The TypeScript surface of llama.rn is unchanged apart from
src/version.ts, so no app code moves.

Note: ios/Podfile.lock SPEC CHECKSUMS for llama-rn still reflects the
rc.1 hash; it needs a pod install to recompute once the
react-native-worklets-core resolution issue (pre-existing, unrelated
to this bump) is addressed.

Signed-off-by: dongjiang1989 <dongjiang1989@126.com>
@dongjiang1989

Copy link
Copy Markdown
Contributor Author

cc @a-ghorbani PTAL, thanks

@dongjiang1989

Copy link
Copy Markdown
Contributor Author

Thanks @a-ghorbani

@pocketpal-dev-team

pocketpal-dev-team Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

PR #901 benchmark results

Run Configuration
PR / runtime #901 / llama.rn 0.13.0-rc.3
APK E2E build 34249267876 · 6408291f9742c96009b81b792fd8ee199c067fa7
PR head 986f402af02d1875b9771d658b19157ab8b454b9; only payload-verification files differ from tested commit
Myron Δ reference v1.17.2 / llama.rn 0.13.0-rc.1
S23 / Klee Δ reference PR #713, historical baseline; includes intervening changes, not an isolated rc.1→rc.3 comparison
Workload 256 prefill tokens / 64 decode tokens / 3 repetitions / 1 sequence / 30 s between cells
Context / batch / microbatch / threads 2048 / 512 / 512 / 6
Flash attention CPU + Hexagon: on; GPU/OpenCL: off
Memory settings mmap=false; no_extra_bufts=false; K/V cache=f16
Coverage 203 planned; 182 passed; 21 not passed; Klee supports CPU only
Device Backend Tier Planned Passed Of passed: rerun Not passed
poco-myron cpu smoke 9 9 4 0
poco-myron cpu focused 20 20 14 0
poco-myron hexagon smoke 9 9 5 0
poco-myron hexagon focused 20 15 10 5
poco-myron gpu smoke 9 9 0 0
poco-myron gpu focused 20 20 0 0
samsung-s23 cpu smoke 9 9 0 0
samsung-s23 cpu focused 20 16 3 4
samsung-s23 hexagon smoke 9 9 0 0
samsung-s23 hexagon focused 20 15 3 5
samsung-s23 gpu smoke 9 9 0 0
samsung-s23 gpu focused 20 15 1 5
poco-x7-klee cpu smoke 9 9 0 0
poco-x7-klee cpu focused 20 18 3 2
Reading the tables Meaning
Prefill / Decode tok/s; higher is faster
Weights / KV / Compute / Total Allocated buffers, MiB; not process RSS
Parentheses Δ versus the stated reference, matched settings; + means increase
No measurement or no matched reference; never zero
Pass / Pass (rerun) Completed on requested backend / selected measurement from a rerun
Not passed Failures, timeouts and interruptions remain in coverage
Note Detail
Regression Myron Phi-4-mini Q4_K_M Hexagon: controlled APK rc.1 pass → rc.3 LMK → rc.1 pass; pipeline memory growth confirmed.
Timeout Myron Gemma-4-E2B Q6_K Hexagon: follow-up APK record completed after the 300 s deadline; measurements shown, still counted under not passed.
Crash S23 Phi-4-mini Q4_0 Hexagon: same native crash reproduced on rc.1 and rc.3.
poco-myron · cpu · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 541.22 (-1.1%) 77.11 (+12.5%) 678.28 24.00 491.02 1,193.30 (+0.0%)
smoke qwen3.5-0.8b Q4_K_M Pass 381.24 (+1.6%) 69.58 (+17.2%) 719.65 24.00 491.02 1,234.67 (+0.0%)
smoke qwen3.5-0.8b Q8_0 Pass 569.78 (+1.1%) 60.01 (+9.3%) 1,023.09 24.00 491.02 1,538.11 (+0.0%)
smoke gemma-3-1b Q4_0 Pass 560.84 (+2.3%) 70.07 (+10.9%) 988.24 22.00 518.75 1,528.99 (+0.0%)
smoke gemma-3-1b Q4_K_M Pass 143.99 (+0.8%) 57.29 (+23.3%) 1,068.49 22.00 518.75 1,609.24 (+0.0%)
smoke gemma-3-1b Q8_0 Pass (rerun) 608.60 (+0.9%) 54.10 (+12.5%) 1,319.54 22.00 518.75 1,860.29 (+0.0%)
smoke qwen3-1.7b Q4_0 Pass (rerun) 306.24 (+1.4%) 44.25 (+12.7%) 1,169.07 224.00 304.75 1,697.82 (+0.0%)
smoke qwen3-1.7b Q4_K_M Pass (rerun) 204.01 (+8.1%) 40.76 (+14.0%) 1,217.35 224.00 304.75 1,746.10 (+0.0%)
smoke qwen3-1.7b Q8_0 Pass (rerun) 321.10 (+20.7%) 30.78 (+10.8%) 2,059.07 224.00 304.75 2,587.82 (+0.0%)
focused qwen3.5-0.8b Q4_0 Pass 528.49 (+35.6%) 78.47 (+23.7%) 678.28 24.00 491.02 1,193.30 (+0.0%)
focused qwen3.5-0.8b Q4_K_M Pass 351.01 (+29.2%) 68.66 (+19.0%) 719.65 24.00 491.02 1,234.67 (+0.0%)
focused qwen3.5-0.8b Q6_K Pass 288.88 (+8.0%) 56.49 (+12.2%) 824.50 24.00 491.02 1,339.52 (+0.0%)
focused qwen3.5-0.8b Q8_0 Pass 405.19 (-6.5%) 49.87 (-7.3%) 1,023.09 24.00 491.02 1,538.11 (+0.0%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 365.02 (+1.3%) 70.83 (+6.6%) 766.25 24.00 142.01 932.26 (+0.0%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass 277.69 (+19.9%) 68.33 (+16.4%) 799.77 24.00 142.01 965.78 (+0.0%)
focused lfm2.5-1.2b-instruct Q6_K Pass (rerun) 217.96 (+38.6%) 50.46 (+27.0%) 1,020.97 24.00 142.01 1,186.98 (+0.0%)
focused lfm2.5-1.2b-instruct Q8_0 Pass (rerun) 498.90 (+40.8%) 48.97 (+10.0%) 1,322.25 24.00 142.01 1,488.26 (+0.0%)
focused qwen3-1.7b Q4_0 Pass (rerun) 305.85 (+45.1%) 44.14 (+13.3%) 1,169.07 224.00 304.75 1,697.82 (+0.0%)
focused qwen3-1.7b Q4_K_M Pass (rerun) 200.78 (+32.9%) 40.69 (+18.3%) 1,217.35 224.00 304.75 1,746.10 (+0.0%)
focused qwen3-1.7b Q6_K Pass (rerun) 145.49 (+28.1%) 30.92 (+23.8%) 1,589.83 224.00 304.75 2,118.58 (+0.0%)
focused qwen3-1.7b Q8_0 Pass (rerun) 313.12 (+32.2%) 30.67 (+16.6%) 2,059.07 224.00 304.75 2,587.82 (+0.0%)
focused phi-4-mini Q4_0 Pass (rerun) 132.26 (+35.3%) 21.33 (+11.0%) 2,696.38 256.00 416.76 3,369.14 (+0.0%)
focused phi-4-mini Q4_K_M Pass (rerun) 87.10 (+32.0%) 18.80 (+18.4%) 2,849.38 256.00 416.76 3,522.14 (+0.0%)
focused phi-4-mini Q6_K Pass (rerun) 63.99 (+32.1%) 13.87 (+19.4%) 3,482.38 256.00 416.76 4,155.14 (+0.0%)
focused phi-4-mini Q8_0 Pass (rerun) 131.11 (+30.4%) 14.08 (+14.1%) 4,510.28 256.00 416.76 5,183.04 (+0.0%)
focused gemma-4-e2b Q4_0 Pass (rerun) 171.92 (+51.5%) 29.42 (+33.2%) 3,522.14 12.00 579.52 4,113.66 (+0.0%)
focused gemma-4-e2b Q4_K_M Pass (rerun) 118.61 (+44.3%) 27.21 (+32.6%) 3,602.19 12.00 579.52 4,193.71 (+0.0%)
focused gemma-4-e2b Q6_K Pass (rerun) 73.38 (+8.9%) 19.14 (+17.0%) 4,017.80 12.00 579.52 4,609.32 (+0.0%)
focused gemma-4-e2b Q8_0 Pass (rerun) 104.24 (-14.6%) 16.69 (-5.9%) 5,130.29 12.00 579.52 5,721.81 (+0.0%)
poco-myron · hexagon · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 1,179.45 (+0.7%) 31.01 (+30.0%) 678.29 24.00 840.29 1,542.58 (+7.0%)
smoke qwen3.5-0.8b Q4_K_M Pass 346.40 (-6.6%) 23.51 (+28.8%) 719.67 24.00 3,180.28 3,923.95 (+166.7%)
smoke qwen3.5-0.8b Q8_0 Pass 1,191.77 (+0.5%) 37.68 (+48.0%) 1,023.10 24.00 798.15 1,845.25 (+3.3%)
smoke gemma-3-1b Q4_0 Pass 3,401.84 (+6.5%) 52.89 (+23.5%) 988.23 22.00 886.21 1,896.44 (+3.5%)
smoke gemma-3-1b Q4_K_M Pass (rerun) 147.52 (+9.1%) 21.45 (-6.0%) 1,068.50 22.00 2,149.21 3,239.71 (+94.9%)
smoke gemma-3-1b Q8_0 Pass (rerun) 3,351.29 (+14.9%) 42.36 (+23.0%) 1,319.52 22.00 886.21 2,227.73 (+2.9%)
smoke qwen3-1.7b Q4_0 Pass (rerun) 2,296.22 (+3.4%) 28.28 (+1.2%) 1,169.06 224.00 737.05 2,130.11 (+7.9%)
smoke qwen3-1.7b Q4_K_M Pass (rerun) 197.91 (-1.2%) 18.66 (-1.8%) 1,217.34 224.00 3,677.05 5,118.39 (+174.9%)
smoke qwen3-1.7b Q8_0 Pass (rerun) 2,281.82 (+10.0%) 27.20 (+15.3%) 2,059.05 224.00 681.05 2,964.10 (+3.5%)
focused qwen3.5-0.8b Q4_0 Pass 1,058.72 (+4.1%) 30.95 (+31.5%) 678.29 24.00 840.29 1,542.58 (+7.0%)
focused qwen3.5-0.8b Q4_K_M Pass 317.67 (+5.8%) 22.94 (+36.4%) 719.67 24.00 3,180.28 3,923.95 (+166.7%)
focused qwen3.5-0.8b Q6_K Pass 330.33 (+3.2%) 24.79 (+20.1%) 824.50 24.00 2,200.28 3,048.78 (+93.4%)
focused qwen3.5-0.8b Q8_0 Pass 1,055.17 (-1.2%) 36.72 (+62.5%) 1,023.10 24.00 798.15 1,845.25 (+3.3%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 3,039.15 (+2.5%) 34.94 (+4.9%) 766.25 24.00 632.34 1,422.59 (+12.2%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass (rerun) 292.50 (+20.5%) 30.12 (+8.7%) 799.75 24.00 3,226.58 4,050.33 (+230.5%)
focused lfm2.5-1.2b-instruct Q6_K Pass (rerun) 209.96 (+18.8%) 26.37 (+13.0%) 1,020.95 24.00 3,226.58 4,271.53 (+195.2%)
focused lfm2.5-1.2b-instruct Q8_0 Pass (rerun) 3,279.41 (+3.6%) 33.23 (+16.1%) 1,322.25 24.00 568.34 1,914.59 (+4.9%)
focused qwen3-1.7b Q4_0 Pass (rerun) 2,304.14 (+8.3%) 27.72 (-1.9%) 1,169.06 224.00 737.05 2,130.11 (+7.9%)
focused qwen3-1.7b Q4_K_M Pass (rerun) 203.90 (+13.5%) 18.47 (-0.3%) 1,217.34 224.00 3,677.05 5,118.39 (+174.9%)
focused qwen3-1.7b Q6_K Pass (rerun) 147.43 (+21.0%) 16.12 (+1.4%) 1,589.82 224.00 3,677.05 5,490.87 (+145.7%)
focused qwen3-1.7b Q8_0 Pass (rerun) 2,216.17 (+12.2%) 26.34 (+12.4%) 2,059.05 224.00 681.05 2,964.10 (+3.5%)
focused phi-4-mini Q4_0 Pass (rerun) 1,321.26 (+19.0%) 16.98 (+7.6%) 2,696.39 256.00 987.05 3,939.44 (+5.7%)
focused phi-4-mini Q4_K_M LMK
focused phi-4-mini Q6_K LMK
focused phi-4-mini Q8_0 Pass (rerun) 1,218.44 (+5.6%) 13.46 (+7.9%) 4,510.28 256.00 921.05 5,687.33 (+2.6%)
focused gemma-4-e2b Q4_0 Pass (rerun) 566.12 (+18.4%) 14.14 (-32.6%) 3,522.15 12.00 1,955.34 5,489.49 (+21.4%)
focused gemma-4-e2b Q4_K_M LMK
focused gemma-4-e2b Q6_K Timeout; late record 51.55 (—) 3.35 (—) 4,017.81 12.00 3,455.84 7,485.65 (—)
focused gemma-4-e2b Q8_0 LMK
poco-myron · gpu · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 1,008.65 (+0.4%) 65.78 (+15.3%) 678.36 24.00 499.02 1,201.38 (+0.0%)
smoke qwen3.5-0.8b Q4_K_M Pass 999.38 (+0.3%) 62.57 (+5.9%) 719.73 24.00 499.02 1,242.75 (+0.0%)
smoke qwen3.5-0.8b Q8_0 Pass 916.09 (-0.7%) 50.43 (-0.8%) 1,023.17 24.00 499.02 1,546.19 (+0.0%)
smoke gemma-3-1b Q4_0 Pass 1,059.95 (+1.5%) 53.66 (+2.1%) 988.33 22.00 526.76 1,537.09 (+0.0%)
smoke gemma-3-1b Q4_K_M Pass 156.70 (-83.6%) 23.43 (-51.5%) 1,068.52 22.00 551.51 1,642.03 (+1.5%)
smoke gemma-3-1b Q8_0 Pass 933.90 (+0.9%) 43.30 (-0.0%) 1,319.63 22.00 526.76 1,868.39 (+0.0%)
smoke qwen3-1.7b Q4_0 Pass 603.06 (-0.2%) 41.06 (+5.2%) 1,169.17 224.00 316.76 1,709.93 (+0.0%)
smoke qwen3-1.7b Q4_K_M Pass 594.86 (+0.1%) 38.95 (+7.8%) 1,217.45 224.00 316.76 1,758.21 (+0.0%)
smoke qwen3-1.7b Q8_0 Pass 508.52 (-0.1%) 27.97 (-0.7%) 2,059.17 224.00 316.76 2,599.93 (+0.0%)
focused qwen3.5-0.8b Q4_0 Pass 1,009.72 (+7.3%) 65.54 (+22.5%) 678.36 24.00 499.02 1,201.38 (+0.0%)
focused qwen3.5-0.8b Q4_K_M Pass 996.35 (+7.0%) 62.35 (+11.4%) 719.73 24.00 499.02 1,242.75 (+0.0%)
focused qwen3.5-0.8b Q6_K Pass 986.90 (+7.3%) 55.89 (+5.6%) 824.58 24.00 499.02 1,347.60 (+0.0%)
focused qwen3.5-0.8b Q8_0 Pass 919.36 (+6.7%) 50.86 (+1.4%) 1,023.17 24.00 499.02 1,546.19 (+0.0%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 921.03 (+7.8%) 66.46 (+5.5%) 766.29 24.00 164.02 954.31 (+0.0%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass 907.60 (+7.6%) 62.15 (+5.8%) 799.81 24.00 164.02 987.83 (+0.0%)
focused lfm2.5-1.2b-instruct Q6_K Pass 925.50 (+7.0%) 51.22 (+3.8%) 1,021.01 24.00 164.02 1,209.03 (+0.0%)
focused lfm2.5-1.2b-instruct Q8_0 Pass 770.69 (+8.0%) 43.19 (-1.1%) 1,322.29 24.00 164.02 1,510.31 (+0.0%)
focused qwen3-1.7b Q4_0 Pass 601.55 (+7.2%) 40.88 (+8.3%) 1,169.17 224.00 316.76 1,709.93 (+0.0%)
focused qwen3-1.7b Q4_K_M Pass 595.16 (+7.8%) 38.91 (+10.6%) 1,217.45 224.00 316.76 1,758.21 (+0.0%)
focused qwen3-1.7b Q6_K Pass 605.68 (+7.8%) 32.66 (+6.4%) 1,589.93 224.00 316.76 2,130.69 (+0.0%)
focused qwen3-1.7b Q8_0 Pass 503.99 (+6.8%) 28.01 (-0.2%) 2,059.17 224.00 316.76 2,599.93 (+0.0%)
focused phi-4-mini Q4_0 Pass 293.34 (+7.6%) 22.48 (+6.7%) 2,696.44 256.00 422.76 3,375.20 (+0.0%)
focused phi-4-mini Q4_K_M Pass 255.89 (+6.2%) 20.50 (+6.8%) 2,849.44 256.00 422.76 3,528.20 (+0.0%)
focused phi-4-mini Q6_K Pass 283.32 (+5.9%) 17.42 (+5.6%) 3,482.44 256.00 422.76 4,161.20 (+0.0%)
focused phi-4-mini Q8_0 Pass 242.94 (+4.4%) 13.74 (-0.4%) 4,510.34 256.00 422.76 5,189.10 (+0.0%)
focused gemma-4-e2b Q4_0 Pass 394.35 (+2.8%) 27.52 (+10.6%) 3,522.29 18.00 582.03 4,122.32 (+0.0%)
focused gemma-4-e2b Q4_K_M Pass 320.01 (-10.0%) 17.70 (-25.4%) 3,602.27 18.00 597.53 4,217.80 (+0.4%)
focused gemma-4-e2b Q6_K Pass 329.05 (-9.5%) 15.86 (-24.2%) 4,017.92 18.00 596.53 4,632.45 (+0.3%)
focused gemma-4-e2b Q8_0 Pass 341.34 (+14.7%) 20.37 (+3.3%) 5,130.45 18.00 582.03 5,730.48 (+0.0%)
samsung-s23 · cpu · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 218.56 (+22.0%) 41.80 (+67.7%) 678.28 24.00 491.02 1,193.30 (+0.2%)
smoke qwen3.5-0.8b Q4_K_M Pass 158.52 (+12.9%) 36.16 (+51.1%) 719.65 24.00 491.02 1,234.67 (+0.2%)
smoke qwen3.5-0.8b Q8_0 Pass 219.48 (+16.9%) 37.56 (+58.9%) 1,023.09 24.00 491.02 1,538.11 (+0.1%)
smoke gemma-3-1b Q4_0 Pass 204.34 (+8.0%) 40.98 (+51.1%) 988.24 22.00 518.75 1,528.99 (+0.1%)
smoke gemma-3-1b Q4_K_M Pass 68.48 (+9.6%) 30.25 (+45.8%) 1,068.49 22.00 518.75 1,609.24 (+0.1%)
smoke gemma-3-1b Q8_0 Pass 196.05 (+14.2%) 31.43 (+42.1%) 1,319.54 22.00 518.75 1,860.29 (+0.1%)
smoke qwen3-1.7b Q4_0 Pass 121.00 (+16.5%) 20.51 (+19.1%) 1,169.07 224.00 304.75 1,697.82 (+0.0%)
smoke qwen3-1.7b Q4_K_M Pass 82.82 (+4.0%) 18.68 (+16.9%) 1,217.35 224.00 304.75 1,746.10 (+0.0%)
smoke qwen3-1.7b Q8_0 Pass 104.80 (-2.5%) 14.76 (+9.8%) 2,059.07 224.00 304.75 2,587.82 (+0.0%)
focused qwen3.5-0.8b Q4_0 Pass 191.60 (+7.0%) 37.29 (+49.6%) 678.28 24.00 491.02 1,193.30 (+0.2%)
focused qwen3.5-0.8b Q4_K_M Pass 150.27 (+7.1%) 33.30 (+39.1%) 719.65 24.00 491.02 1,234.67 (+0.2%)
focused qwen3.5-0.8b Q6_K Pass 139.76 (+4.5%) 29.92 (+38.6%) 824.50 24.00 491.02 1,339.52 (+0.2%)
focused qwen3.5-0.8b Q8_0 Pass 191.25 (+1.8%) 33.17 (+40.3%) 1,023.09 24.00 491.02 1,538.11 (+0.1%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 190.49 (+18.4%) 40.54 (+52.6%) 766.25 24.00 142.01 932.26 (+0.6%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass 124.59 (-0.6%) 37.36 (+43.2%) 799.77 24.00 142.01 965.78 (+0.6%)
focused lfm2.5-1.2b-instruct Q6_K Pass 88.83 (+4.3%) 21.33 (+18.8%) 1,020.97 24.00 142.01 1,186.98 (+0.5%)
focused lfm2.5-1.2b-instruct Q8_0 Pass 173.30 (+3.2%) 27.22 (+31.3%) 1,322.25 24.00 142.01 1,488.26 (+0.4%)
focused qwen3-1.7b Q4_0 Pass 103.94 (+0.0%) 18.32 (+6.4%) 1,169.07 224.00 304.75 1,697.82 (+0.0%)
focused qwen3-1.7b Q4_K_M Pass 73.20 (-8.1%) 16.69 (+4.5%) 1,217.35 224.00 304.75 1,746.10 (+0.0%)
focused qwen3-1.7b Q6_K Pass 56.84 (+9.5%) 10.95 (+5.6%) 1,589.83 224.00 304.75 2,118.58 (+0.0%)
focused qwen3-1.7b Q8_0 Pass 89.46 (-16.7%) 14.06 (+4.6%) 2,059.07 224.00 304.75 2,587.82 (+0.0%)
focused phi-4-mini Q4_0 Pass 50.66 (+9.0%) 9.06 (+3.0%) 2,696.38 256.00 416.76 3,369.14 (-0.1%)
focused phi-4-mini Q4_K_M Pass (rerun) 37.92 (-0.6%) 8.89 (+1.8%) 2,849.38 256.00 416.76 3,522.14 (-0.1%)
focused phi-4-mini Q6_K Pass (rerun) 26.86 (—) 5.61 (—) 3,482.38 256.00 416.76 4,155.14 (—)
focused phi-4-mini Q8_0 LMK
focused gemma-4-e2b Q4_0 Pass (rerun) 64.57 (—) 14.38 (—) 3,522.14 12.00 579.52 4,113.66 (—)
focused gemma-4-e2b Q4_K_M LMK
focused gemma-4-e2b Q6_K LMK
focused gemma-4-e2b Q8_0 LMK
samsung-s23 · hexagon · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 483.09 (+274.7%) 22.23 (+287.1%) 678.30 24.00 531.16 1,233.46 (+0.1%)
smoke qwen3.5-0.8b Q4_K_M Pass 159.32 (+91.4%) 15.83 (+183.4%) 719.66 24.00 529.14 1,272.80 (-0.1%)
smoke qwen3.5-0.8b Q8_0 Pass 500.78 (+287.0%) 28.55 (+397.3%) 1,023.10 24.00 495.02 1,542.12 (-2.2%)
smoke gemma-3-1b Q4_0 Pass 1,350.55 (+1492.7%) 46.37 (+83.3%) 988.24 22.00 521.77 1,532.01 (-2.9%)
smoke gemma-3-1b Q4_K_M Pass 67.90 (+10.9%) 19.66 (-5.8%) 1,068.49 22.00 562.27 1,652.76 (+2.2%)
smoke gemma-3-1b Q8_0 Pass 1,341.57 (+1170.7%) 31.55 (+39.9%) 1,319.54 22.00 521.77 1,863.31 (-2.4%)
smoke qwen3-1.7b Q4_0 Pass 1,027.86 (+324.1%) 25.56 (+25.2%) 1,169.07 224.00 354.76 1,747.83 (+0.2%)
smoke qwen3-1.7b Q4_K_M Pass 84.87 (+10.8%) 14.11 (-21.3%) 1,217.35 224.00 322.76 1,764.11 (+0.2%)
smoke qwen3-1.7b Q8_0 Pass 1,054.41 (+287.2%) 21.27 (+24.0%) 2,059.07 224.00 310.76 2,593.83 (-1.5%)
focused qwen3.5-0.8b Q4_0 Pass 481.07 (+273.1%) 22.23 (+287.2%) 678.30 24.00 531.16 1,233.46 (+0.1%)
focused qwen3.5-0.8b Q4_K_M Pass 151.63 (+82.2%) 15.33 (+174.5%) 719.66 24.00 529.14 1,272.80 (-0.1%)
focused qwen3.5-0.8b Q6_K Pass 166.84 (+95.1%) 17.05 (+213.9%) 824.50 24.00 529.14 1,377.64 (-0.1%)
focused qwen3.5-0.8b Q8_0 Pass 493.35 (+281.2%) 28.14 (+390.1%) 1,023.10 24.00 495.02 1,542.12 (-2.2%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 1,551.17 (+209.0%) 26.52 (-28.3%) 766.25 24.00 194.03 984.28 (-1.0%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass 124.42 (-0.8%) 22.58 (-24.1%) 799.77 24.00 183.96 1,007.73 (+1.0%)
focused lfm2.5-1.2b-instruct Q6_K Pass 86.44 (-6.4%) 17.65 (-7.2%) 1,020.97 24.00 183.96 1,228.93 (+0.8%)
focused lfm2.5-1.2b-instruct Q8_0 Pass 1,861.68 (+322.1%) 33.53 (+8.4%) 1,322.25 24.00 148.02 1,494.27 (-3.6%)
focused qwen3-1.7b Q4_0 Pass 1,026.17 (+323.4%) 24.73 (+21.2%) 1,169.07 224.00 354.76 1,747.83 (+0.2%)
focused qwen3-1.7b Q4_K_M Pass 78.28 (+2.2%) 13.81 (-23.0%) 1,217.35 224.00 322.76 1,764.11 (+0.2%)
focused qwen3-1.7b Q6_K Pass 57.51 (+9.7%) 9.73 (-16.2%) 1,589.83 224.00 322.76 2,136.59 (+0.2%)
focused qwen3-1.7b Q8_0 Pass 1,014.33 (+272.5%) 19.24 (+12.1%) 2,059.07 224.00 310.76 2,593.83 (-1.5%)
focused phi-4-mini Q4_0 Crash
focused phi-4-mini Q4_K_M Pass (rerun) 38.06 (—) 8.06 (—) 2,849.38 256.00 450.71 3,556.09 (—)
focused phi-4-mini Q6_K Exit (unknown cause)
focused phi-4-mini Q8_0 Load error (effective CPU) 0.00 0.00 0.00 0.00 (—)
focused gemma-4-e2b Q4_0 Pass (rerun) 245.33 (—) 14.55 (—) 3,522.14 12.00 636.01 4,170.15 (—)
focused gemma-4-e2b Q4_K_M Pass (rerun) 44.46 (—) 8.99 (—) 3,602.19 12.00 582.51 4,196.70 (—)
focused gemma-4-e2b Q6_K LMK
focused gemma-4-e2b Q8_0 LMK
samsung-s23 · gpu · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 245.80 (+286.6%) 13.91 (-33.4%) 678.37 24.00 543.01 1,245.38 (+3.8%)
smoke qwen3.5-0.8b Q4_K_M Pass 225.85 (+265.5%) 13.28 (-37.1%) 719.74 24.00 543.01 1,286.75 (+3.7%)
smoke qwen3.5-0.8b Q8_0 Pass 252.96 (+320.7%) 15.94 (-14.2%) 1,023.17 24.00 499.02 1,546.19 (+0.1%)
smoke gemma-3-1b Q4_0 Pass 116.27 (+40.0%) 28.72 (-4.9%) 988.33 22.00 526.76 1,537.09 (+0.0%)
smoke gemma-3-1b Q4_K_M Pass 58.99 (+35.6%) 11.77 (+113.1%) 1,068.52 22.00 551.51 1,642.03 (+0.0%)
smoke gemma-3-1b Q8_0 Pass 137.11 (+52.9%) 26.91 (-1.8%) 1,319.63 22.00 526.76 1,868.39 (+0.0%)
smoke qwen3-1.7b Q4_0 Pass 252.44 (+2.8%) 15.89 (+31.4%) 1,169.17 224.00 392.76 1,785.93 (+4.5%)
smoke qwen3-1.7b Q4_K_M Pass 239.42 (+29.0%) 14.40 (-0.1%) 1,217.45 224.00 392.76 1,834.21 (+4.3%)
smoke qwen3-1.7b Q8_0 Pass 270.57 (+1.8%) 16.24 (-2.6%) 2,059.17 224.00 316.76 2,599.93 (+0.0%)
focused qwen3.5-0.8b Q4_0 Pass 243.17 (+282.4%) 13.92 (-33.3%) 678.37 24.00 543.01 1,245.38 (+3.8%)
focused qwen3.5-0.8b Q4_K_M Pass 221.72 (+258.8%) 13.60 (-35.6%) 719.74 24.00 543.01 1,286.75 (+3.7%)
focused qwen3.5-0.8b Q6_K Pass 199.40 (+242.1%) 12.20 (-36.6%) 824.58 24.00 543.01 1,391.59 (+3.4%)
focused qwen3.5-0.8b Q8_0 Pass 249.66 (+315.2%) 15.42 (-17.0%) 1,023.17 24.00 499.02 1,546.19 (+0.1%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 395.38 (-15.9%) 22.80 (-41.8%) 766.29 24.00 286.01 1,076.30 (+12.8%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass 395.89 (+32.8%) 21.68 (-31.0%) 799.81 24.00 286.01 1,109.82 (+12.4%)
focused lfm2.5-1.2b-instruct Q6_K Pass 197.80 (-20.5%) 19.39 (-33.5%) 1,021.01 24.00 286.01 1,331.02 (+10.1%)
focused lfm2.5-1.2b-instruct Q8_0 Pass 435.81 (-11.1%) 29.08 (-5.5%) 1,322.29 24.00 164.02 1,510.31 (+0.0%)
focused qwen3-1.7b Q4_0 Pass 252.60 (+2.8%) 15.84 (+31.0%) 1,169.17 224.00 392.76 1,785.93 (+4.5%)
focused qwen3-1.7b Q4_K_M Pass 241.21 (+30.0%) 14.31 (-0.8%) 1,217.45 224.00 392.76 1,834.21 (+4.3%)
focused qwen3-1.7b Q6_K Pass 128.00 (-15.3%) 12.54 (+17.6%) 1,589.93 224.00 392.76 2,206.69 (+3.6%)
focused qwen3-1.7b Q8_0 Pass 273.41 (+2.8%) 16.87 (+1.2%) 2,059.17 224.00 316.76 2,599.93 (+0.0%)
focused phi-4-mini Q4_0 Pass 114.19 (-14.6%) 9.19 (-9.6%) 2,696.44 256.00 518.76 3,471.20 (+2.8%)
focused phi-4-mini Q4_K_M Pass 82.65 (—) 7.69 (—) 2,849.44 256.00 518.76 3,624.20 (—)
focused phi-4-mini Q6_K LMK
focused phi-4-mini Q8_0 LMK
focused gemma-4-e2b Q4_0 Pass (rerun) 45.48 (—) 9.90 (—) 3,522.29 18.00 644.01 4,184.30 (—)
focused gemma-4-e2b Q4_K_M LMK
focused gemma-4-e2b Q6_K LMK
focused gemma-4-e2b Q8_0 LMK
poco-x7-klee · cpu · 29 cells
Tier Model Quant Status Prefill tok/s (Δ) Decode tok/s (Δ) Weights MiB KV MiB Compute MiB Total MiB (Δ)
smoke qwen3.5-0.8b Q4_0 Pass 275.46 (+17.9%) 40.48 (+15.5%) 678.28 24.00 491.02 1,193.30 (+0.2%)
smoke qwen3.5-0.8b Q4_K_M Pass 204.59 (+18.8%) 36.96 (+15.1%) 719.65 24.00 491.02 1,234.67 (+0.2%)
smoke qwen3.5-0.8b Q8_0 Pass 275.54 (+21.4%) 36.66 (+14.0%) 1,023.09 24.00 491.02 1,538.11 (+0.1%)
smoke gemma-3-1b Q4_0 Pass 300.84 (+13.7%) 41.03 (+15.5%) 988.24 22.00 518.75 1,528.99 (+0.1%)
smoke gemma-3-1b Q4_K_M Pass 93.18 (+12.4%) 33.69 (+12.1%) 1,068.49 22.00 518.75 1,609.24 (+0.1%)
smoke gemma-3-1b Q8_0 Pass 300.61 (+21.6%) 31.38 (+9.2%) 1,319.54 22.00 518.75 1,860.29 (+0.1%)
smoke qwen3-1.7b Q4_0 Pass 179.27 (+15.1%) 23.39 (+6.0%) 1,169.07 224.00 304.75 1,697.82 (+0.0%)
smoke qwen3-1.7b Q4_K_M Pass 116.57 (+13.7%) 21.06 (+2.5%) 1,217.35 224.00 304.75 1,746.10 (+0.0%)
smoke qwen3-1.7b Q8_0 Pass 150.91 (+7.7%) 17.45 (-1.1%) 2,059.07 224.00 304.75 2,587.82 (+0.0%)
focused qwen3.5-0.8b Q4_0 Pass 272.69 (+16.7%) 39.50 (+12.7%) 678.28 24.00 491.02 1,193.30 (+0.2%)
focused qwen3.5-0.8b Q4_K_M Pass 187.65 (+9.0%) 36.12 (+12.5%) 719.65 24.00 491.02 1,234.67 (+0.2%)
focused qwen3.5-0.8b Q6_K Pass 176.41 (+13.9%) 32.20 (+11.4%) 824.50 24.00 491.02 1,339.52 (+0.2%)
focused qwen3.5-0.8b Q8_0 Pass 253.55 (+11.7%) 35.91 (+11.7%) 1,023.09 24.00 491.02 1,538.11 (+0.1%)
focused lfm2.5-1.2b-instruct Q4_0 Pass 253.33 (+16.5%) 45.15 (+18.8%) 766.25 24.00 142.01 932.26 (+0.6%)
focused lfm2.5-1.2b-instruct Q4_K_M Pass 161.12 (+17.7%) 41.07 (+19.8%) 799.77 24.00 142.01 965.78 (+0.6%)
focused lfm2.5-1.2b-instruct Q6_K Pass 102.46 (+2.7%) 22.68 (+3.0%) 1,020.97 24.00 142.01 1,186.98 (+0.5%)
focused lfm2.5-1.2b-instruct Q8_0 Pass 193.62 (+1.1%) 30.87 (+10.7%) 1,322.25 24.00 142.01 1,488.26 (+0.4%)
focused qwen3-1.7b Q4_0 Pass 147.53 (-5.3%) 22.35 (+1.3%) 1,169.07 224.00 304.75 1,697.82 (+0.0%)
focused qwen3-1.7b Q4_K_M Pass 100.89 (-1.6%) 20.87 (+1.6%) 1,217.35 224.00 304.75 1,746.10 (+0.0%)
focused qwen3-1.7b Q6_K Pass 70.87 (-1.7%) 13.43 (-2.5%) 1,589.83 224.00 304.75 2,118.58 (+0.0%)
focused qwen3-1.7b Q8_0 Pass 133.52 (-4.7%) 17.57 (-0.5%) 2,059.07 224.00 304.75 2,587.82 (+0.0%)
focused phi-4-mini Q4_0 Pass 66.42 (+0.7%) 11.16 (-3.3%) 2,696.38 256.00 416.76 3,369.14 (-0.1%)
focused phi-4-mini Q4_K_M Pass 40.29 (-1.2%) 9.43 (-3.5%) 2,849.38 256.00 416.76 3,522.14 (-0.1%)
focused phi-4-mini Q6_K Pass 30.02 (+6.6%) 6.75 (+7.1%) 3,482.38 256.00 416.76 4,155.14 (-0.0%)
focused phi-4-mini Q8_0 Framework restart; not rerun
focused gemma-4-e2b Q4_0 Pass (rerun) 97.13 (+31.2%) 13.88 (+1.0%) 3,522.14 12.00 579.52 4,113.66 (+1.5%)
focused gemma-4-e2b Q4_K_M Pass (rerun) 64.74 (+15.7%) 13.44 (+8.7%) 3,602.19 12.00 579.52 4,193.71 (+1.5%)
focused gemma-4-e2b Q6_K Pass (rerun) 45.59 (—) 9.77 (—) 4,017.80 12.00 579.52 4,609.32 (—)
focused gemma-4-e2b Q8_0 LMK

@a-ghorbani

a-ghorbani commented Sep 9, 2026

Copy link
Copy Markdown
Owner

@dongjiang1989 I hope the numbers above are clear enough. We found a memory regression when Hexagon uses multiple sessions. see

focused lfm2.5-1.2b-instruct Q4_K_M Pass (rerun) 292.50 (+20.5%) 30.12 (+8.7%) 799.75 24.00 3,226.58 4,050.33 (+230.5%)

I’ll update PocketPal to select a single HTP session to avoid it (issue #904). Hopefully after that we can merge this.

@dongjiang1989

dongjiang1989 commented Sep 10, 2026

Copy link
Copy Markdown
Contributor Author

I’ll update PocketPal to select a single HTP session to avoid it (issue #904). Hopefully after that we can merge this.

Thanks @a-ghorbani When will the new release be published?

@a-ghorbani a-ghorbani left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - llama.cpp changes introduced a HTP memory regression on devices with multiple sessions. #907 fixes this by selecting only a single HTP session.

@a-ghorbani
a-ghorbani merged commit ced4fad into a-ghorbani:main Sep 10, 2026
4 checks passed
@dongjiang1989
dongjiang1989 deleted the update-llama.rn branch September 10, 2026 09:38
@a-ghorbani

Copy link
Copy Markdown
Owner

I’ll update PocketPal to select a single HTP session to avoid it (issue #904). Hopefully after that we can merge this.

Thanks @a-ghorbani When will the new release be published?

i am cutting a release now, if everything passes, I guess we'll have it published in the stores in 1–2 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants