google-ai-edge/LiteRT
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
LiteRT is Google's runtime engine for running machine learning and generative AI models directly on devices like phones, laptops, and IoT hardware — rather than sending data to a cloud server. It's the successor to TensorFlow Lite, keeping its role as a trusted on-device AI runtime while adding new capabilities.
What it does:
- Runs ML models (including large language models) on-device with hardware acceleration from GPUs and NPUs (neural processing units)
- Supports multiple platforms: Android, iOS, Linux, macOS, Windows, Web browsers, and IoT devices
- Provides tools to convert models from PyTorch, TensorFlow, and JAX into formats LiteRT can run
Key features (V2):
- Compiled Model API — simplifies development with automatic accelerator selection (no manual setup), true asynchronous execution, and efficient memory handling
- Unified NPU acceleration — one consistent API to access NPUs from different chipset makers (Qualcomm, MediaTek, Intel, Google Tensor, etc.)
- Faster GPU acceleration — via a technology called ML Drift, which reduces latency across different GPU buffer types
- Generative AI support — deploy LLMs on-device via the companion LiteRT-LM library
- Web inference — run models securely in browsers using WebGPU and WASM via LiteRT.js
- C++ tensor API — low-level control over memory and graph execution for performance-critical work
Related tools in the ecosystem:
- LiteRT Torch Converter — converts PyTorch models to LiteRT format
- AI-Edge Quantizer — compresses models to run faster and use less memory
- LiteRT CLI — command-line toolkit for AI coding agents
- XNNPACK — optimized CPU acceleration library
Release schedule: Nightly builds are available, with stable releases every 6–8 weeks.
Building from source: Linux and Android builds are done via Docker (run build_with_docker.sh in the docker_build/ directory).
Migration: Users of TensorFlow Lite or LiteRT V1.x can follow a migration guide to upgrade to V2.x. The README explicitly directs new code to use the Compiled Model API rather than the older TensorFlow Lite Interpreter API.
License: Apache-2.0 (open source).
Getting involved: Contributions are welcome via GitHub issues, discussions, and the Hugging Face LiteRT Community page for sharing models.
Related
- Project
- Project
- Project
- Project
- Project