Autotuning defines a search space, runs candidates and chooses from measured results. Triton’s autotune API, for example, evaluates kernel configurations when specified key arguments change. Its documentation warns that testing configurations runs the kernel multiple times, and provides ways to reset or restore values that would otherwise be updated repeatedly (Triton, autotune). The measurement procedure is part of the optimization.
For example, test a few block sizes for a matrix operation at the input shapes your service actually receives. Check the output against a reference before keeping a faster candidate. Include warmup and repeated measurements, and distinguish time spent searching from time saved during later execution. Avoid evaluating one configuration with clean state and another with state left over from an earlier run.
Separating the older optimization loop from an AI-guided search, Anush Elangovan says, “Search space exploration has been around for a while. Now, what’s new is using AI and LLMs for search space exploration, right?” (episode 72, 24:05).
AMD’s Hyperloom description connects profiling and optimization across serving, frameworks and GPU kernels. Treat its reported results as results of that implementation, not a guarantee for yours. For builders, retain the baseline, tested configuration and correctness result. The AI hardware hub covers profiling; AI infrastructure covers the full serving workload.
Hear it from the guest
“Search space exploration has been around for a while. Now, what's new is using AI and LLMs for search space exploration, right?”
Quotes lightly edited to remove filler words.
Sources
- Triton, autotune — Primary source for the explanation and distinctions in this entry.
- Hyperloom description — Primary source for the explanation and distinctions in this entry.