litert-converter
LiteRT is for mobile and embedded devices.
What it is and what it does
litert-converter is a model conversion tool that transforms machine learning models into LiteRT format, the official runtime for running inference on mobile and embedded devices. It bridges the gap between model development (typically in TensorFlow or similar frameworks) and deployment on resource-constrained hardware like Android and iOS, handling the translation to a format optimized for low latency and small binary footprint.
The package depends on a substantial ML stack—numpy, protobuf, flatbuffers, lark, xdsl, and ml_dtypes—to parse, transform, and serialize models. It is actively maintained and recently released, with wheels pre-built for Python 3.10 through 3.14 on macOS arm64 and Linux x86_64, though this platform specificity means Windows users or those on other architectures will need to build from source or find alternative solutions.
Use it for:
- Convert a trained TensorFlow model to LiteRT format for deployment on an Android app.
- Optimize a neural network for inference on iOS devices with strict latency and memory constraints.
- Prepare a machine learning model for edge deployment on embedded Linux systems.
- Automate model conversion in a CI/CD pipeline targeting multiple mobile platforms.
- Reduce model binary size for distribution on devices with limited storage.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Converts machine learning models to LiteRT format for deployment on mobile and embedded devices with low latency and minimal binary size.
Yes, if you are targeting mobile or embedded device deployment and your model is compatible with LiteRT. The package is actively maintained, permissively licensed, and directly supported by the TensorFlow ecosystem. Install friction is moderate due to platform-specific wheels and a large dependency tree, but this is typical for ML tooling. Verify that your target platform (macOS arm64 or Linux x86_64) and Python version (3.10–3.14) are supported before committing.
Install
litert-converter on PyPI
pip
pip install litert-converteruv
uv add litert-converterpoetry
poetry add litert-converterInstalling litert-converter
Before you install
Medium install friction due to compiled wheels for specific Python versions (3.10–3.14) and platforms (macOS arm64, Linux x86_64). Active maintenance with a recent release (4 days old). Nine runtime dependencies including numpy, protobuf, and xdsl add complexity but are standard ML tooling.
License in practice
Apache 2.0 permissive license allows commercial and private use with minimal restrictions; you must include a copy of the license and state significant changes.
Quickstart
pip install litert-converter
from litert_converter import convert
converted_model = convert(source_model_path, target_format='litert')
Requires Python 3.10–3.14 on macOS (arm64) or Linux (x86_64); no Windows wheels available in this release.
Verify before relying
- Whether the package supports model formats beyond TensorFlow Lite (e.g., ONNX, PyTorch).
- Whether conversion preserves model accuracy or applies quantization by default.
- API stability and backward compatibility guarantees across minor versions.
- Performance benchmarks or latency targets for converted models on target devices.
Package facts
| License | Apache 2.0 (permissive) |
| Python support | not specified |
| Install friction | medium — platform-specific wheel |
| Runtime dependencies | 9 — backports.strenum, flatbuffers, numpy, tqdm, typing-extensions, protobuf, lark, ml_dtypes, xdsl |
| Maintenance | actively maintained — 4 days since the last release |
| First released | |
| Downloads | 244,790/month — #8,745 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: litert_converter-0.3.1-cp310-cp310-macosx_12_0_arm64.whl; litert_converter-0.3.1-cp310-cp310-manylinux_2_27_x86_64.whl; litert_converter-0.3.1-cp311-cp311-macosx_12_0_arm64.whl; litert_converter-0.3.1-cp311-cp311-manylinux_2_27_x86_64.whl; litert_converter-0.3.1-cp312-cp312-macosx_12_0_arm64.whl; litert_converter-0.3.1-cp312-cp312-manylinux_2_27_x86_64.whl; litert_converter-0.3.1-cp313-cp313-macosx_12_0_arm64.whl; litert_converter-0.3.1-cp313-cp313-manylinux_2_27_x86_64.whl; litert_converter-0.3.1-cp314-cp314-macosx_12_0_arm64.whl; litert_converter-0.3.1-cp314-cp314-manylinux_2_27_x86_64.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-litertai-edge-litert runs machine learning models on…
permissive · top 15,000 on PyPI
litert-torchConverts PyTorch models to .tflite format for…
permissive · top 15,000 on PyPI
tflite-runtimeTensorFlow Lite runtime enables on-device…
permissive · top 15,000 on PyPI
tfliteParses TensorFlow Lite (*.tflite) model files…
permissive · top 15,000 on PyPI
ai-edge-quantizerQuantizes LiteRT models to reduce size and…
permissive · top 15,000 on PyPI
onnx2tfConverts ONNX model files to LiteRT,…
permissive · top 5,000 on PyPI
mediapipeMediaPipe provides pre-built machine learning…
permissive · top 5,000 on PyPI
litert-lm-builderProvides Python tools for building, inspecting,…
permissive · top 15,000 on PyPI
tensorflowjsConverts TensorFlow models to TensorFlow.js…
permissive · top 5,000 on PyPI