Open machine learning compiler framework from the Apache Software Foundation
open sourceApache-2.0free
Apache TVM is an Apache-2.0 machine learning compiler framework, an Apache Software Foundation project that started as a research project on deep learning compilation. It turns models into minimal deployable modules for many kinds of hardware, with Python-first compiler pipelines: TensorIR as the tensor-level representation and Relax as the graph-level one. Its projects include TVM TIRx, a minimal core IR with code generation for CUDA and LLVM host targets, and TVM FFI, an open ABI that moves compiler objects, functions and tensors across Python, C++, Rust and frameworks such as PyTorch. It's also used to build kernel DSLs and tools that analyze ML compilers' programs.
Problems it solves
- compile a deep learning model to run efficiently on different hardware
- build my own ML compiler or kernel DSL on an existing foundation
- deploy a trained model as a small module without the full framework
Features
- compiles models into minimal deployable modules
- Python-first, customizable compiler pipelines
- TensorIR and Relax representations at the tensor and graph levels
- TVM FFI: an open ABI across Python, C++, Rust and PyTorch
- code generation for CUDA and LLVM targets
Alternatives
The same job
These do what Apache TVM does.
- ONNX Runtime Cross-platform, high performance ML inferencing and training accelerator
- OpenVINO Open source toolkit for optimizing and deploying AI inference