<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Llm on Mauro Medda</title><link>https://mauro.medda.xyz/tags/llm/</link><description>Recent content in Llm on Mauro Medda</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><managingEditor>mauro@medda.xyz (Mauro Medda)</managingEditor><webMaster>mauro@medda.xyz (Mauro Medda)</webMaster><copyright>Mauro Medda</copyright><lastBuildDate>Thu, 02 Jul 2026 13:34:27 +0200</lastBuildDate><atom:link href="https://mauro.medda.xyz/tags/llm/index.xml" rel="self" type="application/rss+xml"/><item><title>Right Model, Right Task, Right Infrastructure: The Watts-per-Token Case</title><link>https://mauro.medda.xyz/posts/right-model-right-task-right-infrastructure/</link><pubDate>Thu, 02 Jul 2026 13:34:27 +0200</pubDate><author>mauro@medda.xyz (Mauro Medda)</author><guid>https://mauro.medda.xyz/posts/right-model-right-task-right-infrastructure/</guid><description>Open-weight models are beating frontier baselines on long-horizon agentic benchmarks. The number that decides whether agents survive scale isn&amp;rsquo;t cost per token, it&amp;rsquo;s watts per token. And going local makes security your problem.</description><content:encoded><![CDATA[<p>The future of AI is small, local, and efficient. And the data is starting to prove it.</p>
<p>On long-horizon agentic benchmarks, open-weight models with the right harness and task-specific tuning are posting <strong>20+ point gains</strong> over frontier baselines. Not a marginal edge. Twenty-plus points, on the work that actually runs in production: agents calling tools, orchestrating workflows, operating autonomously for hours.</p>
<p>The number is concrete, not hand-waved. WebRL, a curriculum reinforcement learning framework out of Tsinghua and Zhipu, took the open GLM-4-9B from <strong>6.1% to 43.0%</strong> on WebArena-Lite, clearing GPT-4-Turbo at <strong>17.6%</strong> and GPT-4o at <strong>13.9%</strong>. Same benchmark. A model a fraction of the size. And it wins.</p>
<h2 id="where-frontier-models-still-win-and-why-that-isnt-the-point">Where frontier models still win (and why that isn&rsquo;t the point)</h2>
<p>Frontier models are still superior for narrow, high-complexity reasoning. Legal analysis. Deep research. Specialist inference. The hard, single-shot problems where one brilliant answer is worth almost any price. Nobody serious is disputing that.</p>
<p>Paolino Madotto nailed this in Agenda Digitale: the value of AI is shifting from the model itself to the system that orchestrates it. In a well-designed system, the frontier model is not the engine running every token of an hour-long agent loop. It&rsquo;s the premium specialist the orchestrator calls, selectively, when a problem genuinely demands it.</p>
<p>That&rsquo;s frontier&rsquo;s rightful place: the expensive expert on retainer, not the machine you leave running all day.</p>
<p>And notice where the leverage actually sits. Harness engineering alone (the loop, the tools, the retry logic, the verification wrapped around a fixed model) can buy <strong>10-15 points</strong> on some agentic benchmarks without touching the weights. The scaffold is doing the work. Which is exactly why the model you drop into that scaffold can be smaller, cheaper, and yours.</p>
<h2 id="the-metric-almost-nobody-is-measuring">The metric almost nobody is measuring</h2>
<p>Everyone quotes cost per token. Almost nobody making the actual buy-or-build decision measures <em>watts per token</em>: energy per token. That&rsquo;s the number I keep coming back to, because it&rsquo;s the one that decides whether an agentic system survives contact with scale.</p>
<p>The researchers are starting to catch up. Stanford&rsquo;s Hazy Research group calls it <em>intelligence per watt</em>, and their numbers point the same way: IPW improved <strong>5.3x</strong> in two years (3.1x from better small models, 1.7x from hardware), and local models already handle <strong>88.7%</strong> of single-turn chat and reasoning queries. The trend line isn&rsquo;t subtle.</p>
<p>Here&rsquo;s the math that matters.</p>
<p>A long-running agent doesn&rsquo;t emit a few thousand tokens. It loops. It retries. It calls tools and reasons over the results for hours. It burns <em>millions</em> of tokens per task, per run, per user. Multiply watts per token by that volume, across a fleet of agents in production, and energy stops being a footnote on the invoice. It becomes the business case. Or the reason the business case collapses.</p>
<p>Frontier APIs were priced for the era of the single clever answer. Agentic workloads live in a different regime entirely: enormous token volume, most of it routine orchestration that doesn&rsquo;t need a frontier brain. Paying frontier rates for that volume, in dollars <em>and</em> in watts, isn&rsquo;t a strategy. It&rsquo;s a leak.</p>
<h2 id="why-the-token-economics-dont-hold">Why the token economics don&rsquo;t hold</h2>
<p>Current token economics break at agentic scale. Not because API prices are high today, but because prices and physics obey different laws. Prices can drop: they&rsquo;re a margin decision. Joules per token have a floor, and that floor is set by model size. Every token a trillion-parameter model generates costs far more energy than the same token from a 9B model, no matter whose datacenter runs it.</p>
<p>And let&rsquo;s be honest about the fine print: the watts-per-token win doesn&rsquo;t come from the server&rsquo;s zip code. A local GPU idling at 30% utilization can burn more energy per token than a hyperscaler&rsquo;s batched fleet. The win comes from right-sizing the model to the task and keeping the hardware busy. What local adds is the thing no API can sell you: complete data sovereignty, not a single byte leaving the building.</p>
<p>Right model. Right task. Right infrastructure.</p>
<p>That&rsquo;s not a compromise. That&rsquo;s good engineering.</p>
<h2 id="where-this-leaves-security-and-where-hikmaai-comes-in">Where this leaves security (and where HikmaAI comes in)</h2>
<p>Owning the full stack means owning the full stack. That includes the security layer. Here&rsquo;s the part too many &ldquo;go local&rdquo; arguments skip.</p>
<p>The moment you bring models in-house and let agents operate autonomously, you bring the <em>entire</em> security and governance burden in-house with them. A frontier API at least ships with the provider&rsquo;s guardrails baked in. An open-weight model you run yourself has none of that by default. And an agent that calls tools and acts for hours is a far larger attack surface than a single chat completion. Prompt injection, goal hijacking, PII leakage, tool misuse: these scale with autonomy. That&rsquo;s the hidden tax on the watts you just saved.</p>
<p>Going local doesn&rsquo;t shrink the need for a security platform. It multiplies it. That&rsquo;s the problem we built HikmaAI for.</p>
<p>HikmaAI is platform-agnostic by design. It scans and evaluates your models <em>and</em> your agents (Ollama, OpenAI, or your own REST API; proprietary or open-weight; cloud, on-prem, or hybrid) for security vulnerabilities, prompt injection, toxicity, PII exposure, and compliance gaps, with adaptive red teaming and guardrails for the systems you now own end to end.</p>
<p>And it does it without breaking the promise that made you go local in the first place: your data stays on European infrastructure, no source code leaves your environment, nothing crosses a border it shouldn&rsquo;t. The same sovereignty argument that drives the move to local models is the argument for governing them with a platform built around sovereignty from the ground up.</p>
<p>Small, local, efficient, <em>and</em> secured. That&rsquo;s the full stack.</p>
<p>Right model. Right task. Right infrastructure. Right guardrails.</p>
<p>— Mauro</p>
<hr>
<p><strong>References:</strong></p>
<ul>
<li>Paolino Madotto, &ldquo;Il vero valore dell&rsquo;AI non è più nel modello, ma nel sistema che lo guida,&rdquo; Agenda Digitale.</li>
<li>Qi et al., &ldquo;WebRL: Training LLM Web Agents via Self-Evolving Online Curriculum Reinforcement Learning,&rdquo; <a href="https://arxiv.org/abs/2411.02337">arXiv:2411.02337</a>.</li>
<li>Saad-Falcon, Narayan et al., &ldquo;Intelligence Per Watt: A Study of Local Intelligence Efficiency,&rdquo; Stanford Hazy Research, <a href="https://hazyresearch.stanford.edu/blog/2025-11-11-ipw">blog</a> / <a href="https://arxiv.org/abs/2511.07885">arXiv:2511.07885</a>.</li>
</ul>
]]></content:encoded></item></channel></rss>