mlboydaisuke commited on
Commit
c3b8e82
·
verified ·
1 Parent(s): d5de6f2

Card: add a measured Performance table (Pixel 8a, benchmark_model GPU+CPU), naming the runtime for each row

Browse files
Files changed (1) hide show
  1. README.md +14 -0
README.md CHANGED
@@ -85,6 +85,20 @@ numerically-exact GPU re-authorings:
85
 
86
  Result: banned ops NONE, all tensors ≤4D, tflite-vs-torch corr **1.0**, device-vs-torch corr **1.0**.
87
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
  ## License
89
 
90
  [MIT](https://github.com/megvii-research/NAFNet/blob/main/LICENSE). Upstream:
 
85
 
86
  Result: banned ops NONE, all tensors ≤4D, tflite-vs-torch corr **1.0**, device-vs-torch corr **1.0**.
87
 
88
+ ## Performance
89
+
90
+ Measured on a **Pixel 8a** (Tensor G3, Android 16) with the standard TFLite [`benchmark_model`](https://ai.google.dev/edge/litert/models/measurement) tool — 10 warm-up runs then 50 timed runs, reported as the tool's mean.
91
+
92
+ | Runtime | Backend | Graph on GPU | Latency |
93
+ |---|---|---|---|
94
+ | LiteRT `CompiledModel` (`LITERT_CL`) | GPU | 2179 / 2179 | ~42 ms |
95
+ | TFLite `benchmark_model` (`TfLiteGpuDelegateV2`) | GPU (OpenCL) | 2179 / 2179 | 97.2 ms |
96
+ | TFLite `benchmark_model` | CPU (XNNPACK, 4 threads) | — | XNNPACK declined the graph |
97
+
98
+ **The two GPU rows are different runtimes, not a contradiction.** The `LITERT_CL` figure is the one recorded when this model shipped, taken through LiteRT's own `CompiledModel` accelerator — the path the Kotlin sample app and the LiteRT API use. The `TfLiteGpuDelegateV2` figure is the classic TFLite OpenCL delegate, measured with a tool anyone can download and re-run. They agree on how much of the graph the GPU takes; they disagree on speed, and the classic delegate is the slower of the two here. Read the `TfLiteGpuDelegateV2` row as a reproducible floor, not as this model's speed on LiteRT.
99
+
100
+ XNNPACK declines these fp16 graphs — it reports `failed to delegate DEPTHWISE_CONV_2D` and then fails to allocate tensors — so there is no usable CPU number. Disabling XNNPACK falls back to reference kernels, which measured about 20× slower than the GPU on models of this size and would not represent CPU inference anyone would ship.
101
+
102
  ## License
103
 
104
  [MIT](https://github.com/megvii-research/NAFNet/blob/main/LICENSE). Upstream: