Instructions to use litert-community/LFM2.5-Encoder-350M-PII-Detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/LFM2.5-Encoder-350M-PII-Detector with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Card: add the measured Pixel 8a rows (GPU vs CPU) that the Android sweep produced
Browse files
README.md
CHANGED
|
@@ -138,6 +138,17 @@ Task-level parity against the PyTorch reference on a name + email + phone senten
|
|
| 138 |
|
| 139 |
On the iPhone 17 Pro the int8 file reproduces the desktop outputs **bit-exactly** — cosine 1.000000, max absolute difference 0.0 over the full output tensor.
|
| 140 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 141 |
## License
|
| 142 |
|
| 143 |
LFM Open License v1.0 (see `LICENSE`, unchanged from the base model). Note the license's commercial-use threshold (Section 5). This repository redistributes converted **Derivative Works** of LiquidAI/LFM2.5-Encoder-350M-PII-Detector with modification notices per Section 4; all credit for the model to [Liquid AI](https://www.liquid.ai/).
|
|
|
|
| 138 |
|
| 139 |
On the iPhone 17 Pro the int8 file reproduces the desktop outputs **bit-exactly** — cosine 1.000000, max absolute difference 0.0 over the full output tensor.
|
| 140 |
|
| 141 |
+
### Android (Pixel 8a)
|
| 142 |
+
|
| 143 |
+
Android figures use the standard TFLite [`benchmark_model`](https://ai.google.dev/edge/litert/models/measurement) on a **Pixel 8a** (Tensor G3, Android 16) — 5 warm-up runs then 20 timed runs, the signature selected explicitly with `--signature_to_run_for`, CPU at 4 threads.
|
| 144 |
+
|
| 145 |
+
| Signature | GPU (OpenCL) | CPU (XNNPACK, 4 threads) |
|
| 146 |
+
|---|---|---|
|
| 147 |
+
| `pii_128` | 342 ms | **110 ms** |
|
| 148 |
+
| `pii_512` | 1656 ms | **603 ms** |
|
| 149 |
+
|
| 150 |
+
**Use the CPU on Android.** The OpenCL delegate claims almost none of the graph — 3 of the 24 nodes in the selected signature's subgraph — and every signature lands 2.6–2.8× slower on the GPU than on the CPU. This is the opposite of the vision models in this collection, which are GPU-resident by design.
|
| 151 |
+
|
| 152 |
## License
|
| 153 |
|
| 154 |
LFM Open License v1.0 (see `LICENSE`, unchanged from the base model). Note the license's commercial-use threshold (Section 5). This repository redistributes converted **Derivative Works** of LiquidAI/LFM2.5-Encoder-350M-PII-Detector with modification notices per Section 4; all credit for the model to [Liquid AI](https://www.liquid.ai/).
|