Skip to main content

MLIA LiteRT Converter Plugin

This repository contains the MLIA converter plugin that translates LiteRT / TensorFlow Lite .tflite models into TOSA so they can be consumed by MLIA backends and target flows that operate on TOSA artifacts.

The package is distributed as mlia-converters-litert. When installed, it registers the transformer name tflite_to_tosa with MLIA through the plugin entry-point system.

Read the documentation on Arm Developer.

Table of Contents

Overview

This plugin provides the conversion bridge between LiteRT / TensorFlow Lite .tflite model files and TOSA-based MLIA backends. It gives the wider MLIA ecosystem a dedicated package for .tflite-to-TOSA conversion and keeps converter logic separate from the core MLIA framework.

The implementation package lives under src/mlia/backend/tosa_converter_for_tflite/ and includes:

  • Conversion logic.
  • Transformer registration.
  • Backend installation metadata used by MLIA.

Installation

Install a target plugin for your hardware first; it installs MLIA as a dependency. Add this converter in the same environment only when your workflow needs LiteRT conversion. The converter alone does not provide target-specific analysis.

pip install mlia-converters-litert

For source-based development with uv:

uv sync --group dev

The first check that needs TFLite-to-TOSA conversion installs the converter and its dependencies in a separate Python environment. They are not installed into your MLIA environment. To install the converter ahead of a check:

mlia backend install tosa-converter-for-tflite

Use mlia backend list --runtimes to inspect available converter versions and --show-plan on a check to see which one it will use. A target's default profile selects the appropriate converter; --execution-profile selects a different supplied combination.

How MLIA uses this plugin

MLIA discovers this repository through the mlia.plugin.transformer entry point. When installed, the plugin registers the transformer name tflite_to_tosa.

The package and transformer use different names:

  • tflite_to_tosa is the transformer name used in MLIA workflows.
  • tosa_converter_for_tflite is the Python implementation package.

That means downstream MLIA components can:

  • Discover the converter without hard-coded import paths.
  • Request a LiteRT / TensorFlow Lite .tflite-to-TOSA conversion through the transformer registry.
  • Treat the converter as a separately versioned plugin package.

For more implementation detail, see docs/README.md.

Repository contents

  • src/mlia/backend/tosa_converter_for_tflite/: implementation package and plugin registration.
  • tests/: unit tests for converter registration and conversion behaviour.
  • pre_commit_hooks/: local repository hooks shared with CI quality checks.
  • pyproject.toml: plugin package metadata.
  • runtime/litert/pyproject.toml: converter dependency versions.

Reporting bugs

Report bugs by creating GitHub issues. Use the arm/mlia issue tracker by default.

Only open an issue in arm/mlia-converters-litert when the bug is clearly and specifically in this LiteRT converter plugin.

Development (uv)

This repository uses uv for environment management and test execution. Ensure the Python version in .python-version is available, then install dependencies:

uv sync --group dev

Run unit tests (uses dependencies installed from the package index, including mlia):

uv run pytest --no-success-flaky-report tests/

Run a quick test subset:

uv run pytest --no-success-flaky-report -m "not slow" tests/

Lint checks:

uv run pre-commit run --all-files

Build a wheel:

uv build --wheel

Documentation

Additional repository documentation lives in docs/README.md.

Releases

Latest changes and release history can be found in MLIA LiteRT Converter releases.

License

This project is licensed under the Apache License 2.0. See LICENSES/Apache-2.0.txt for the full license text.

Trademarks and copyrights

  • Arm is a registered trademark or trademark of Arm Limited (or its subsidiaries) in the U.S. and/or elsewhere.
  • TensorFlow is a trademark of Google LLC.
  • Linux is the registered trademark of Linus Torvalds in the U.S. and elsewhere.
  • Python is a registered trademark of the PSF.

Metadata

Release files for mlia-converters-litert 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for mlia-converters-litert 0.2.0
File Interpreter ABI Platform Actions
mlia_converters_litert-0.2.0-py3-none-any.whl Python 3 none any Details for mlia_converters_litert-0.2.0-py3-none-any.whl

Release files / mlia_converters_litert-0.2.0-py3-none-any.whl

Download URL mlia_converters_litert-0.2.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6f441d9ff769fafaefe07638a57ddfac6df4da826067d09f691cc760cb0d7cb1
BLAKE2b-256 checksum
How to use checksums
2a88652b7c1775bc6b30c6f7127033cba61dc65e71f7d3b4c6ba41ae3917e4ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.5

Security for mlia-converters-litert 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page