--- id: ai-edge-litert version: "2.2.0" license: Apache 2.0 license_treatment: permissive maintenance: active --- # ai-edge-litert — LiteRT is for mobile and embedded devices. License: permissive · Maintenance: active · Downloads: 768.5K/mo ## 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 above — 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 pip install ai-edge-litert uv add ai-edge-litert poetry add ai-edge-litert ## Installing 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: unspecified - Install friction: medium - Maintenance: active - Downloads: 768.5K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags mobile machine learning inference, on-device ml models, embedded neural network, tensorflow lite runtime, low-latency edge inference, mobile model deployment, lightweight ml inference, edge-inference, mobile-ml, tensorflow-lite [View on SkillFed](https://skillfed.io/packages/ai-edge-litert) · [View on PyPI](https://pypi.org/project/ai-edge-litert/)