Everything K-culture — comebacks to K-beauty, straight to your inboxGet it in your inbox

METAL MEDIA

google-ai-edge/LiteRT

3,268C++Apache-2.0

Google's on-device AI runtime, the successor to TensorFlow Lite

LiteRT is Google's on-device machine learning runtime, formerly known as TensorFlow Lite. It lets phones, laptops and browsers run everything from image classification to large language models locally, tapping CPU, GPU and NPU (dedicated AI chip) acceleration. Models built in PyTorch, TensorFlow or Jax can be converted and optimized, then deployed via C++, Kotlin or JavaScript APIs.

What it does

  1. As the successor to TensorFlow Lite, LiteRT introduces a new Compiled Model API that automatically picks the right accelerator (GPU/NPU) and supports true asynchronous execution, replacing the old interpreter-based approach.
  2. LiteRT-LM enables running large language models directly on-device, while LiteRT.js brings secure client-side inference to web browsers via WebGPU and WASM.
  3. It targets a wide range of platforms including Android, iOS, Linux, macOS, Windows, Web and IoT, offering a single API to access NPUs from vendors like Broadcom, Qualcomm, MediaTek and Intel.
  4. The pipeline converts PyTorch models with LiteRT Torch Converter, compresses them via the AI-Edge Quantizer, and deploys them in .tflite or .litertlm formats.
  5. Official guidance directs developers to use the new Compiled Model API instead of the legacy tflite::Interpreter, noting that classic TensorFlow Lite code is now in maintenance mode receiving only security and stability updates.

Why it matters

This matters for developers who need to run AI features like speech recognition, image classification or chatbots quickly and privately on devices without relying on the cloud. Unifying access to NPUs from multiple chip vendors under one API also significantly reduces development complexity.

Terms in this repo

  • on-device · Running computation locally on a device like a phone or PC rather than on a remote server
  • NPU · Neural Processing Unit, a chip dedicated to accelerating neural network computations
  • Compiled Model API · LiteRT's new execution interface that automates accelerator selection and asynchronous execution
  • LLM · Large Language Model, the large-scale AI models used in chatbots and similar systems
  • WASM · WebAssembly, a technology that lets browsers run code at near-native speed

Repository description (English)

LiteRT, successor to TensorFlow Lite. is Google's On-device framework for high-performance ML & GenAI deployment on edge platforms, via efficient conversion, runtime, and optimization

Owner · google-deepmind

Open on GitHub

Trending repos

All repos →

Latest from METAL MEDIA