<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>kernel-optimization on tomrochette.com</title>
    <link>https://tomrochette.com/tags/kernel-optimization/</link>
    <description>Recent content in kernel-optimization on tomrochette.com</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <managingEditor>tom@tomrochette.com (Tom Rochette)</managingEditor>
    <webMaster>tom@tomrochette.com (Tom Rochette)</webMaster>
    <copyright>© 2026 Tom Rochette</copyright>
    <lastBuildDate>Fri, 23 Oct 2026 03:47:18 -0400</lastBuildDate><atom:link href="https://tomrochette.com/tags/kernel-optimization/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>AutoKernel</title>
      <link>https://tomrochette.com/agents/automated-research/autokernel/</link>
      <pubDate>Fri, 23 Oct 2026 00:00:00 +0000</pubDate>
      <author>tom@tomrochette.com (Tom Rochette)</author>
      <guid>https://tomrochette.com/agents/automated-research/autokernel/</guid>
      <category>research-note</category><category>agent-curated</category><category>fully-ai-generated</category><category>llm=glm-5.3-flash</category><category>automated-research</category><category>gpu</category><category>kernel-optimization</category><category>autoresearch</category>
      <description>&lt;p&gt;AutoKernel is RightNow AI&amp;rsquo;s MIT-licensed autoresearch loop for GPU kernels: point it at a PyTorch model with a coding agent, and it profiles, extracts, and iteratively optimizes Triton or CUDA C++ kernels against a fixed correctness-first benchmark, keeping only the changes that measure faster.&lt;/p&gt;&#xA;&lt;p&gt;&lt;strong&gt;AutoKernel carries the Karpathy keep-or-revert loop into the domain engineers feel in wall-clock time, and its judge is the strongest in the community tier: a five-stage correctness harness that must pass before any speedup counts, so a fast-but-wrong kernel reverts instead of shipping.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;What it is&#xA;    &lt;div id=&#34;what-it-is&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#what-it-is&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;A Python framework (created 2026-03-11, MIT) by RightNow AI, a YC-backed company that calls itself &amp;ldquo;the kernel lab behind instant AI&amp;rdquo;.&#xA;The pipeline is five scripts: &lt;code&gt;profile.py&lt;/code&gt; ranks a model&amp;rsquo;s kernels by GPU time, &lt;code&gt;extract.py&lt;/code&gt; generates starter Triton or CUDA C++ kernels for the bottlenecks, the coding agent (Claude, Codex, or any agent reading &lt;code&gt;program.md&lt;/code&gt;) edits &lt;code&gt;kernel.py&lt;/code&gt; one kernel at a time and runs &lt;code&gt;bench.py&lt;/code&gt;, &lt;code&gt;orchestrate.py&lt;/code&gt; schedules the next kernel by Amdahl&amp;rsquo;s law, and &lt;code&gt;verify.py&lt;/code&gt; replugs the winners and reports end-to-end speedup.&#xA;Each experiment takes about 90 seconds, roughly 320 overnight, and every result lands in a plain &lt;code&gt;results.tsv&lt;/code&gt; with throughput, latency, percent of peak, speedup, and a correctness verdict.&#xA;Nine kernel types ship as starters (matmul, softmax, layernorm, rmsnorm, flash attention, fused MLP, cross entropy, rotary embedding, reduce), and a KernelBench bridge scores against Stanford&amp;rsquo;s 250-plus-problem benchmark with the &lt;code&gt;fast_p&lt;/code&gt; metric, while &lt;code&gt;export_hf.py&lt;/code&gt; ships winners to the Hugging Face Kernels Hub.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Status&#xA;    &lt;div id=&#34;status&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#status&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Active: 1,603 stars, 163 forks, 16 open issues, created 2026-03-11, last pushed 2026-10-23, as of 2026-10-23.&#xA;There are no git tags or GitHub releases; the README&amp;rsquo;s own changelog runs v1.0.0 through v1.3.0 (the latest adding AMD ROCm support for MI300X-class GPUs and a batch of correctness fixes).&#xA;The launch thread reached 47 points and 10 comments on Hacker News on 2026-03-11, and the authors&amp;rsquo; paper (arXiv 2603.21331, March 2026) reports H100 results of 5.29x over PyTorch eager on RMSNorm and 2.82x on softmax, ahead of &lt;code&gt;torch.compile&lt;/code&gt; max-autotune on most tested configurations, as of 2026-10-23.&lt;/p&gt;&#xA;&lt;picture&gt;&#xA;  &lt;source media=&#34;(prefers-color-scheme: dark)&#34; srcset=&#34;https://api.star-history.com/chart?repos=RightNow-AI/autokernel&amp;type=date&amp;theme=dark&amp;legend=top-left&#34; /&gt;&#xA;  &lt;source media=&#34;(prefers-color-scheme: light)&#34; srcset=&#34;https://api.star-history.com/chart?repos=RightNow-AI/autokernel&amp;type=date&amp;theme=dark&amp;legend=top-left&#34; /&gt;&#xA;  &lt;img alt=&#34;Star History Chart&#34; src=&#34;https://api.star-history.com/chart?repos=RightNow-AI/autokernel&amp;type=date&amp;theme=dark&amp;legend=top-left&#34; /&gt;&#xA;&lt;/picture&gt;&#xA;&lt;p&gt;&lt;strong&gt;The skeptical reads are on the record and unanswered: launch-thread commenters asked why the paper never benchmarks against classical autotuning such as TVM&amp;rsquo;s Ansor, and one measured CUTLASS roughly 3x faster than AutoKernel&amp;rsquo;s result on 4k fp16 GEMM, while another pointed at DeepMind&amp;rsquo;s AlphaEvolve improving matrix-multiply kernels a generation earlier.&lt;/strong&gt;&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Strengths&#xA;    &lt;div id=&#34;strengths&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#strengths&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The correctness gate is the design&amp;rsquo;s core: smoke, shape-sweep, numerical-stability, determinism, and edge-case checks run before timing, so the loop cannot optimize into garbage.&lt;/li&gt;&#xA;&lt;li&gt;Amdahl&amp;rsquo;s law orchestration chases end-to-end impact rather than per-kernel glory, moving on when a kernel&amp;rsquo;s remaining share makes speedups irrelevant.&lt;/li&gt;&#xA;&lt;li&gt;Scope discipline keeps the loop inspectable: the agent touches one file, results live in a TSV a human can diff, and every experiment costs about 90 seconds.&lt;/li&gt;&#xA;&lt;li&gt;The KernelBench bridge and the Hugging Face Kernels export connect the loop to the field&amp;rsquo;s standard benchmark and to a one-line distribution path.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Cautions&#xA;    &lt;div id=&#34;cautions&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#cautions&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;The headline speedups are the authors&amp;rsquo; own, measured against PyTorch eager and &lt;code&gt;torch.compile&lt;/code&gt;, not against CUTLASS or Ansor-class autotuners, and the launch thread&amp;rsquo;s CUTLASS rebuttal has no README answer.&lt;/li&gt;&#xA;&lt;li&gt;RightNow AI is a vendor: the repository serves its kernel-lab story, enterprise optimization funnels through a contact form, and the bench defaults favor the hardware classes (H100, A100, RTX 4090) the company targets.&lt;/li&gt;&#xA;&lt;li&gt;The loop assumes an NVIDIA GPU (AMD ROCm since v1.3.0) plus a coding-agent subscription, so the entry cost is a hardware bill, not an API bill.&lt;/li&gt;&#xA;&lt;li&gt;Version traffic lives only in a README changelog with no tags or releases, so pinning a version means pinning a commit.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Pricing&#xA;    &lt;div id=&#34;pricing&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#pricing&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Free and open source under MIT; there is no paid tier, so pricing does not apply.&#xA;Costs are your own GPU time and your coding-agent subscription (Claude Code, Codex, or an equivalent).&#xA;RightNow AI sells enterprise kernel optimization through a contact form with no published prices, and its System Zero and RunInfra products are separate.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Compared to&#xA;    &lt;div id=&#34;compared-to&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#compared-to&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/karpathy-autoresearch/&#34; &gt;Karpathy Autoresearch&lt;/a&gt;: the founding keep-or-revert loop on a training script&amp;rsquo;s loss curve; AutoKernel ports the same loop to kernels and adds the correctness gate and Amdahl orchestration.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/autocontext/&#34; &gt;AutoContext&lt;/a&gt;: the other promote-only-if-it-wins harness; AutoContext replays matched candidate and incumbent trials before promoting context changes, AutoKernel trusts the single fixed bench on one file.&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/aide-ml/&#34; &gt;AIDE ML&lt;/a&gt;: the metric-judged tree search over whole ML solutions; AutoKernel keeps one lineage per kernel and spends its complexity budget on the correctness harness instead of search breadth.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Bottom line&#xA;    &lt;div id=&#34;bottom-line&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#bottom-line&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;p&gt;&lt;strong&gt;Recommended for ML systems engineers with idle NVIDIA GPUs who want measured kernel speedups with every experiment auditable in a diffable log.&lt;/strong&gt;&#xA;Not for production performance work that needs speedups validated against CUTLASS-class libraries, and not for teams without a coding-agent subscription to drive the loop.&lt;/p&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;Changes&#xA;    &lt;div id=&#34;changes&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#changes&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;2026-10-23 - Created.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;See also&#xA;    &lt;div id=&#34;see-also&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#see-also&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/karpathy-autoresearch/&#34; &gt;Karpathy Autoresearch&lt;/a&gt; - the founding loop AutoKernel ports to GPU kernels&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/autocontext/&#34; &gt;AutoContext&lt;/a&gt; - the stricter promotion-gate cousin for context and training changes&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/aide-ml/&#34; &gt;AIDE ML&lt;/a&gt; - the metric-judged tree-search ancestor&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://tomrochette.com/agents/automated-research/automated-research-feature-matrix/&#34; &gt;Automated Research Feature Matrix&lt;/a&gt; - the category comparison this note joins&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&#xA;&lt;h2 class=&#34;relative group&#34;&gt;References&#xA;    &lt;div id=&#34;references&#34; class=&#34;anchor&#34;&gt;&lt;/div&gt;&#xA;    &#xA;    &lt;span&#xA;        class=&#34;absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none&#34;&gt;&#xA;        &lt;a class=&#34;text-primary-300 dark:text-neutral-700 !no-underline&#34; href=&#34;#references&#34; aria-label=&#34;Anchor&#34;&gt;#&lt;/a&gt;&#xA;    &lt;/span&gt;&#xA;    &#xA;&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://github.com/RightNow-AI/autokernel&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=github.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://github.com/RightNow-AI/autokernel&lt;/a&gt; - README: the five-script pipeline, nine kernel types, KernelBench bridge, design choices, and the v1.0.0-to-v1.3.0 changelog (fetched 200 via the GitHub API, 2026-10-23)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://api.github.com/repos/RightNow-AI/autokernel&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=api.github.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://api.github.com/repos/RightNow-AI/autokernel&lt;/a&gt; - stars, forks, open issues, created and pushed dates, MIT license, and topics for the as-of status (fetched 200, 2026-10-23)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://arxiv.org/abs/2603.21331&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=arxiv.org&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://arxiv.org/abs/2603.21331&lt;/a&gt; - the authors&amp;rsquo; paper: five-stage correctness harness, 9,000 lines of Python, and the H100 claims (5.29x eager on RMSNorm, 2.82x on softmax) (fetched 200 via the arXiv API, 2026-10-23)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://hn.algolia.com/api/v1/search?query=autokernel&amp;amp;tags=story&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=hn.algolia.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://hn.algolia.com/api/v1/search?query=autokernel&amp;tags=story&lt;/a&gt; - the 47-point, 10-comment launch thread of 2026-03-11 and the small May paper listing (fetched 200, 2026-10-23)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://hn.algolia.com/api/v1/items/47332688&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=hn.algolia.com&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://hn.algolia.com/api/v1/items/47332688&lt;/a&gt; - the launch thread&amp;rsquo;s critical comments: the Ansor comparison gap, the CUTLASS 3x GEMM rebuttal, and the AlphaEvolve precedent (fetched 200, 2026-10-23)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.rightnowai.co/&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=www.rightnowai.co&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://www.rightnowai.co/&lt;/a&gt; - the company: &amp;ldquo;the kernel lab behind instant AI&amp;rdquo;, YC backing, and the System Zero product line (fetched 200, 2026-10-23)&lt;/li&gt;&#xA;&lt;li&gt;&lt;a href=&#34;https://www.rightnowai.co/forge&#34;  target=&#34;_blank&#34; rel=&#34;noreferrer&#34;&gt;&lt;img class=&#34;external-link-favicon&#34; src=&#34;https://www.google.com/s2/favicons?domain=www.rightnowai.co&amp;sz=128&#34; alt=&#34;&#34; width=&#34;16&#34; height=&#34;16&#34; loading=&#34;lazy&#34;&gt;https://www.rightnowai.co/forge&lt;/a&gt; - the enterprise offer, now a redirect into the contact funnel with no published prices (fetched 308 to 200, 2026-10-23)&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;</description>
      
    </item>
    
  </channel>
</rss>
