skillfed

litert-lm-builder

Python tools for building and inspecting LiteRT-LM file formats

litert-lm-builder v0.16.0 117.8K downloads/30d#12,150 on PyPI6,199
Permissive license Apache-2.0 Active released

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-builder

uv

uv add litert-lm-builder

poetry

poetry add litert-lm-builder

Installing 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

License :: OSI Approved :: Apache Software LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3

Tags

edge llm inferenceon-device language modellitert model buildercross-platform llm runtimemobile ai deploymenthardware accelerated inferencellm file format tools
edge-aimodel-builderllm-deployment

More Artificial Intelligence packages