← all repositories
google-ai-edge/litert-samples

Google's on-device AI stack, with working code attached

litert-samples is the official companion repo to LiteRT and LiteRT-LM: sample apps, conversion recipes, benchmarks, and agent playbooks for running ML and LLMs on phones, browsers, and NPUs.

litert-samples
Too new to rank. Velocity needs a few days of history.
not enough history yet
star history

What it does: It collects the reference material for Google’s on-device inference stack: sample apps for Android, iOS, Flutter, web, and Linux boards, plus reproducible model conversion recipes under models/ for checkpoints like MiniCPM5-2B, Qwen3-TTS, and SAM 3. It also ships a benchmarking setup (a performance leaderboard plus Google Cloud Developer Device Platform Colab notebooks) and nine SKILL.md playbooks designed for AI coding agents. Everything ties into the Hugging Face litert-community hub, which hosts 400+ pre-converted .tflite and .litertlm models, so samples stream weights on demand instead of committing them to git.

The interesting bit: The repo treats the whole pipeline as one path: author in PyTorch, convert and quantize with litert-torch and ai-edge-quantizer, publish to the HF hub, then run on CPU, GPU, or NPU (Qualcomm, Google Tensor, MediaTek, Intel). The agent skills are the unusual part, playbooks that let a coding assistant do the conversion and benchmarking work for you.

Key highlights

  • Cross-platform Flutter app covering voice chat, live camera detection, RAG, and agent skills, running on everything from Android to Raspberry Pi 5 and Jetson Orin
  • Five zero-server WebGPU browser demos (SAM 2.1, CLIPSeg, MoGe-2, PP-OCRv5, Matcha-TTS) plus a Chrome extension for on-page OCR and TTS
  • A model zoo app with 34 tasks (21 vision, 8 audio, 5 text) using the CompiledModel API
  • Offline Android voice assistant with tool calling, and a Raspberry Pi Reachy voice robot
  • Community showcase with 29 verified projects from a Gemma hardware hackathon

Caveats

  • This is a hub repo pointing at a whole ecosystem (LiteRT, LiteRT-LM, LiteRT-CLI, the HF hub); the samples are starting points, and depth varies per directory
  • The breadth is enormous, so expect some directories to be thinner than the headline features suggest

Verdict: Worth a scroll if you’re building on-device ML or GenAI and want working code rather than documentation prose. If you’re serving models from a datacenter GPU fleet, there’s little here for you.

Frequently asked

What is google-ai-edge/litert-samples?
litert-samples is the official companion repo to LiteRT and LiteRT-LM: sample apps, conversion recipes, benchmarks, and agent playbooks for running ML and LLMs on phones, browsers, and NPUs.
Is litert-samples open source?
Yes — google-ai-edge/litert-samples is open source, released under the Apache-2.0 license.
What language is litert-samples written in?
google-ai-edge/litert-samples is primarily written in Python.
How popular is litert-samples?
google-ai-edge/litert-samples has 500 stars on GitHub.
Where can I find litert-samples?
google-ai-edge/litert-samples is on GitHub at https://github.com/google-ai-edge/litert-samples.

heatdrop uses Google Analytics to see which pages get read — nothing else. Your call. How we handle data.