AI Cloud Architect

Blazing fast on-device GenAI with LiteRT-LM

GoogleAnnouncement by Tenghui Zhu, Yu-hui Chen and Ram IyengarGoogle Developers Blog

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

AI: Summary

What it is

LiteRT-LM is now ready for developers to run Gemma 4 on-device across Android, iOS and the web, with Multi-Token Prediction giving up to 2.2x decode speedup on Android GPU.

Who it is for

Mobile and web developers who want to run Gemma 4 locally in their apps instead of calling a cloud API.

Key points

  • Vendor reports 52 tokens/sec decode for Gemma 4 E2B on Android GPU (OpenCL) and 56 on iOS (Metal), without MTP.
  • MTP enabled needs two lines of configuration; the post says up to 2.2x speedup on Samsung S26 Ultra GPU.
  • Swift API for iOS and JavaScript API for web (WebGPU) are added alongside Kotlin/C++ on Android.

The same at other vendors

Timeline

Posts about LiteRT-LM, oldest first.

  1. Blog postOn-device GenAI in Chrome, Chromebook Plus, and Pixel Watch with LiteRT-LM · Google · Blog post
  2. What it explainsBring state-of-the-art agentic skills to the edge with Gemma 4 · Google · Announcement
  3. This postBlazing fast on-device GenAI with LiteRT-LM
  4. What it explainsIntroducing Support for Local AI Models in the Antigravity SDK · Google · Announcement

Go deeper