$npx skillfedfor your agent

litert-torch

Support PyTorch model conversion with LiteRT.

With conditionsPyPI Software DevelopmentReleased Aug 2026166.6K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — litert_torch-0.9.3-py3-none-any.whl
v0.9.3 · released 2026-08-04 · Python >=3.10 · 19 runtime deps: absl-py, numpy, scipy, safetensors, multipledispatch, transformers, kagglehub, tabulate

Yes, if you are converting PyTorch models for on-device deployment and targeting Android, iOS, or IoT. The library is actively maintained, has low install friction, and offers both general and LLM-specific conversion paths. Conditions: requires Python 3.10 through 3.13 (3.11 recommended), Linux, and a large dependency footprint; the Generative API is Alpha, so production LLM workflows should expect iteration.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Python >=3.10 and <3.14 required; Python 3.11 highly recommended.
  • Linux only.
  • Requires PyTorch >=2.4.0 and tf-nightly.

License · maintenance · safety

permissive license (permissive) — Permissive license allows commercial and private use with minimal restrictions.

last release 2026-08-04 (10 days) · last repo commit 2026-08-14 · 1,079 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 166,622 downloads/mo, #10,487 on PyPI

Verify before relying

pip install litert-torch

import torch
import litert_torch

model = torch.nn.Linear(10, 2)
with torch.no_grad():
    sample_inputs = (torch.randn(1, 10),)
    edge_model = litert_torch.convert(model.eval(), sample_inputs)
edge_model.export("model.tflite")
  • Specific coverage of Core ATen operators and which PyTorch operations are unsupported in conversion
  • Performance benchmarks or latency comparisons for converted models on target devices
  • Quantization support details beyond the mention of Generative API quantization
  • Whether GPU/NPU support is production-ready or experimental
Same gist for agents: .md · .json

What it is and what it does

LiteRT Torch bridges PyTorch and on-device deployment by converting trained PyTorch models into LiteRT's .tflite format. The library integrates with torch.export() to capture models, then serializes them for execution on mobile and IoT hardware. It provides two main workflows: a PyTorch Converter (Beta) for general model conversion, and a Generative API (Alpha) specialized for transformer-based models and large language models with quantization support.

The package targets developers building edge ML applications where models must run entirely on-device without cloud connectivity. It handles the conversion pipeline and offers initial support for CPU, GPU, and NPU execution. With 19 runtime dependencies including torch, transformers, jax, and tf-nightly, it brings a substantial environment; deployment of the converted .tflite files themselves requires the separate LiteRT runtime.

Use it for

  • Convert a trained vision model to .tflite for inference on Android or iOS devices
  • Quantize and optimize a transformer-based LLM for on-device deployment using the Generative API
  • Export a PyTorch model for IoT edge devices that cannot reach cloud inference services
  • Package a converted model and tokenizer into a .litertlm container for production mobile deployment
  • Benchmark model performance on target hardware using LiteRT's compiled model API after conversion

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are converting PyTorch models for on-device deployment and targeting Android, iOS, or IoT.

The library is actively maintained, has low install friction, and offers both general and LLM-specific conversion paths. Conditions: requires Python 3.10 through 3.13 (3.11 recommended), Linux, and a large dependency footprint; the Generative API is Alpha, so production LLM workflows should expect iteration.

Install

litert-torch on PyPI

Before you install

Low friction; pure Python wheel. Active maintenance with release 10 days old and recent commits. However, 19 runtime dependencies including torch, transformers, jax, and tf-nightly create a substantial environment footprint.

Python >=3.10 and <3.14 required; Python 3.11 highly recommended. Linux only. Requires PyTorch >=2.4.0 and tf-nightly.

License in practice

Permissive license allows commercial and private use with minimal restrictions.

Quickstart

pip install litert-torch

import torch
import litert_torch

model = torch.nn.Linear(10, 2)
with torch.no_grad():
    sample_inputs = (torch.randn(1, 10),)
    edge_model = litert_torch.convert(model.eval(), sample_inputs)
edge_model.export("model.tflite")

Verify before relying

  • Specific coverage of Core ATen operators and which PyTorch operations are unsupported in conversion
  • Performance benchmarks or latency comparisons for converted models on target devices
  • Quantization support details beyond the mention of Generative API quantization
  • Whether GPU/NPU support is production-ready or experimental

Package facts

Licensepermissive license permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
19 packages
absl-pynumpyscipysafetensorsmultipledispatchtransformerskagglehubtabulatetorchai-edge-litertai-edge-quantizerlitert-convertertorchaojaxjaxtypingfiresentencepiecerichlitert-lm-builder
MaintenanceActively maintained 10 days since the last release
Last repo commit
First released
Downloads166,622 / month, #10,487 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaIntended Audience :: DevelopersIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/EngineeringTopic :: Scientific/Engineering :: Artificial IntelligenceTopic :: Scientific/Engineering :: MathematicsTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Evidence: litert_torch-0.9.3-py3-none-any.whl

Tags

Capabilities
pytorch to tflite conversionon-device model deploymentedge ml pytorchlitert pytorch convertermobile model exportllm quantization edgetransformer model optimization
Topics
model-conversionedge-deploymentquantization
PyPI keywords
On-Device MLAIGoogleTFLiteLiteRTPyTorchLLMsGenAI

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytorch to tflite conversion”

  • litert-torchConverts PyTorch models to .tflite format for on-device deployment on…
  • onnx2tfConverts ONNX model files to LiteRT, TensorFlow, PyTorch,…
  • ai-edge-model-explorerVisualizes and debugs machine learning model graphs with hierarchical…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also ai-edge-litert · onnx2tf · litert-converter · litert-lm-builder · ai-edge-litert-nightly · tflite-runtime · pnnx · ai-edge-quantizer · executorch · pte-adapter-model-explorer