### [Run LLMs on-device with LiteRT-LM](http://developers.google.com/edge/litert-lm/overview.md.txt)

The **production-ready** orchestration layer to run LLMs with LiteRT, engineered for **high-performance** , **cross-platform** execution. [Overview](http://developers.google.com/edge/litert-lm/overview.md.txt) [Get Started](http://developers.google.com/edge/litert-lm/cli.md.txt)

## Spotlight

[![](http://developers.google.com/static/edge/litert-lm/images/embeddinggemma2_banner.png)](https://developers.googleblog.com/google-ai-edge-with-embeddinggemma-2) Check out our latest blog to discover how EmbeddingGemma 2 brings multimodal semantic search to the edge, unifying text, images, video, and audio into a single vector space directly on-device with high performance and efficiency. [Blogpost](https://developers.googleblog.com/google-ai-edge-with-embeddinggemma-2) [Web Demo](https://google-ai-edge.github.io/LiteRT-LM/web_demos/embedding_search/index.html) [Learn more](http://developers.google.com/edge/litert-lm/embedding_models.md.txt)

## What's New (v0.18.0)

**New Model Release (EmbeddingGemma 2)** : Shipped multimodal EmbeddingGemma 2 supporting text, vision, and audio embeddings with Matryoshka dimension truncation across Python, Kotlin, Swift, Web (JavaScript), and C++. Check out our [Embedding Models documentation](https://developers.google.com/edge/litert-lm/embedding_models.md.txt) and [try the web demo](https://google-ai-edge.github.io/LiteRT-LM/web_demos/embedding_search/index.html)!  

**CLI \& Developer Experience** : Added fast model imports (`litert-lm import`) and an OpenAI-compatible `/v1/embeddings` endpoint (`litert-lm serve`) for multimodal embedding models.  

**Model Info API** : Added `ModelInfo` and `litert-lm describe` for full model introspection---covering metadata, capabilities, and runtime requirements before loading.  

**NPU \& GPU Acceleration**: Enabled dynamic on-demand KV cache growth on NPU and attention mask pruning optimizations on GPU. [GitHub](https://github.com/google-ai-edge/LiteRT-LM/releases/tag/v0.18.0)

## Why LiteRT-LM?

![](http://developers.google.com/static/edge/litert/images/landing/crossplatform.png)

### Cross-platform

Deploy LLMs across Android, iOS, Web, and Desktop. ![](http://developers.google.com/static/edge/litert/images/landing/hardware.png)

### Hardware accelerated

Maximize performance with GPU and NPU acceleration. ![](http://developers.google.com/static/edge/litert-lm/images/genAI.jpg)

### Broad GenAI Capabilities

Support for popular LLMs as well as multi-modality (Vision, Audio) and Tool Use.

## Start building

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

Python APIs with hardware acceleration on Linux, MacOS, Windows, Android, and Raspberry Pi. [Python Guide](http://developers.google.com/edge/litert-lm/python.md.txt)

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

Native Android apps and JVM-based desktop tools. [Android Guide](http://developers.google.com/edge/litert-lm/android.md.txt)

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

Native iOS (macOS coming soon) Swift APIs. [Swift Guide](http://developers.google.com/edge/litert-lm/swift.md.txt)

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

JavaScript and TypeScript APIs for browser-based web apps with WebGPU acceleration. [Web Guide](http://developers.google.com/edge/litert-lm/js.md.txt)

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

Build cross-platform Flutter apps using the community-maintained flutter_gemma package. [Flutter Guide](http://developers.google.com/edge/litert-lm/flutter.md.txt)

### [C++](http://developers.google.com/edge/litert-lm/cpp.md.txt)

x-platform C++ APIs . [C++ Guide](http://developers.google.com/edge/litert-lm/cpp.md.txt)

### [File Builder](http://developers.google.com/edge/litert-lm/file_builder.md.txt)

Build .litertlm files from converted LiteRT models. [File Builder Guide](http://developers.google.com/edge/litert-lm/file_builder.md.txt)

## Join the Community

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

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

Contribute to the open-source project, report issues, and see examples. [View on GitHub](https://github.com/google-ai-edge/LiteRT-LM) [![](http://developers.google.com/static/edge/litert-lm/images/huggingface-color.svg)](https://huggingface.co/litert-community)

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

Download pre-converted models (Gemma, Qwen and more), and join the discussion. [View on Hugging Face](https://huggingface.co/litert-community)

## Blogs and Announcements

[![](http://developers.google.com/static/edge/litert-lm/images/gemma4_mtp.png)](https://blog.google/innovation-and-ai/technology/developers-tools/multi-token-prediction-gemma-4/)

### [Supercharge Gemma 4 on-device inference with Multi-Token Prediction (MTP)](https://blog.google/innovation-and-ai/technology/developers-tools/multi-token-prediction-gemma-4/)

Experience \>2x faster decode speeds on mobile GPUs with zero quality degradation. [![](http://developers.google.com/static/edge/litert-lm/images/litertlm_banner.png)](https://developers.googleblog.com/blazing-fast-on-device-genai-with-litert-lm/)

### [Blazing fast on-device GenAI with LiteRT-LM](https://developers.googleblog.com/blazing-fast-on-device-genai-with-litert-lm/)

Discover how LiteRT-LM supercharges on-device GenAI deployments, unlocking Gemma 4's full potential with Swift, JavaScript, and Flutter APIs. [![](http://developers.google.com/static/edge/litert-lm/images/gemma4_gallery.png)](https://developers.googleblog.com/bring-state-of-the-art-agentic-skills-to-the-edge-with-gemma-4/)

### [Bring state-of-the-art agentic skills to the edge with Gemma 4.](https://developers.googleblog.com/bring-state-of-the-art-agentic-skills-to-the-edge-with-gemma-4/)

Deploy Gemma 4 in-app and across a broader range of devices with stellar performance and reach using LiteRT-LM. [![](http://developers.google.com/static/edge/litert-lm/images/litert-lm-chrome-wearables.png)](https://developers.googleblog.com/on-device-genai-in-chrome-chromebook-plus-and-pixel-watch-with-litert-lm/)

### [On-device GenAI in Chrome, Chromebook Plus, and Pixel Watch](https://developers.googleblog.com/on-device-genai-in-chrome-chromebook-plus-and-pixel-watch-with-litert-lm/)

Deploy language models on wearables and browser-based platforms using LiteRT-LM at scale. [![](http://developers.google.com/static/edge/litert-lm/images/litert-lm-function-calling.png)](https://developers.googleblog.com/on-device-function-calling-in-google-ai-edge-gallery/)

### [On-device function calling in Google AI Edge Gallery](https://developers.googleblog.com/on-device-function-calling-in-google-ai-edge-gallery/)

Explore how to fine-tune FunctionGemma and enable function calling capabilities powered by LiteRT-LM Tool Use APIs. [![](http://developers.google.com/static/edge/litert-lm/images/litert-lm-small-models.png)](https://developers.googleblog.com/google-ai-edge-small-language-models-multimodality-rag-function-calling/)

### [Google AI Edge small language models, multimodality, and function calling](https://developers.googleblog.com/google-ai-edge-small-language-models-multimodality-rag-function-calling/)

Latest insights on RAG, multimodality, and function calling for edge language models.