[![](http://developers.google.com/static/edge/litert/images/landing/logo-litert.png)](http://developers.google.com/edge/litert/overview.md.txt)

### [LiteRT is Google's high-performance, cross-platform inference runtime for deploying models on edge devices.](http://developers.google.com/edge/litert/overview.md.txt)

Efficient conversion, runtime, and optimization for on-device AI. [Get Started with LiteRT](http://developers.google.com/edge/litert/overview.md.txt) [Deploy LLMs with LiteRT-LM](http://developers.google.com/edge/litert-lm.md.txt) [Build from LiteRT GitHub](https://github.com/google-ai-edge/LiteRT) [Download LiteRT models from HF](https://huggingface.co/litert-community)

## Build once, run everywhere

[![](http://developers.google.com/static/edge/litert/images/landing/crossplatform.svg)](http://developers.google.com/edge/litert/android.md.txt)

### [Cross-platform deployment](http://developers.google.com/edge/litert/android.md.txt)

Deploy across mobile, web, desktop, and IoT. [![](http://developers.google.com/static/edge/litert/images/landing/genai.svg)](http://developers.google.com/edge/litert-lm.md.txt)

### [Generative AI](http://developers.google.com/edge/litert-lm.md.txt)

Engineered with superior support for LLMs, Diffusion, and more generative models. [![](http://developers.google.com/static/edge/litert/images/landing/hardware.svg)](http://developers.google.com/edge/litert/next/npu.md.txt)

### [Hardware acceleration](http://developers.google.com/edge/litert/next/npu.md.txt)

CPU, GPU, and NPU hardware acceleration with SOTA performance across leading edge platforms. [![](http://developers.google.com/static/edge/litert/images/landing/multiframework.svg)](http://developers.google.com/edge/litert/conversion/overview.md.txt)

### [Multi-framework conversion](http://developers.google.com/edge/litert/conversion/overview.md.txt)

Direct export and quantization from PyTorch, TensorFlow, and JAX into .tflite format.

## Built on the battle-tested foundation of TensorFlow Lite

### Trusted by prominent Google apps

250K+ applications, billions of global users

[Migrate your TensorFlow Lite app](https://developers.google.com/edge/litert/migration.md.txt)
![YouTube video streaming application](https://developers.google.com/static/edge/litert/images/landing/logo-yt.svg) ![Google Photos media gallery application](https://developers.google.com/static/edge/litert/images/landing/logo-photos.svg) ![Gmail messaging and email service](https://developers.google.com/static/edge/litert/images/landing/logo-gmail.svg) ![Google Maps navigation and places](https://developers.google.com/static/edge/litert/images/landing/logo-maps.svg) ![Google Chrome web browsing application](https://developers.google.com/static/edge/litert/images/landing/logo-chrome.svg) ![Google Meet video conferencing service](https://developers.google.com/static/edge/litert/images/landing/logo-meet.svg) ![Google ML Kit on-device machine learning SDK](https://developers.google.com/static/edge/litert/images/landing/logo-mlkit.svg) ![Google AI Edge Gallery application](https://developers.google.com/static/edge/litert/images/landing/logo-gallery.svg)

## What you can build with LiteRT

[](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/qualcomm/gemma4)

### [Local GenAI \& assistants](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/qualcomm/gemma4)

Run open-weight LLMs like Gemma on-device with LiteRT-LM, without a server round trip. [View Gemma 4 sample app →](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/qualcomm/gemma4) [](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/image_segmentation)

### [Real-time image segmentation](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/image_segmentation)

Run real-time, multi-class image segmentation from the camera on CPU, GPU, or NPU. [View segmentation demo →](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/image_segmentation) [](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/speech_recognition)

### [Live speech recognition](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/speech_recognition)

Transcribe speech on-device with open-weight ASR models like Whisper, Moonshine, and Parakeet on CPU, GPU, or NPU. [View speech sample app →](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/speech_recognition) [](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/qualcomm/fast_vlm)

### [On-device vision-language](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/qualcomm/fast_vlm)

Run the FastVLM vision-language model on-device with NPU acceleration on Qualcomm devices. [View FastVLM demo →](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/qualcomm/fast_vlm) [](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/text_to_speech_streaming)

### [Streaming text-to-speech](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/text_to_speech_streaming)

Synthesize natural speech fully offline, with playback starting after the first sentence while the rest streams in. [View TTS sample app →](https://github.com/google-ai-edge/litert-samples/tree/main/samples/litert/text_to_speech_streaming) [](http://developers.google.com/edge/litert/microcontrollers/overview.md.txt)

### [IoT \& edge robotics](http://developers.google.com/edge/litert/microcontrollers/overview.md.txt)

Deploy lightweight models, such as anomaly detection and sensor fusion, to microcontrollers and embedded devices. [Explore microcontroller docs →](http://developers.google.com/edge/litert/microcontrollers/overview.md.txt)

## Deploy with LiteRT

Streamline your AI workflow from training to on-device deployment. 1. Convert 2. Quantize 3. Deploy \& Accelerate [![](http://developers.google.com/static/edge/litert/images/landing/compare/workflow-convert.svg)](http://developers.google.com/edge/litert/conversion/overview.md.txt)

### [Convert](http://developers.google.com/edge/litert/conversion/overview.md.txt)

Convert PyTorch, JAX, or TensorFlow models to .tflite, or start from pre-trained .tflite models. [Explore conversion](http://developers.google.com/edge/litert/conversion/overview.md.txt) [![](http://developers.google.com/static/edge/litert/images/landing/compare/workflow-optimize.svg)](http://developers.google.com/edge/litert/quantization/model_optimization.md.txt)

### [Quantize](http://developers.google.com/edge/litert/quantization/model_optimization.md.txt)

Use the LiteRT quantizer to quantize your models post-training. [Explore optimization](http://developers.google.com/edge/litert/quantization/model_optimization.md.txt) [![](http://developers.google.com/static/edge/litert/images/landing/compare/workflow-deploy.svg)](http://developers.google.com/edge/litert/overview.md.txt#integrate-model)

### [Run](http://developers.google.com/edge/litert/overview.md.txt#integrate-model)

Deploy your model with LiteRT and pick the optimal accelerator for your app. [Run your first inference](http://developers.google.com/edge/litert/overview.md.txt#integrate-model)

## Choose LiteRT Runtime or LiteRT-LM

Use LiteRT Runtime to run models with CPU, GPU, and NPU acceleration. For LLMs, use LiteRT-LM, which builds on LiteRT to manage conversations, the KV cache, and streaming output. [![](http://developers.google.com/static/edge/litert/images/landing/hardware.svg)](http://developers.google.com/edge/litert/overview.md.txt)

### [LiteRT Runtime for ML](http://developers.google.com/edge/litert/overview.md.txt)

High-performance runtime for ML workloads. Tailored for hardware-accelerated execution across CPU, GPU, and NPU backends with advanced features such as zero-copy buffer interoperability and async execution. [Explore LiteRT](http://developers.google.com/edge/litert/overview.md.txt) [Supported Silicon →](http://developers.google.com/edge/litert/next/npu.md.txt) [![](http://developers.google.com/static/edge/litert/images/landing/genai.svg)](http://developers.google.com/edge/litert-lm.md.txt)

### [LiteRT-LM for LLM](http://developers.google.com/edge/litert-lm.md.txt)

LiteRT-LM is an orchestration layer built on the LiteRT Runtime that powers the LLM execution loop---seamlessly integrating hardware-accelerated inference, multimodal inputs, constrained decoding, and agentic tool calling. [Explore LiteRT-LM](http://developers.google.com/edge/litert-lm.md.txt) [Gemma 4 Guide →](http://developers.google.com/edge/litert-lm/models/gemma-4.md.txt) Install LiteRT Packages LiteRT Runtime LiteRT-LM

### Python

```bash
# Platform: Linux, macOS, Windows (Python 3.9+)
pip install ai-edge-litert
```

### Android (Kotlin)

```kotlin
// Platform: Android (API 24+) | In app/build.gradle.kts
implementation("com.google.ai.edge.litert:litert:2.3.0")
// Optional: include for GPU acceleration
implementation("com.google.ai.edge.litert:litert-gpu:2.3.0")
```

### iOS (Swift)

```swift
// Platform: iOS 15+, macOS 12+
// Swift Package Manager support is in progress.
// For a production iOS build today, see the LiteRT-LM tab.
```

### Web (JS)

```bash
# Platform: Web (Browsers & Node.js)
npm install @litertjs/core
```

### C++

```cmake
# Platform: Linux, Android NDK, macOS, Windows
# In CMakeLists.txt (link LiteRT C++ SDK)
target_link_libraries(${PROJECT_NAME} PRIVATE litert_cc_api)
```

### CLI Tools

```bash
# Platform: Linux, macOS, Windows | Model conversion & benchmarking
pip install litert-cli-nightly
```

### Python

```bash
# Platform: Linux, macOS, Windows | LiteRT-LM Python SDK
pip install litert-lm-api
```

### Android (Kotlin)

```kotlin
// Platform: Android (API 24+) | In app/build.gradle.kts
implementation("com.google.ai.edge.litertlm:litertlm-android:latest.release")
```

### iOS (Swift)

```swift
// Platform: iOS 15+, macOS 12+ (Apple Silicon GPU)
// In Package.swift dependencies:
.package(url: "https://github.com/google-ai-edge/LiteRT-LM", from: "0.16.0")

// In target dependencies:
.product(name: "LiteRTLM", package: "LiteRT-LM")
```

### Web (JS)

```bash
# Platform: Web (WebGPU required)
npm install @litert-lm/core
```

### C++

```cmake
# Platform: Linux, Android NDK, macOS, Windows
# Option A: prebuilt C API (headers + shared libs), no build required.
# Download litert_lm_c_api-*.zip from github.com/google-ai-edge/LiteRT-LM/releases
target_include_directories(${PROJECT_NAME} PRIVATE ${LITERT_LM_SDK}/include)
target_link_libraries(${PROJECT_NAME} PRIVATE ${LITERT_LM_SDK}/lib/linux_x86_64/liblitert-lm.so)

# Option B: build LiteRT-LM from source, then link the C++ aggregate target.
target_link_libraries(${PROJECT_NAME} PRIVATE LiteRTLM::Aggregate)
```

### CLI Tools

```bash
# Platform: Linux, macOS, Windows | On-Device LLM runner & test harness
pip install litert-lm
```
[Full LiteRT-LM API guide →](https://developers.google.com/edge/litert-lm/api_overview.md.txt) Quick start, streaming, GPU, multimodal input, and tool use in Python, Kotlin, Swift, and JavaScript. Supported Platforms: Android • iOS • Web • Linux • macOS • Windows [LiteRT Guide →](https://developers.google.com/edge/litert/overview.md.txt#install-litert) [CLI Guide →](https://developers.google.com/edge/litert/cli/installation.md.txt) [LiteRT-LM Guide →](https://developers.google.com/edge/litert-lm/overview.md.txt)

## Samples, models, and demos

Explore open-source code samples, pre-trained models, and interactive demos. [![](http://developers.google.com/static/edge/litert/images/landing/github.svg)](https://github.com/google-ai-edge/litert-samples/tree/main/samples)

### [End-to-end sample applications](https://github.com/google-ai-edge/litert-samples/tree/main/samples)

Complete, runnable open-source sample applications across Android, iOS, Web, desktop, and IoT for LiteRT and LiteRT-LM. [Explore sample apps](https://github.com/google-ai-edge/litert-samples/tree/main/samples) [![](http://developers.google.com/static/edge/litert/images/landing/genAI.png)](https://huggingface.co/litert-community)

### [Explore open-weight LLMs \& models](https://huggingface.co/litert-community)

Pre-converted, ready-to-deploy models on Hugging Face including Gemma 4, Llama 3.2, Qwen 3.5, and MobileNet. [Browse Hugging Face Collections](https://huggingface.co/litert-community) [![](http://developers.google.com/static/edge/litert/images/landing/Gallery.png)](https://play.google.com/store/apps/details?id=com.google.ai.edge.gallery)

### [Try on-device Gemma: AI Edge Gallery app](https://play.google.com/store/apps/details?id=com.google.ai.edge.gallery)

Experience offline LLMs running entirely on your mobile device with LiteRT-LM. Download the open-source sample app on Google Play and GitHub. [Get it on Google Play](https://play.google.com/store/apps/details?id=com.google.ai.edge.gallery) [GitHub source →](https://github.com/google-ai-edge/gallery)

### [Blogs and announcements](http://developers.google.com/edge/litert/new_blogs/news_blogs.md.txt)

Stay up to date with the latest announcements, technical deep dives, and performance benchmarks on the LiteRT news and blogs page. [Explore more blogs](http://developers.google.com/edge/litert/new_blogs/news_blogs.md.txt)

## Join the community

[![](http://developers.google.com/static/edge/litert/images/landing/github.svg)](https://github.com/google-ai-edge/LiteRT)

### [LiteRT GitHub community](https://github.com/google-ai-edge/LiteRT)

Contribute directly to the project and collaborate with core developers. [![](http://developers.google.com/static/edge/litert/images/landing/huggingface-color.svg)](https://huggingface.co/litert-community)

### [Hugging Face Hub](https://huggingface.co/litert-community)

Access optimized open-weight models on the Hugging Face Hub. [](https://forms.gle/xXoDqwPYN9Q9NhYBA)

### [Collaboration \& feature intake](https://forms.gle/xXoDqwPYN9Q9NhYBA)

Submit feature requests and collaborate with the LiteRT team.

### [Start your LiteRT journey](http://developers.google.com/edge/litert/overview.md.txt)

Ready to build? Explore the docs and ship your first on-device model. [Explore the Docs](http://developers.google.com/edge/litert/overview.md.txt)