litert-google-tensor

Installation
SKILL.md

LiteRT on Google Tensor: compile, benchmark, package for apps

Three scriptable workflows for Pixel TPUs:

  1. Compile a plain .tflite into a Google Tensor AOT-compiled .tflite with the public LiteRT Python API (ai_edge_litert.aot), locally on Linux x86_64 or on a Google Colab VM (--colab, via google-colab-cli) when the user is on macOS/Windows or lacks a Linux box.
  2. Benchmark a compiled model on a connected Pixel with LiteRT's benchmark_model, NPU-only, optionally next to a CPU baseline, including TPU tile time (pure TPU compute time) and TPU energy per inference.
  3. Package compiled builds for an Android (Gradle) app as a Google Play AI pack with the Google Tensor NPU runtime and a Kotlin loader (or, for an app that already ships Google Tensor builds, only the files to replace), apply the plan to the project when the user agrees, and check the app on a Pixel.
Installs
90
Repository
google/skills
GitHub Stars
24.0K
First Seen
3 days ago