litert-lm-builder
Python tools for building and inspecting LiteRT-LM file formats
What it is and what it does
LiteRT-LM-builder is Google's Python toolset for constructing and analyzing LiteRT-LM model files—the format used to run large language models efficiently on edge devices like phones, tablets, IoT boards, and browsers. It sits within a larger ecosystem (LiteRT-LM) that handles cross-platform, hardware-accelerated inference of models like Gemma, Llama, and others. The package depends on protobuf, flatbuffers, absl-py, and tomli to serialize and manipulate model definitions.
This is a builder and inspection tool, not a runtime engine itself. Developers use it to prepare, validate, and configure LiteRT-LM model files before deploying them to target platforms. It supports Python 3.10+ and is actively maintained by Google's AI Edge team, with the latest release arriving within days of the fact sheet date.
Use it for:
- Prepare and validate Gemma or Llama models for on-device deployment on Android, iOS, or embedded Linux systems
- Build quantized model files (int4, E2B, E4B) optimized for specific hardware like mobile GPUs or NPUs
- Inspect and debug LiteRT-LM file formats to verify model configuration before production rollout
- Integrate model building into CI/CD pipelines for edge AI applications across multiple platforms
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides Python tools for building, inspecting, and working with LiteRT-LM file formats to run large language models on edge devices with hardware acceleration.
Yes, if you are building or deploying LLMs to edge devices and need to work with LiteRT-LM model formats. The package is actively maintained, has no known vulnerabilities, low install friction, and permissive licensing. However, verify that you need the builder/inspection tools specifically—if you only need to run inference, you may need the full LiteRT-LM runtime separately.
Install
litert-lm-builder on PyPI
pip
pip install litert-lm-builderuv
uv add litert-lm-builderpoetry
poetry add litert-lm-builderInstalling litert-lm-builder
Before you install
Low install friction; pure Python wheel with four lightweight dependencies (protobuf, flatbuffers, absl-py, tomli). Active maintenance with release 6 days old and 6199 repository stars.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most production and research contexts.
Quickstart
pip install litert-lm-builder
from litert_lm_builder import ...
# See https://ai.google.dev/edge/litert-lm/python for API details
Requires Python 3.10 or later; intended as a build/inspection tool for LiteRT-LM models rather than a standalone inference engine.
Verify before relying
- Specific Python API surface and available classes/functions for model building and inspection
- Whether this package alone can run inference or if it requires separate LiteRT runtime installation
- Performance characteristics and supported quantization formats beyond what the description mentions
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — protobuf, flatbuffers, absl-py, tomli |
| Maintenance | actively maintained — 6 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 117,761/month — #12,150 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: litert_lm_builder-0.16.0-py3-none-any.whl
Tags
More Artificial Intelligence packages
LiteLLM provides a unified Python interface to…
permissive · top 100 on PyPI
huggingface-hubClient library and CLI tool for downloading,…
permissive · top 100 on PyPI
langchainLangChain provides a framework for building…
permissive · top 1,000 on PyPI
hf-xethf-xet provides chunk-based deduplication and…
permissive · top 1,000 on PyPI
tokenizersTokenizers converts raw text into token…
permissive · top 1,000 on PyPI
transformersTransformers provides a unified framework for…
permissive · top 1,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
onnxruntime-genaiRuns small and large language models and…
permissive · top 15,000 on PyPI
ai-edge-litert-nightlyLiteRT is a runtime for running trained machine…
permissive · top 15,000 on PyPI
litert-converterConverts machine learning models to LiteRT…
permissive · top 15,000 on PyPI
ai-edge-quantizerQuantizes LiteRT models to reduce size and…
permissive · top 15,000 on PyPI
tosa-adapter-model-explorerEnables visualization of TOSA neural network…
permissive · top 15,000 on PyPI
ipex-llmAccelerates large language model inference on…
permissive · top 15,000 on PyPI
tflite-runtimeTensorFlow Lite runtime enables on-device…
permissive · top 15,000 on PyPI
executorchExecuTorch exports and runs PyTorch models on…
permissive · top 15,000 on PyPI