AutoKernel: Autoresearch for GPU Kernels
44 points by frozenseven 14 hours ago | 10 comments

ademeure 11 hours ago
This is very cool!

I've been working on something somewhat similar over the last few weeks, but trying to be much more general and arguably over-engineered! I like the scope of this project, keeping it limited to Triton and specific kinds of kernels makes it quite simple and efficient.

I'm confused by the progress graph though; it looks like it's benchmarking a 4096x4096x4096 fp16 matmul rather than a full repo, and it claims a 1.31x improvement vs cuBLAS... while running at 187 TFLOPS which is 18.9% of peak utilization? cuBLAS definitely gets much closer to peak than that - most likely it's limited by CPU overhead or something else? Benchmarking is hard!

Either way I'm excited to see other people working on this, I think it's an extremely promising area over the next 6 months.

reply
veselin 12 hours ago
I guess we will have a lot more benefits if we can get this to work on something like llama.cpp - since it really has a lot of kernels for different quantizations, a lot of home users, high hardware diversity - so it is a likely place with highest bang for the buck.

I guess they can be a contributor there.

reply
LuxBennu 8 hours ago
This is the right call. llama.cpp has dozens of hand-tuned CUDA kernels across Q4_K_M, Q5_K_S, Q8_0 and other quant formats, each targeting different hardware profiles. An autoresearch approach that could optimize these per-GPU would be huge — right now performance varies wildly between, say, an RTX 3090 and a 5070 Ti on the same quant format because the kernels are tuned for specific architectures. The hardware diversity in the llama.cpp user base is exactly where automated kernel search has the most to gain.
reply
Jhsto 7 hours ago
If I'd like to benchmark a new language / compile backend for LLM inference, what would be some good projects to try? If I'd start from tinygpt, what would make sense as the next step?
reply
jacquesm 5 hours ago
You're talking to a bot.
reply
easygenes 9 hours ago
Cool! I’ve been working on adding the same thing for Apple Silicon within my general “make autoresearch a serious tool” project here: https://github.com/Entrpi/autoresearch-everywhere
reply
aviinuo 10 hours ago
Something seems off. For the 4kx4kx4k fp16 GEMM, cutlass is like 3x faster than this.
reply
sspehr 13 hours ago
Have you benchmarked this against autoscheduling like with TVMs Ansor?
reply
NitpickLawyer 13 hours ago
... and so it begins.

For a bit of context, goog already did something like this two generations of models ago, as announced in this blog post[1] from May '25:

> AlphaEvolve is accelerating AI performance and research velocity. By finding smarter ways to divide a large matrix multiplication operation into more manageable subproblems, it sped up this vital kernel in Gemini’s architecture by 23%, leading to a 1% reduction in Gemini's training time.

We are now seeing the same thing "at home", for any model. And with how RL heavy the new training runs have become, inference speedups will directly translate in faster training as well.

[1] - https://deepmind.google/blog/alphaevolve-a-gemini-powered-co...

reply
m3kw9 8 hours ago
when will open source code bases like Swift, Rust etc put these on their routines to squeeze out the last bit of juice from its stone?
reply
zacklee1988 13 hours ago
[dead]
reply