On-device GenAI in Chrome, Chromebook Plus, and Pixel Watch with LiteRT-LM- Google Developers Blog

This post introduces LiteRT-LM, an open-source C++-based LLM pipeline framework that uses LiteRT for on-device inference. It enables running large language models (LLMs) like Gemini Nano and Gemma on edge devices, powering features in Chrome, Chromebook Plus, and Pixel Watch. Key technical contributions include: 1. The Engine/Session architecture for managing shared LLMs and feature-specific customization via LoRAs, enabling efficient context switching and session cloning with Copy-on-Write (CoW) KV-cache. 2. A modular design allowing for the creation of specialized, lean pipelines for resource-constrained devices by selecting minimum required components. 3. Cross-platform compatibility and hardware acceleration support (CPU, GPU, NPU) through the LiteRT runtime. The post provides access to the C++ preview interface, sample code, and documentation for developers to build custom LLM pipelines.
More from the Coral Edge AI Platform trail
- ML Drift: Next-Gen GPU AI/ML Inference at the Edge- Google Developers Blog
- Bring multimodal semantic search to the edge with EmbeddingGemma 2- Google Developers Blog
- EmbeddingGemma 2: The Developer Guide- Google Developers Blog
- Mastering Edge AI on Raspberry Pi with LiteRT and Gemma- Google Developers Blog
- LiteRT.js, Google's high performance Web AI Inference- Google Developers Blog