PyTorch introduced compile-time heuristics for Helion kernels. They analyze a kernel’s IR and dataflow to pick fast settings automatically. The system classifies kernels as matmul, reduction, or pointwise. It then selects block sizes, warps, and stages without autotuning. Linear attention kernels now run 1.18x faster than Flash Linear Attention on H100. vLLM reduction kernels are 1.27x faster than vLLM’s own CUDA operators. Everyday kernels match or beat torch.compile’s max-autotune mode. The heuristics also seed autotuners to speed up searches. The analysis itself adds negligible compile time. The approach does not replace autotuning but adds a fast, high-quality default.
What changed
Helion relied solely on slow autotuning to pick kernel configurations, often taking 10-25 hours per kernel.
What it unlocks
Near-autotuned performance for Helion kernels without any autotuning time.
- 1.18x faster than Flash Linear Attention forward on H100
- 1.12x faster with backward on H100
- 2.13x faster than Helion’s previous no-autotune default on H100
- 1.27x faster than vLLM’s handwritten CUDA/C++ operators on H100
What you need to act on it
- Helion kernel with known extents at compile time
- Kernel must contain matmul, reduction, or pointwise operations
Sources