$npx skillfedfor your agent

onnx2tf

A tool for converting ONNX files to LiteRT/TFLite/TensorFlow, PyTorch native code (nn.Module), TorchScript (.pt), state_dict (.pt), Exported Program (.pt2), and Dynamo ONNX. It also supports direct conversion from LiteRT to PyTorch.

With conditionsPyPI Artificial IntelligenceReleased Aug 20261.6M downloads / moMITPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — onnx2tf-2.6.8-py3-none-any.whl
v2.6.8 · released 2026-08-01 · Python >=3.12 · 18 runtime deps: numpy, onnx, onnxruntime, opencv-python, onnxsim, onnxoptimizer, onnxscript, ai-edge-litert

Yes, if you need to convert ONNX models to LiteRT, TensorFlow, or PyTorch. The package is actively maintained, has low install friction, and covers a broad set of ONNX operators. Check the supported operator list against your model's layers first—partial or missing support for specific ops may require workarounds. MIT license poses no restrictions. Not necessary if you work exclusively within one framework.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.12 or later.
  • Conversion success depends on whether your ONNX model's layers are supported by the target backend (tf_converter or flatbuffer_direct).
  • Low install friction with a pure Python wheel.

License · maintenance · safety

MIT (permissive) — MIT license (permissive). No restrictions on commercial or proprietary use; you may use, modify, and distribute this package with minimal obligations.

last release 2026-08-01 (13 days) · last repo commit 2026-08-01 · 987 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,629,877 downloads/mo, #3,706 on PyPI

Verify before relying

pip install onnx2tf

from onnx2tf import onnx2tf
# Convert ONNX to LiteRT (default backend)
onnx2tf.convert(onnx_model_path='model.onnx', output_dir='./output')
  • Exact list of PyTorch export formats (nn.Module, TorchScript, state_dict, Exported Program, Dynamo ONNX) and their completeness/stability.
  • Performance characteristics and conversion time for typical model sizes.
  • Handling of unsupported ONNX operators and error recovery behavior.
  • Whether flatbuffer_direct backend covers all use cases or if tf_converter fallback is still needed.
Same gist for agents: .md · .json

What it is and what it does

onnx2tf is a model format converter that takes ONNX (Open Neural Network Exchange) files and translates them into multiple target frameworks: LiteRT (Google's edge ML runtime), TensorFlow/TFLite, PyTorch (as native nn.Module code or TorchScript), and other formats. It also works in reverse, converting LiteRT models back to PyTorch. The package uses two execution paths: flatbuffer_direct (the current default, optimized for speed and success rate) and tf_converter (a legacy path supporting a large set of ONNX operators). The tool is designed for developers who need to move trained models between frameworks—for instance, to deploy a PyTorch model on mobile via TFLite, or to run a TensorFlow model in PyTorch training pipelines.

The package depends on 18 runtime libraries covering ONNX tooling (onnx, onnxruntime, onnxsim, onnxoptimizer, onnxscript), ML frameworks (ai-edge-litert, flatbuffers), and utilities (numpy, opencv-python, protobuf, h5py). It requires Python 3.12 or later and is actively maintained. The conversion success depends on whether your model's layers are in the supported operator list; the documentation lists hundreds of ONNX operators with full or partial support status.

Use it for

  • Deploy a PyTorch model to mobile/edge devices by converting to LiteRT or TFLite format.
  • Migrate a trained TensorFlow model to PyTorch for retraining or fine-tuning in a different framework.
  • Convert ONNX models (from any framework) to TensorFlow for production serving.
  • Optimize and simplify ONNX graphs before deployment using the built-in simplification and optimization tools.
  • Export PyTorch models through ONNX as an intermediate step to reach non-PyTorch runtimes.
  • Validate model compatibility across frameworks by round-tripping through ONNX and LiteRT.

Worth the install?

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

With conditions

Yes, if you need to convert ONNX models to LiteRT, TensorFlow, or PyTorch.

The package is actively maintained, has low install friction, and covers a broad set of ONNX operators. Check the supported operator list against your model's layers first—partial or missing support for specific ops may require workarounds. MIT license poses no restrictions. Not necessary if you work exclusively within one framework.

Install

onnx2tf on PyPI

Before you install

Low install friction with a pure Python wheel. Active maintenance—last commit 2026-08-01, 13 days old. Requires Python 3.12 or later. Pulls in 18 runtime dependencies including numpy, onnx, onnxruntime, and TensorFlow-adjacent libraries (ai-edge-litert, flatbuffers); dependency chain is substantial but standard for ML tooling.

Requires Python 3.12 or later. Conversion success depends on whether your ONNX model's layers are supported by the target backend (tf_converter or flatbuffer_direct).

License in practice

MIT license (permissive). No restrictions on commercial or proprietary use; you may use, modify, and distribute this package with minimal obligations.

Quickstart

pip install onnx2tf

from onnx2tf import onnx2tf
# Convert ONNX to LiteRT (default backend)
onnx2tf.convert(onnx_model_path='model.onnx', output_dir='./output')

Verify before relying

  • Exact list of PyTorch export formats (nn.Module, TorchScript, state_dict, Exported Program, Dynamo ONNX) and their completeness/stability.
  • Performance characteristics and conversion time for typical model sizes.
  • Handling of unsupported ONNX operators and error recovery behavior.
  • Whether flatbuffer_direct backend covers all use cases or if tf_converter fallback is still needed.

Package facts

LicenseMIT permissive
Python supportSupports the current Python release >=3.12
Install frictionLow. Pure-Python wheel
Runtime dependencies
18 packages
numpyonnxonnxruntimeopencv-pythononnxsimonnxoptimizeronnxscriptai-edge-litertsne4onnxsng4onnxpsutilprotobufh5pyml-dtypessetuptoolsflatbufferstqdmpytest
MaintenanceActively maintained 13 days since the last release
Last repo commit
First released
Downloads1,629,877 / month, #3,706 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: POSIX :: LinuxOperating System :: UnixProgramming Language :: Python :: 3Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/Engineering :: Artificial Intelligence

Evidence: onnx2tf-2.6.8-py3-none-any.whl

Tags

Capabilities
onnx to tensorflow conversiononnx to litert converteronnx to pytorch exportmodel format conversion toolonnx to tflite converterdeep learning model conversionneural network format translator
Topics
model-conversionml-deploymentedge-inference
PyPI keywords
onnxtensorflowtflitelitertkeraspytorchdeep-learningmachine-learning

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 › “onnx to litert converter”

  • onnx2tfConverts ONNX model files to LiteRT, TensorFlow, PyTorch,…
  • litert-torchConverts PyTorch models to .tflite format for on-device deployment on…
  • litert-converterConverts machine learning models to LiteRT format for deployment on…

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

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also litert-torch · netron · tf2onnx · litert-converter · onnx2torch · tflite · pnnx · orbax-export · onnxmltools · onnxconverter-common