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

METAL MEDIA

google-ai-edge/LiteRT-LM

6,127C++Apache-2.0

Google open-sourced the engine that runs large language models directly on phones, laptops, and watches

LiteRT-LM is Google's open-source inference framework that lets large language models (LLMs) run directly on edge devices like phones, laptops, and Raspberry Pi, without needing a server. It supports models such as Gemma, Llama, Phi-4, and Qwen, with GPU/NPU acceleration, image and audio input, and agentic function-calling. It's already running in real Google products including Chrome, Chromebook Plus, and Pixel Watch.

What it does

  1. What: built an orchestration layer that runs LLMs directly on Android, iOS, web, desktop, and IoT devices instead of relying on cloud servers
  2. How: runs on top of Google's lightweight inference engine LiteRT, offers APIs in Python, Kotlin, Swift, JavaScript, and C++, and speeds things up with CPU/GPU/NPU acceleration and techniques like Multi-Token Prediction (MTP)
  3. Result: using MTP with Gemma4 models made inference up to 3x faster according to Google's blog, and models can be downloaded and run with a single command line even on a Raspberry Pi or laptop
  4. The latest v0.16.0 release shipped versioned C API prebuilt shared libraries for all supported platforms and added an experimental YNNPACK delegate for Linux arm64 builds

Why it matters

Running models on-device instead of sending data to a server means apps can work offline and keep user data local. For developers, it offers one consistent toolkit to add on-device AI to Android apps, web pages, and desktop software alike.

Terms in this repo

  • LLM (Large Language Model) · An AI model trained on huge amounts of text to converse, summarize, or write code
  • edge device · A device in the user's hands, like a phone or laptop, as opposed to a remote server
  • NPU · A specialized chip built for AI computation
  • Multi-Token Prediction (MTP) · A technique that predicts several tokens (words) at once to speed up generation
  • function calling / Tool Use · A capability letting an AI model invoke external programs or tools to complete tasks

Repository description (English)

LiteRT-LM is Google's production-ready, high-performance, open-source inference framework for deploying Large Language Models on edge devices.

Owner · google-deepmind

Open on GitHub

Trending repos

All repos →

Latest from METAL MEDIA