Convert a PyTorch model to TensorFlow so it can be deployed on a TensorFlow Serving stack without rewriting it
Translate a research codebase from JAX to PyTorch to run experiments in your preferred framework
Use ivy.trace_graph to strip framework overhead and produce a leaner computation graph from existing model code
Port a machine learning library written for one framework so it works with another framework's data pipelines
Install with pip install ivy, transpiling complex libraries may require additional dependencies for the target framework to be installed separately.
Ivy is a Python tool for converting machine learning code from one framework to another. In machine learning, a framework is a software toolkit that people use to build and run models. PyTorch, TensorFlow, JAX, and NumPy are four popular ones, and code written for one of them does not normally run on the others. Ivy aims to bridge that gap. The central feature is a function called ivy.transpile. You give it code written for a source framework and tell it which target framework you want, and it produces equivalent code for that target. The README shows a small example: a function written with PyTorch is passed to ivy.transpile with source set to torch and target set to tensorflow, and the result is a TensorFlow version of the same function that you can then run on TensorFlow data. The README notes that PyTorch is currently supported as a source, while TensorFlow, JAX, and NumPy are supported as targets. There is a second function, ivy.trace_graph, which records the underlying steps a piece of code performs and builds a streamlined version with the extra wrapping removed. According to the docs, transpile can work in two ways: it converts a single function or class right away, and for a whole library it converts pieces only when they are actually used. Installing Ivy is done with a normal pip install ivy command, or from source by cloning the repository. The README also includes examples, a pointer to fuller documentation and demos, a contributing guide for people who want to help, and a citation for the academic paper behind the project. The practical point of Ivy is portability: if you have model code tied to one framework and need it in another, this tool tries to do that translation for you instead of rewriting everything by hand.
← unifyai on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.