IRModule: TVM Unity's Unified Abstraction for Pythonic LLM Optimization
The IRModule stands as TVM Unity's central Pythonic abstraction, uniquely consolidating both high-level graph IR (Relax) and low-level tensor IR (TensorIR) to enable flexible, composable transformations and optimization pipelines for LLMs.
The top 3
- Unifying LLM Layers: IRModule's Core Abstraction: IRModule integrates high-level computational graphs (Relax), low-level tensor programs (TensorIR), and external library calls into a single, comprehensive representation of ML models.
- IRModule: Central Hub for LLM Transformations: It serves as the fundamental unit for all intermediate representation (IR) transformations within TVM Unity, where each optimization pass takes an IRModule as input and outputs an optimized IRModule.
- Universal Deployment: IRModule's Cross-Platform Power: An optimized IRModule enables universal deployment by allowing the same module to be compiled and executed efficiently across diverse hardware backends, including CPUs, GPUs, and WebAssembly.
Sources
Open the full topic