The engineering behind inference.Contact ↗
Batch & Release/Inference

PyTorch Helion Autotunes Kernel Tiles and PTXAS Controls Together

PyTorch's Helion compiler now searches kernel tile configurations and PTXAS advanced controls jointly using NVIDIA CompileIQ, avoiding local optima from sequential tuning. A booster pack ships 24 pre-tuned ACFs for B200.

PyTorch Helion Autotunes Kernel Tiles and PTXAS Controls Together
Image: PyTorch ↗

PyTorch's Helion compiler now performs joint autotuning of kernel tile configurations and PTXAS advanced controls using NVIDIA CompileIQ. The search covers thousands of Triton configurations per kernel, and it can also vary the PTXAS controls that govern register allocation and instruction scheduling. Those controls default to CUDA defaults unless overridden, and Helion applies them through binary artifacts called Advanced Control Files (ACF) at compile time.

Joint Search and ACF Catalogs

Helion lets users pin a specific ACF via the advanced_controls_file parameter in helion.Config, or search a list of ACFs alongside kernel configs using the autotune_search_acf argument. The autotuner automatically adds an empty string to the ACF list to represent default PTXAS settings. Searching both layers together avoids the sub-optimal local optima that come from tuning the kernel first and then the compiler controls sequentially. Each additional ACF multiplies the compile-and-measure trials, so autotuning time grows with the catalog size.

CompileIQ treats PTXAS control selection as a hyperparameter optimization problem and uses evolutionary search. It publishes pre-tuned ACF catalogs called Booster Packs on its GitHub releases. The current helion-booster-pack contains 24 ACFs tuned for CUDA 13.4 and targeting B200 GPUs.

Pretuned Kernels and a Case Study

Helion ships pretuned kernels in the pretuned_kernels/ directory, covering 27 kernels including FP8, NVFP4, RMSNorm, and RoPE. Each pretuned kernel includes ahead-of-time heuristic files per architecture, such as _helion_aot_rms_norm_cuda_sm90.py for H100. Baseline kernels have offline autotuned configurations baked in, so they deliver tuned performance without runtime search.

A sample case study optimized the nvfp4_gemv_fp4in_kernel using CompileIQ on a GB200 system with sm_100, Blackwell. The benchmark environment used PTXAS 13.3.73 from CUDA 13.3, CompileIQ 1.0.3, Triton 3.8.0, and a Helion source install. Timing used triton.testing.do_bench with the GPU clock locked and Welch's t-test with p < 0.2 for statistical validation. The AOT config for shape N=8192, K=28672 is block_sizes [4,256], num_warps 2, num_stages 3, and range_multi_buffers [None, True]. CompileIQ's objective function runs the kernel once for correctness, then benchmarks passing configurations.

For inference engineers, the practical takeaway is that Helion's joint search removes a tuning step that could otherwise land in a local optimum. The booster pack gives a starting catalog of ACFs for B200, and the pretuned kernels offer immediate performance without runtime search. The cost is autotuning time, which scales with the number of ACFs in the search list.

Sources & references

PyTorch: One Search, Two Layers: Compiler Controls Inside PyTorch Helion using NVIDIA CompileIQ ↗Source consulted: 2026-10-22

Privacy choices

We remember your answer in this browser for 180 days. Come back here whenever you want to change it.

EssentialSaves your answer in this browser. No cookies, no third parties.Always active