Key Operator Fusions: 30-50% Throughput Boost

TVM Unity's fusion capabilities combine common LLM operations like matrix multiplication, activation functions (e.g., GELU), and layer normalization into single kernels, leading to throughput improvements of 30-50% for specialized operations.

The top 3

  1. Top Fused Operations Boosting LLM Inference: Key operator fusions in LLMs often combine normalization (like LayerNorm), activation functions (e.g., ReLU), and Softmax with subsequent linear transformations, achieving significant latency reductions, with some specific fusions demonstrating up to a 20% inference latency reduction.
  2. How Fusion Yields 30-50% Throughput Gains: Operator fusion significantly boosts throughput by reducing off-chip memory access, improving data locality by keeping intermediate results in faster on-chip memory (registers and shared memory), and minimizing kernel launch overhead by combining multiple small operations into a single, larger kernel.
  3. ClusterFusion: 1.61x Speedup by Fusing Decoding Stages: Advanced techniques like ClusterFusion expand operator fusion beyond single operations, composing entire LLM decoding stages such as QKV Projection, Attention, and Output Projection into single fused kernels, achieving an average 1.61x speedup in end-to-end latency on NVIDIA H100 GPUs.

Sources

Open the full topic