Unified IR's Foundation: Relax + TIR Merged Paradigm

TVM Unity fundamentally redefines ML compilation by merging high-level graph IR (Relax) with low-level tensor IR (TIR) into a single, unified `IRModule`. This 'Graph-TIR programming paradigm' eliminates the traditional steep abstraction gap, enabling holistic, cross-layer insights and optimizations previously impossible for LLMs.

The top 3

  1. Relax + TIR: TVM's Core IR Evolution: Relax, succeeding Relay, brought dynamic shape support and cross-level abstraction, then merged with low-level TensorIR (TIR) to form a unified paradigm for end-to-end ML optimization.
  2. Cross-Layer Optimization's Edge: Dynamic Shape & Fusion: The merged Relax-TIR IR leverages first-class symbolic shapes to enable dynamic shape-aware, cross-layer optimizations, from high-level graph fusion down to precise tensor operation scheduling.
  3. Unlocking Customization: Flexible Graph-TIR Compilation: TVM Unity's Graph-TIR paradigm empowers developers with a highly customizable compilation flow, allowing seamless integration of library-based and custom-optimized tensor operations.

Sources

Open the full topic