llvm/torch-mlir
The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.
What it solves
It solves the problem of software fragmentation and high development costs for hardware vendors who want to support PyTorch. Instead of every vendor building their own custom frontend to translate PyTorch models into a format their hardware understands, this project provides a standardized compiler bridge to the MLIR ecosystem.
How it works
Torch-MLIR acts as a middle layer that lowers PyTorch models into the Torch-MLIR Dialect. It supports two primary entry points for this process: ONNX and Fx. Once in the MLIR ecosystem, these models can be more easily mapped to specific target hardware by downstream compilers.
Who it’s for
It is primarily designed for compiler developers and hardware vendors who need to integrate PyTorch support into their systems without implementing a full PyTorch frontend from scratch.
Highlights
- Provides first-class compiler support from PyTorch to MLIR.
- Supports multiple entry paths including ONNX and Fx.
- Reduces the need for redundant custom lowerings by hardware vendors.
- Integrates with downstream projects like IREE and Blade.
Related
- Project
- Project
- Project
- Project
- Project