ai-edge-litert
LiteRT is for mobile and embedded devices.
What it is and what it does
ai-edge-litert is Google's official runtime for executing pre-trained machine learning models directly on mobile phones, tablets, and embedded systems. It handles the low-level inference work—loading a model, preparing inputs, and running predictions—with optimizations for minimal memory and power consumption. The package wraps TensorFlow Lite's core runtime and is designed to integrate into Python applications running on edge devices where cloud connectivity or server-side inference is impractical or undesirable.
The package depends on numpy for numerical operations, protobuf and flatbuffers for model serialization, and several utility libraries. Installation is straightforward on modern Python versions (3.8–3.14) across macOS, Linux, and Windows, though you must supply a pre-converted TensorFlow Lite model file. It is intended for developers building inference pipelines on resource-constrained hardware, not for model training or conversion.
Use it for:
- Run image classification or object detection on a mobile phone without sending data to a server.
- Deploy a speech recognition or natural language model on an embedded device with limited connectivity.
- Execute real-time pose estimation or gesture recognition on an edge device for interactive applications.
- Integrate a pre-trained recommendation or anomaly detection model into an IoT sensor or gateway.
- Build offline-capable mobile apps that perform inference without internet access.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
ai-edge-litert runs machine learning models on mobile and embedded devices with low latency and small binary footprint, supporting Android, iOS, and other operating systems.
Yes, if you are building a mobile or embedded application and already have a TensorFlow Lite model ready to deploy. The package is actively maintained, permissively licensed, and purpose-built for this use case. Not relevant for model training, conversion, or server-side inference—use TensorFlow or another framework for those tasks.
Install
ai-edge-litert on PyPI
pip
pip install ai-edge-litertuv
uv add ai-edge-litertpoetry
poetry add ai-edge-litertInstalling ai-edge-litert
Before you install
Medium install friction due to precompiled wheels for multiple Python versions (3.10–3.14) and platforms (macOS ARM, Linux x86/ARM, Windows). Active maintenance with a release 2 days ago. Seven runtime dependencies including numpy, protobuf, and flatbuffers add some setup overhead.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for production mobile and embedded applications.
Quickstart
pip install ai-edge-litert
import ai_edge_litert
# Load and run a model on an edge device
interpreter = ai_edge_litert.Interpreter(model_path='model.tflite')
interpreter.invoke()
Requires a compatible TensorFlow Lite model file (.tflite format) and a supported Python version (3.8 or later based on wheel availability).
Verify before relying
- Whether the package includes documentation or examples for model conversion and optimization for edge devices.
- Performance benchmarks or latency guarantees on specific mobile/embedded hardware.
- API stability and backward compatibility guarantees across minor versions.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 7 — backports.strenum, flatbuffers, numpy, tqdm, typing-extensions, protobuf, ml_dtypes |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 768,493/month — #5,113 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: ai_edge_litert-2.2.0-cp310-cp310-macosx_12_0_arm64.whl; ai_edge_litert-2.2.0-cp310-cp310-manylinux_2_27_aarch64.whl; ai_edge_litert-2.2.0-cp310-cp310-manylinux_2_27_x86_64.whl; ai_edge_litert-2.2.0-cp310-cp310-win_amd64.whl; ai_edge_litert-2.2.0-cp311-cp311-macosx_12_0_arm64.whl; ai_edge_litert-2.2.0-cp311-cp311-manylinux_2_27_aarch64.whl; ai_edge_litert-2.2.0-cp311-cp311-manylinux_2_27_x86_64.whl; ai_edge_litert-2.2.0-cp311-cp311-win_amd64.whl; ai_edge_litert-2.2.0-cp312-cp312-macosx_12_0_arm64.whl; ai_edge_litert-2.2.0-cp312-cp312-manylinux_2_27_aarch64.whl; ai_edge_litert-2.2.0-cp312-cp312-manylinux_2_27_x86_64.whl; ai_edge_litert-2.2.0-cp312-cp312-win_amd64.whl; ai_edge_litert-2.2.0-cp313-cp313-macosx_12_0_arm64.whl; ai_edge_litert-2.2.0-cp313-cp313-manylinux_2_27_aarch64.whl; ai_edge_litert-2.2.0-cp313-cp313-manylinux_2_27_x86_64.whl; ai_edge_litert-2.2.0-cp313-cp313-win_amd64.whl; ai_edge_litert-2.2.0-cp314-cp314-macosx_12_0_arm64.whl; ai_edge_litert-2.2.0-cp314-cp314-manylinux_2_27_aarch64.whl; ai_edge_litert-2.2.0-cp314-cp314-manylinux_2_27_x86_64.whl; ai_edge_litert-2.2.0-cp314-cp314-win_amd64.whl
Keywords: litert, tflite, tensorflow, tensor, machine, learning
Tags
More Software Development packages
Provides backported and experimental type hints…
permissive · top 100 on PyPI
numpyNumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
distlibDistlib provides low-level packaging utilities…
permissive · top 1,000 on PyPI
ai-edge-litert-nightlyLiteRT is a runtime for running trained machine…
permissive · top 15,000 on PyPI
ai-edge-quantizerQuantizes LiteRT models to reduce size and…
permissive · top 15,000 on PyPI
litert-lm-builderProvides Python tools for building, inspecting,…
permissive · top 15,000 on PyPI
litert-torchConverts PyTorch models to .tflite format for…
permissive · top 15,000 on PyPI
mediapipeMediaPipe provides pre-built machine learning…
permissive · top 5,000 on PyPI
tflite-runtimeTensorFlow Lite runtime enables on-device…
permissive · top 15,000 on PyPI
mnnMNN is a lightweight deep learning inference…
permissive · top 15,000 on PyPI
executorchExecuTorch exports and runs PyTorch models on…
permissive · top 15,000 on PyPI
moblyMobly is a Python test framework designed to…
permissive · top 15,000 on PyPI
litert-converterConverts machine learning models to LiteRT…
permissive · top 15,000 on PyPI