Relax: TVM Unity's High-Level Graph IR

Relax functions as TVM Unity's high-level Intermediate Representation, abstracting the computational graph and allowing direct interaction with lower-level TensorIR for co-design and flexible optimizations across the entire compilation stack.

The top 3

  1. Relax's Origin: Solving Relay's LLM Dynamic Shape Challenges: Relax emerged as 'Relay Next' within TVM Unity to address Relay's limitations in optimizing dynamic shape workloads, control flow, and stateful operations prevalent in modern LLMs and transformers, aiming for enhanced expressibility and portability.
  2. Relax's Core Innovation: Symbolic Shapes & Cross-Layer Unification: Relax's key innovation is first-class symbolic shape support, enabling global tracking of dynamic shape relations and superior dynamic shape-aware optimizations. It also unifies computational graphs, tensor programs, and external libraries for cross-layer co-optimization.
  3. Relax's Impact: Boosting LLM Performance & Universal Deployment: Relax significantly improves LLM inference, achieving up to 27% reduction in decode token latency on various GPUs and enabling deployment across a wider range of devices, including mobile and embedded systems, through its advanced optimization capabilities.

Sources

Open the full topic