惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
月光博客
月光博客
MyScale Blog
MyScale Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
爱范儿
爱范儿
P
Proofpoint News Feed
人人都是产品经理
人人都是产品经理
Last Week in AI
Last Week in AI
罗磊的独立博客
G
Google Developers Blog
Y
Y Combinator Blog
博客园 - 【当耐特】
WordPress大学
WordPress大学
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
J
Java Code Geeks
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Visual Studio Blog
美团技术团队
宝玉的分享
宝玉的分享
Jina AI
Jina AI
小众软件
小众软件
T
Tailwind CSS Blog
A
About on SuperTechFans

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
What I Learned Untangling LiteRT, LiteRT-LM, and TFLite
Jaydeep Shah · 2026-05-18 · via DEV Community

When we started building Redacto - an on-device PII redaction app running Gemma 4 E2B on a Snapdragon 8 Elite - we kept tripping over three names: TFLite, LiteRT, and LiteRT-LM. Google's own docs sometimes use them interchangeably. Forum posts and community discussions mix them freely. We invested a good amount of time trying to figure out if they were the same thing, different versions, or completely separate tools.

Here is the distinction I wish someone had spelled out for me on day one.

The name that kept following me around: TFLite

TensorFlow Lite (TFLite) was Google's original on-device inference runtime, announced at Google I/O 2017 as the mobile companion to TensorFlow. It ran classical ML models - image classification, object detection, pose estimation - on phones and embedded devices. It consumed .tflite model files: small, optimized graphs dispatched to CPU, GPU, or specialized accelerators.

The rebrand that confused everyone: LiteRT

In September 2024, Google renamed TensorFlow Lite to LiteRT (short for "Lite Runtime"). The core runtime, APIs, and .tflite file format stayed the same. What changed was branding: LiteRT is no longer tied to TensorFlow. You can convert models from TensorFlow, PyTorch, JAX, or other frameworks. The old name implied a dependency that no longer existed.

The migration is still ongoing - you will find both names in code, packages, and docs. If you see org.tensorflow.lite in a Gradle dependency and LiteRT in Google's marketing, they are the same thing.

The one that is actually different: LiteRT-LM

This is where I got tripped up the longest. LiteRT-LM is not a rebrand. It is a separate runtime for running large language models on device, built on top of LiteRT. It adds capabilities the base runtime does not have:

  • Conversation management - system prompts, user turns, multi-turn history
  • Tokenization - BPE/SentencePiece tokenizer bundled with the model
  • Chat template handling - model-specific formatting (like Gemma's <start_of_turn> tags)
  • Streaming token output - callback-based delivery so your app shows text as it generates
  • Sampling configuration - temperature, top-k, top-p controls

LiteRT-LM consumes .litertlm files, not .tflite files. A .litertlm file is a compiled bundle: quantized weights, tokenizer, chat template, and an execution graph optimized for a specific device.

What I learned the hard way: they are not interchangeable

  • You cannot run a .litertlm file with plain LiteRT or TFLite. The base runtime has no concept of conversations, tokenizers, or streaming callbacks.
  • You cannot run a .tflite model with LiteRT-LM. The LLM runtime expects the bundled tokenizer and conversation-aware execution graph that only .litertlm provides.

They solve different problems. LiteRT runs classical ML inference. LiteRT-LM runs LLM inference with conversational scaffolding. In Redacto, we use LiteRT-LM exclusively - our pipeline sends system prompts through a multi-step conversation chain, with streaming callbacks and sampling configuration that do not exist in base LiteRT.

The stack that made it click

The On-Device AI Stack - App → MediaPipe/LiteRT-LM → LiteRT → Hardware delegates

LiteRT-LM and MediaPipe both sit on top of LiteRT, but they serve different purposes and do not overlap. MediaPipe provides high-level task APIs (face detection, image segmentation) that use LiteRT as the engine underneath. LiteRT-LM provides conversational LLM inference. For a deeper runtime comparison including llama.cpp, ONNX Runtime, and ExecuTorch, see my earlier post on the HuggingFace-to-phone pipeline.

The short version

  • TFLite = the old name for Google's on-device ML runtime. Being replaced by LiteRT branding.
  • LiteRT = TFLite renamed, with broader framework support. Same runtime, same .tflite format.
  • LiteRT-LM = a separate runtime for LLMs, built on LiteRT. Different file format (.litertlm), different capabilities.

If you need an LLM on device, you want LiteRT-LM. If you need a classifier or detector, you want LiteRT. If you see "TFLite" in code, it is the old name for LiteRT.

The naming is confusing. But once you see the stack, it clicks.


Sources:


Jaydeep Shah is a developer with roots in embedded systems, Android platform internals, and silicon-level AI optimization. He now explores on-device AI inference - bringing models from the cloud to phones and edge hardware. Along with his team Edge Artists, he builds applications using LiteRT-LM and Gemma models on mobile hardware, and writes about what works, what breaks, and what he learns along the way. This post is part of the Edge AI from the Trenches series.

Last updated: May 2026
3rd of 22 posts in the "Edge AI from the Trenches" series