Helion Introduces Autotuned Linear Backend for vLLM to Accelerate LLM Inference on Hopper GPUs

News PyTorch Blog · Source account, not independently verified by us.

A new Helion backend for vLLM aims to speed up LLM inference on NVIDIA Hopper GPUs while reducing the effort needed to build specialized kernels. Across the evaluated models, per-shape autotuning combined with targeted dispatch outperformed the default CUTLASS and DeepGEMM backends; some workloads saw throughput improve by more than 10%.

Helion is a PyTorch-native, hardware-agnostic kernel DSL. Rather than manually writing separate matrix-multiplication kernels for different input shapes, one GEMM implementation can cover Standard GEMM, Split-K, and Swap-AB variants. An ahead-of-time autotuner tests configurations and selects a suitable variant for each shape. This work focuses on Hopper and quantized FP8 and INT8 formats, including FP8_Dynamic, W8A8_INT8, and Block_FP8.

The backend uses Helion only for small token counts up to 32 and within CUDA Graph execution; for larger shapes, vLLM falls back to CUTLASS or DeepGEMM. This is intended to limit runtime kernel-launch overhead while reducing the number of shapes that need tuning and configurations that must be maintained. The search used an LLM-guided autotuner and benchmarks with CUDA Graph enabled.

The integration involves tradeoffs: fine-grained tuning can take hours, and JIT compilation during a cold start can increase startup time. Cached artifacts can largely avoid that cost on warm starts. The post also details the tested variants and the approach’s limitations. Read the original source

🇬🇧 https://pytorch.org/blog/building-a-high-performance-and-portable-vllm-linear-backend-with-helion

Leave a Comment

The weekly brief: selected developments, projects and videos