Remix.run Logo
AutoKernel: Autoresearch for GPU Kernels(github.com)
40 points by frozenseven 7 hours ago | 9 comments
ademeure 4 hours ago | parent | next [-]

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.

easygenes 2 hours ago | parent | prev | next [-]

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

veselin 4 hours ago | parent | prev | next [-]

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.

LuxBennu an hour ago | parent [-]

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.

Jhsto 5 minutes ago | parent [-]

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?

aviinuo 3 hours ago | parent | prev | next [-]

Something seems off. For the 4kx4kx4k fp16 GEMM, cutlass is like 3x faster than this.

m3kw9 42 minutes ago | parent | prev | next [-]

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?

sspehr 5 hours ago | parent | prev | next [-]

Have you benchmarked this against autoscheduling like with TVMs Ansor?

NitpickLawyer 6 hours ago | parent | prev [-]

... 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...