WhoBuilt

TLMs: Tiny LLMs and Agents on Edge Devices with LiteRT-LM

May 3, 2026· 1 h 21 min· 38K views·Watch on YouTube

Speaker

Cormac Brick, a tech lead on Google AI Edge, explains how to run language models and agent skills on edge devices at an AI Engineer event.

Why run models on the edge

On-device inference can reduce latency for tasks such as live voice translation, keep private data on the phone, work offline, and reduce cloud costs. Google AI Edge provides MediaPipe, LiteRT, and LiteRT-LM for deploying models across mobile, desktop, web, and embedded platforms. A single LiteRT-LM file can run on CPU and GPU across platforms; NPU deployment requires a device-specific compiled artifact.

System models and agent skills

Brick describes two deployment patterns: system-level models built into mobile operating systems, and smaller task-specific models loaded with an app. Gemma 4 E2B and E4B target edge devices, with image, audio, and text support. In AI Edge Gallery, skills let a model load instructions on demand and call JavaScript or app functions for tasks such as journaling, map lookup, and Wikipedia search.

How skills extend on-device models

Each skill has a short description that the model can inspect before loading fuller instructions from a SKILL.md file. This progressive loading keeps the context smaller, which can help lightweight models with limited reasoning capacity. The Gallery orchestrator uses tools to load skills, run JavaScript, and invoke native intents; constrained decoding can also improve tool-call reliability.

Building and deploying tiny models

For in-app features intended to reach many devices, Brick recommends tiny models with fewer than one billion parameters. The workflow uses LiteRT Torch to export and quantize models for LiteRT-LM, which supports CPU and GPU across platforms and can use vendor-specific compilation for NPUs. Brick says fine-tuning is usually important for models under 500 million parameters, and that evaluations have improved by 20 to 40 percentage points in some cases.

A modular transcription example

AI Edge Eloquent combines speech recognition with a separately fine-tuned small model that polishes transcripts by removing interjections and applying a user-provided list of names or technical terms. Brick describes using synthetic examples generated with a larger cloud model to fine-tune small Gemma-derived models for narrow tasks. He presents separate models as a practical modular approach that can make components easier to reuse, inspect, and debug.

Takeaways

  • Use on-device inference when latency, privacy, offline access, or cloud cost matters.
  • For edge agents, load skill details only when needed to conserve context.
  • Fine-tune tiny models for narrow app tasks; prompting alone may not deliver production reliability.
  • Plan NPU deployment around vendor-specific compilation, even when CPU and GPU share one model artifact.
  • Split narrow pipelines into reusable models when that improves reuse, inspection, or debugging.

Mentioned in this talk

Search inside this talk

What was claimed 9

Show all 9 facts

Related talks