mlboydaisuke commited on
Commit
1a9f00c
·
verified ·
1 Parent(s): 2ac54fd

Add measured Galaxy S26 NPU/GPU section

Browse files

Numbers from the S26 classic sweep. Primary logs:
litertlm-convert/community_accel_work/s2_npu_sweep/results.jsonl (on-device
JIT) and portal_work/bench_all.txt + bench_redo.txt (the 2026-08-23 AOT
sweep); every row states which of the two produced it. Rows carry device,
SoC, runtime, N and thermal state, and join to this repo by exact .tflite
file name. Rows taken outside the sweep's thermal window are not reported.

Files changed (1) hide show
  1. README.md +24 -0
README.md CHANGED
@@ -95,6 +95,30 @@ Measured on a **Pixel 8a** (Tensor G3, Android 16) with the standard TFLite [`be
95
 
96
  **Any on-device figure recorded when this model shipped came from a different runtime.** It was taken through LiteRT's own `CompiledModel` accelerator (logcat reports it as `LITERT_CL`), which is the path the Kotlin sample app and the LiteRT API use, and it appears elsewhere on this card. The rows above are the classic TFLite OpenCL delegate, measured with a tool anyone can download and re-run. The two are not comparable, so read the rows above as a reproducible floor rather than as this model's speed on LiteRT.
97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
98
  ## License
99
 
100
  [BSD-3-Clause](https://github.com/pytorch/examples/blob/main/LICENSE). Upstream:
 
95
 
96
  **Any on-device figure recorded when this model shipped came from a different runtime.** It was taken through LiteRT's own `CompiledModel` accelerator (logcat reports it as `LITERT_CL`), which is the path the Kotlin sample app and the LiteRT API use, and it appears elsewhere on this card. The rows above are the classic TFLite OpenCL delegate, measured with a tool anyone can download and re-run. The two are not comparable, so read the rows above as a reproducible floor rather than as this model's speed on LiteRT.
97
 
98
+ ## Snapdragon NPU (Hexagon)
99
+
100
+ - `style_candy_fp16.tflite` — the NPU is **1.87x faster** than the GPU (7.41 ms against 13.88 ms) and loads 5.85x faster (104 ms against 609 ms).
101
+ - `style_mosaic_fp16.tflite` — the NPU is **1.87x faster** than the GPU (7.41 ms against 13.85 ms) and loads 5.78x faster (106 ms against 610 ms).
102
+ - `style_rain_princess_fp16.tflite` — the NPU is **1.85x faster** than the GPU (7.48 ms against 13.85 ms) and loads 5.76x faster (105 ms against 603 ms).
103
+ - `style_udnie_fp16.tflite` — the NPU is **1.86x faster** than the GPU (7.42 ms against 13.76 ms) and loads 5.78x faster (107 ms against 618 ms).
104
+
105
+ | file | backend | compiled | inference (median / min) | load |
106
+ |---|---|---|---:|---:|
107
+ | `style_candy_fp16.tflite` | NPU (Hexagon v81) | on-device JIT | 7.41 ms / 7.35 ms | 104 ms |
108
+ | `style_candy_fp16.tflite` | GPU (Adreno) | — | 13.88 ms / 13.33 ms | 609 ms |
109
+ | `style_mosaic_fp16.tflite` | NPU (Hexagon v81) | on-device JIT | 7.41 ms / 7.35 ms | 106 ms |
110
+ | `style_mosaic_fp16.tflite` | GPU (Adreno) | — | 13.85 ms / 13.52 ms | 610 ms |
111
+ | `style_rain_princess_fp16.tflite` | NPU (Hexagon v81) | on-device JIT | 7.48 ms / 7.35 ms | 105 ms |
112
+ | `style_rain_princess_fp16.tflite` | GPU (Adreno) | — | 13.85 ms / 13.48 ms | 603 ms |
113
+ | `style_udnie_fp16.tflite` | NPU (Hexagon v81) | on-device JIT | 7.42 ms / 7.33 ms | 107 ms |
114
+ | `style_udnie_fp16.tflite` | GPU (Adreno) | — | 13.76 ms / 13.36 ms | 618 ms |
115
+
116
+ Measured on a **Samsung Galaxy S26** (Snapdragon 8 Elite Gen 5 / SM8850, Hexagon v81, Android 16) with LiteRT `CompiledModel` 2.2.0, one accelerator per process, 5 warm-up runs then N=50 timed runs, median reported. Every run held thermal status `NONE` throughout. Headroom 0.68–0.70, where 1.0 is the throttling threshold.
117
+
118
+ **The NPU rows ran the published file unchanged.** LiteRT compiled it for the Hexagon on the device at first load. Those first compiles took 2.8 s to 2.9 s here. The `load` column above is the cached load every later run pays. Recipe and the runtime libraries it needs: [NPU guide](https://github.com/john-rocky/hf-to-litertlm/blob/main/docs/android-npu.md).
119
+
120
+ GPU wiring: [GPU guide](https://github.com/john-rocky/hf-to-litertlm/blob/main/docs/android-gpu.md).
121
+
122
  ## License
123
 
124
  [BSD-3-Clause](https://github.com/pytorch/examples/blob/main/LICENSE). Upstream: