All posts

The AI Spend Shift No One Planned For: Inference Just Beat Training

For the past five years, the big AI cost story has been training. Billion-dollar runs, massive GPU clusters, the race for frontier model weights. That…

A single illuminated server rack standing out in a vast, near-dark data center

For the past five years, the big AI cost story has been training. Billion-dollar runs, massive GPU clusters, the race for frontier model weights. That story isn't going away. But something crossed a threshold this month that should change how you think about your infrastructure budget.

According to Gartner's August 2026 forecast, inference spending ($23.3B) will exceed training spending ($19B) for the first time ever this year. Total AI-optimized IaaS is projected at $42.3B in 2026, up 96% year-over-year. By 2027, inference climbs to 59% of that pool, with total spend reaching $66B.

This is the first year inference won. And the reasons why tell you something important about where your costs are heading.

The Training-to-Inference Shift Is Real

It's not surprising in hindsight. The model frontier advances fast enough that most teams aren't training from scratch anymore. They're deploying: RAG pipelines, fine-tuned checkpoints, agent loops, production APIs. The expensive part has shifted from building to running.

Gartner frames it as enterprise AI maturing. Teams have moved past building and training to running models at scale. That tracks with what I see. The conversations with engineering teams have gone from "how do we train this?" to "why is our monthly inference bill 4x higher than we projected?"

Agentic AI Is the Real Accelerant

Here's the part that should concern you: this shift is about to accelerate, and the driver is agentic AI.

Gartner put out a second report on August 17 predicting that inference costs per agentic workflow will increase more than fivefold by 2028. The reason is architectural, not just scale.

Standard chatbot exchange: one prompt in, one response out. A typical agentic flow: 10-30 LLM calls, each one re-sending the full accumulated context from previous steps. The token bill compounds with every action the agent takes. Research on deployed agent systems puts consumption at 5-30x more tokens per task than standard chat. Some multi-step coding agents have hit 1000x versus a simple single-turn query.

I've seen this firsthand. The first time I ran a five-step research-and-write agent against a production model, the cost for one run was roughly what I'd have paid for 80 regular chat queries. The steps weren't even complex. Context accumulation is brutal, and most agent frameworks don't help you here at all.

GPU Prices Aren't Going Down

Meanwhile, the compute side isn't giving you relief. H100 GPUs that were declining in price through late 2025 reversed course. One-year lease contracts rose roughly 40% over five months into early 2026. HBM4 memory supply constraints (Samsung, SK Hynix, and Micron have all shifted production toward High Bandwidth Memory) keep H200 and Blackwell pricing elevated.

The spot market looks better on paper: H100 80GB runs as low as $1.38/GPU-hour on boutique cloud marketplaces. Azure or AWS on-demand pricing goes up to $12-13/GPU-hour for the same hardware. If you're running serious inference workloads on hyperscaler on-demand capacity, you're paying 8-9x more than necessary for identical silicon. Where you buy matters as much as what you buy.

What This Means If You're Building Now

The shift from training-dominated to inference-dominated spend changes where your architectural attention should go.

Context window hygiene matters more than ever. In agentic loops, every tool call that passes the entire conversation history back into the prompt is expensive. You need to decide what context actually needs to persist and what can be summarized, truncated, or dropped. This is grunt work, but it correlates directly to cost.

Prompt caching is not optional. For any agent with a large, repeated system prompt or tool schema, prompt caching cuts 50-90% of the cost on those re-sent tokens. Anthropic's caching on Sonnet 5 writes at $3.75/MTok and reads at $0.30/MTok. If you're not using it, you're paying full price to resend the same 10K-token system prompt on every single step.

Model routing is your cheapest lever. Not every step in an agentic workflow needs the frontier model. Routing classification steps, simple parsing tasks, or intermediate reasoning to a cheaper model (Haiku 4.5 at roughly 1/10th the cost of Sonnet 5) while reserving the frontier for hard calls cuts bills substantially without noticeable quality loss for most applications.

I haven't fully stress-tested routing across a diverse production workload at scale, so I won't pretend it's a solved problem. The failure mode is usually silent: you route a step to the cheaper model, quality degrades somewhere in the chain, and you don't catch it until a user complains. You need evals on every routing decision point, not just the outputs.

Buy compute right. If you're running meaningful inference volume, spot and reserved marketplace pricing on Lambda Labs, CoreWeave, or Vast.ai versus hyperscaler on-demand is not a rounding error. On equivalent H100 capacity, the difference is 4-8x. That's not a discount. That's the difference between a unit-economics story that works and one that doesn't.

The Trend Runs Harder From Here

2026 is the first year inference beat training in cloud spend. 2027 and 2028 are when it compounds. Agents get more autonomous, they get deployed in more workflows, and each workflow runs more steps than anyone planned for.

The teams that build good inference hygiene now (context pruning, caching, model routing, compute sourcing) will have a structural cost advantage as agentic workloads scale. The teams that don't will get their first unpleasant surprise on next month's cloud bill, and every month after that.