AI Cloud Architect

Smaller apps and faster GPU inference with LiteRT in Google Play services

GoogleHow-to by Google AI Edge Team and Android ML TeamGoogle Developers Blog

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

LiteRT in Google Play services runs custom models on the GPU about 1.4x faster than the legacy GPU delegate, using the new CompiledModel API and ML Drift.

Who it is for

Android developers who bundle LiteRT or TensorFlow Lite in their apps and want smaller APKs and faster on-device GPU inference.

Key points

  • Google says apps switching to the Play services runtime are about 8 MB smaller.
  • Requires play-services-litert 17.0.0 or later; remove the bundled litert dependency.
  • Runs on phones back to Android 7 (API 24), Wear OS 4+ and Android Automotive OS (Android 11+).
  • Legacy GPU delegate and custom delegate APIs are deprecated; NNAPI will be removed starting in 2027.

Timeline

Posts about LiteRT, oldest first.

  1. Update to an existing featureUnlocking Peak Performance on Qualcomm NPU with LiteRT · Google · Announcement
  2. New featureMediaTek NPU and LiteRT: Powering the next generation of on-device AI · Google · Announcement
  3. Generally availableLiteRT: The Universal Framework for On-Device AI · Google · Announcement
  4. Blog postBuilding real-world on-device AI with LiteRT and NPU · Google · Blog post
  5. How-toAccelerating on-device AI: A look at Arm and Google AI Edge optimization · Google · How-to
  6. New featureML Drift: Next-Gen GPU AI/ML Inference at the Edge · Google · Announcement
  7. New featureNative Model Authoring for Edge with LiteRT Tensor API · Google · Announcement
  8. This postSmaller apps and faster GPU inference with LiteRT in Google Play services