Gemma 4’s 2 GB Mac Story Is Really SSD Streaming
Gemma 4 26B-A4B does not, on the best citable evidence here, run as a true all-in-RAM 2 GB model on…
On KernelBench’s hardest Level‑3 tasks, the authors claim CUDA Agent beats torch.compile’s speed in ~92% of cases and outperforms Claude…

On KernelBench’s hardest Level‑3 tasks, the authors claim CUDA Agent beats torch.compile’s speed in ~92% of cases and outperforms Claude Opus 4.5 and Gemini 3 Pro by about 40 percentage points on the “faster than compile” rate.
That’s not “LLM writes cute CUDA snippets.” That’s “an RL agent, with hardware in the loop, consistently out‑optimizes both compiler heuristics and frontier general models on real kernels.”
The argument here is simple: CUDA Agent is not yet something you should trust in production. But it is the benchmark‑shaped warning shot you and your infra team should try to reproduce now, because if these numbers hold up, the right way to optimize kernels in two years won’t be “tune flags” or “prompt Opus”, it’ll be “spin up a specialist RL agent.”
Let’s ground it in one scenario.
You have a hot fused op that eats 20% of your training step time. Today your options look like:
torch.compile knobs and pray Inductor finds a better schedule CUDA Agent proposes a fourth path: an agentic RL loop that lives inside a CUDA dev environment, generates kernels, compiles them, runs them on a real GPU, checks correctness, profiles speed, and then updates a policy model to do better next time.
The key difference from compilers and one‑shot LLMs is that the agent:
In other words, compilers expose a fixed optimization brain; general LLMs bring a big but clueless brain; CUDA Agent is a specialist brain that learned on the machine itself.
That’s why this isn’t just another benchmark flex. It’s a blueprint for how we’ll optimize everything performance‑critical if it works.
The authors evaluate CUDA Agent on KernelBench, a curated set of CUDA kernel tasks with three difficulty levels.
Their headline numbers:
On the level splits, they report:
For proprietary models, the paper says strong general LLMs (Claude Opus 4.5 and Gemini 3 Pro) hit only ~66-70% faster‑than‑compile rates and ~1.42-1.46× speedups, versus CUDA Agent’s 96.8% and 2.11×.
So how do they get these numbers?
Roughly:
So the CUDA Agent story is not “LLM learned CUDA from GitHub.” It’s “RL trained on 6,000 execution‑filtered tasks, with the GPU as the reward oracle.”
And that’s a big conceptual shift: instead of optimizing code by hand, you’re optimizing a code generator with the hardware in the loop.
If you’ve read Are Large Language Models Reliable for Business Use?, you already know the pattern: glossy headline numbers, messy reality once you leave the lab.
CUDA Agent has all the right reproducibility signals on paper:
But these are still author‑reported experiments. No independent lab has yet re‑run the whole thing and confirmed “yep, 2.11× on our machines too.”
For something this consequential, that gap matters:
We’ve written about Model Collapse: Can AI Eat Itself?, how models feed on their own outputs and drift. CUDA Agent is a different version of that risk: your infra might start to trust an opaque optimization brain trained on a narrow diet of synthetic tasks.
If you’re going to deploy something like this, you don’t accept “trust me bro + arXiv plots.” You run your own silicon‑level due diligence.


So what do you do with CUDA Agent today?
Treat it as a priority test case, not a turnkey tool.
You don’t need to reproduce the entire paper to get value. You need a tight experiment that answers one question for your stack:
“On our hardware, for our style of ops, does this agentic RL loop actually beat torch.compile and AI-generated CUDA code by enough to matter?”
Here’s a low‑friction plan.
Choose a configuration you care about and freeze it:
torch.compile settings you consider “best effort”Document this once. All comparisons, CUDA Agent vs torch.compile vs proprietary LLMs, must use this exact stack.
Pull from:
Then:
You’re not trying to hit 98.8% on the nose. You’re looking for shape:
Is it still consistently faster than torch.compile? Or does the magic evaporate once it leaves the authors’ devbox?
KernelBench is good, but you care about your ops.
Pick one or two real bottlenecks:
Run three baselines:
torch.compile best effort Then run CUDA Agent on the same tasks and compare.
This gives you the number that actually matters to the business: “We can shave X% off end‑to‑end iteration time if we bolt this agent into our pipeline.”
If the numbers look good, don’t jump straight to “let’s refactor everything to RL agents.”
Start by wrapping CUDA Agent as an offline suggestion engine:
In other words: treat CUDA Agent as a super‑powered contractor, not as the chief architect of your GPU stack.
If it keeps delivering, then you can talk about deeper integration, e.g., plugging an agentic loop into your compiler pipeline or build system.
The meta‑point: CUDA Agent is the first convincing glimpse of a world where optimization is no longer a compiler pass or a one‑shot model call, but an ongoing conversation between an agent and your hardware.
That’s too important to ignore, and too early to blindly trust.
The next year of CUDA won’t be decided by who has the cleverest hand‑written kernel; it’ll be decided by who figures out how to industrialize this kind of agentic loop, or proves it doesn’t generalize. Either way, you don’t want to be watching from the sidelines.
Gemma 4 26B-A4B does not, on the best citable evidence here, run as a true all-in-RAM 2 GB model on…
Gemma 4 26B-A4B can run with about a 2 GB in-process memory footprint on an Apple Silicon Mac in TurboFieldfare,…
Claude Opus 5 is a real coding upgrade over Claude Opus 4.8. The case is strongest on coding-heavy evaluations released…