← omkarray.com
Field guide · Inference · October 2026

The craft of making models run

Inference is everything that happens after a model is trained: putting it on GPUs and making it answer fast, reliably and cheaply. In March 2026, Baseten sat down with Philip Kiely, author of the book Inference Engineering, and Charlie O'Neill for 28 minutes on why this has become one of the most valuable skills in AI and how to learn it. This guide turns that conversation into plain words, ten diagrams and two calculators you can play with.

01Why these 28 minutes are worth itStart here

Inference used to be the small step after training. It is now a stack of dozens of technologies that every AI product runs on, and almost nobody was trained for it.

The conversation is How to become an inference engineer, published by Baseten on 26 March 2026. Philip Kiely has spent a little over four years at Baseten, a company that runs models for other companies, and wrote Inference Engineering from what he learned there. Charlie O'Neill works on post-training at Baseten. Between them they cover what inference is, why demand for it multiplies, why every research breakthrough makes it harder, and a bet that a world of open, specialized models will need far more people who can run them.

The thread through all of it is Philip's claim that the field is early enough for newcomers to matter: "You don't have to have a PhD to become an inference engineer." This guide is for two readers. People who want to build inference systems, and people who buy them and need to know what to ask. The second group includes most product managers.

Inference

Running a trained model to get an answer. Every time an AI product responds to someone, that is inference.

GPU

The chip models run on. Its memory size and memory speed set most of the limits in this guide.

Inference engine

The software that runs a model on GPUs and serves many users at once, such as vLLM, SGLang or TensorRT-LLM.

KV cache

The notes a model keeps for every token it has read, so it doesn't redo work. It grows with the conversation.

Prefill and decode

The two phases of every answer: reading the prompt all at once, then writing the reply one token at a time.

Rollout

One attempt a model makes at a practice task during reinforcement learning, so it can be scored.

02What inference isThe life of one request

In Philip's telling, inference is four steps: pick a model, get a GPU, load the model onto it, and make it run fast. The first three are easy. The fourth is the job. "Fast" has to hold for thousands of people at once, with prompts of every length, at a price the business can afford, without dropping a single request when a machine fails.

Exhibit 1. One request, start to finish
Top: the path a prompt takes. Bottom: what the person waiting actually feels. Every layer in between is a place to save time or money, or lose it.
The three numbers: time to first token and tokens per second are what users feel. Cost per million tokens is what the business feels. All three move together: anything that makes the GPU produce more tokens per hour lowers the cost. For the memory side of this math on one real model, see the Kimi K3 field guide.
03How it got hardFrom one small GPU to many machines

When Philip joined Baseten, inference was not easy, but much easier. A typical job was a classic machine-learning model or an early language model like BERT, with a few hundred million parameters, running a low-volume internal task on a CPU or a small GPU. Then speech models like Whisper needed a whole GPU each. Then language and image models grew from ten billion parameters to a hundred billion to more than a trillion.

Exhibit 2. Model size, 2018 to 2026, and what it took to hold the weights
Parameters on a log scale: each gridline is ten times the one below. In eight years, open models went from about a hundred million parameters to almost three trillion.
Hardware notes are for the weights only, before any memory for conversations. Llama 2 70B at 16 bits is about 140 GB. DeepSeek-V3 ships in 8-bit, about 671 GB. Kimi K3's figure is from Baseten's whiteboard, covered in the K3 guide.

As models grew, the software around them grew too. Philip describes a stack that runs from CUDA, the layer where GPU programs are written, up through the inference engine and the serving orchestrator, plus the infrastructure work of keeping thousands of expensive GPUs running and never dropping a valuable request. It went from something a small team could handle to something mission-critical for many large companies, built on dozens of technologies across several engineering specialties.

04The map: one stack, eight chaptersHow the book is organized

Philip says the book is first of all a map, because inference is not one technology but many layers of options and trade-offs. It runs 256 pages, with eight chapters and two appendices (a glossary and a reading list), and the PDF is free. Its chapters are Inference, Prerequisites, Architecture, Hardware, Software, Techniques, Modalities and Production. Laid out as a stack, they look like this:

Exhibit 3. The inference stack, with the book's chapters attached
A request travels down the stack and tokens travel back up. The model on the left is the workload every layer is tuned for. The techniques on the right cut across layers: compressing weights to fewer bits, for example, changes the model, the kernels and how much fits on the hardware all at once.
The chapter titles are the book's; the arrangement is mine. The book's chapter on software covers both the engines and the serving layer, so I've tagged both with chapter 4.
05Why demand multipliesCharlie's list

Most people assume demand for inference grows with the number of users. Charlie's point is that it multiplies across several factors at once.

FactorWhy it multiplies
More modelsEvery company that fine-tunes or trains its own model now has to serve it.
Bigger modelsEach copy needs more GPUs.
AgentsOne request starts many agents that call tools, search the web and start their own sub-agents.
Parallel thinkingReasoning models can run several lines of thought at once for one answer. Charlie notes some frontier research modes are believed to work this way.
Longer contextWhen 32,000-token windows arrived they felt like plenty. Now a million is common and people want far more.
Tool outputSearch results and files get dumped straight into the context.
Cheaper callsWhen each call gets cheaper, people don't use the same amount. They use more.
Exhibit 4. Calculator: how many tokens one agent task reads
Move the sliders. Each agent step re-reads its whole context before writing a short reply, so tokens read grow with agents × steps × context. Cache reuse decides how much of that is computed fresh. The chat baseline assumes one answer that reads 2,000 tokens.
An illustration, not a measurement. Real agents vary a lot. The point is the shape: a few multipliers turn a 2,000-token chat into millions of tokens per task, which is why cache reuse matters so much for agent workloads.
06Research ships in daysThe sparse attention example

In most industries, research takes months, years or decades to reach production at scale. In inference, Philip says, a new paper can be running in production within a couple of days. That means taking research code, which is rarely written to stay up 99.999% of the time (about five minutes of downtime a year), and making it bulletproof very quickly.

The example they discuss is DeepSeek's sparse attention. Normally each new token looks back at every earlier token. DeepSeek adds a small, fast indexer that scores the earlier tokens, and the model then looks back only at the top 2,048. On long inputs that saves a great deal of work. On short ones it saves nothing: if a request has fewer than 2,048 tokens, the top 2,048 is all of them, and you have still paid for the indexer. Philip says Baseten sometimes switches the feature off for shorter requests, because it is less efficient at some lengths.

Exhibit 5. When sparse attention pays, and when it doesn't
Work to produce one new token as the context grows (both axes on a log scale). Full attention grows with every token. Sparse attention pays a small indexer cost on every token but caps the main work at 2,048. Below the crossover, sparse costs more.
Shape only. I assume the indexer costs a tenth of full attention per token; the real ratio depends on kernels. The 2,048 figure is from vLLM's write-up of DeepSeek-V3.2-Exp. The lesson holds either way: a clever architecture is a bet on the shape of traffic, and part of the job is knowing where the bet pays.
07Reading and writing are different jobsDisaggregation and memory tiers

Every answer has two phases. Reading the prompt (prefill) happens all at once and is limited by how fast the chip does math. Writing the reply (decode) happens one token at a time and is limited by how fast the chip can fetch from memory. Philip's framing: they run together only because both are needed, but they are completely different shapes of work. Charlie adds that the balance between them has already shifted and will keep shifting as agent workloads grow.

The response is to separate them, which is called disaggregation. Philip says Baseten was one of the first adopters of NVIDIA's Dynamo toolkit, which can split the two phases onto different GPUs and move the KV cache between levels of memory.

Exhibit 6. Split the phases, then give the memory somewhere to go
Left: reading and writing on separate GPU pools, with the conversation's KV cache handed between them. Right: the tiers that cache can live in, from fast and small to slow and huge.
Why tiers matter for agents: an agent may pause for seconds or minutes while a tool runs. Keeping its memory on the GPU wastes the most expensive space there is; throwing it away means reading everything again. Moving it down a tier and back is the middle path. NVIDIA's Dynamo documentation describes offloading to CPU memory, local SSD and network storage.
08Traffic decides speedCaching and guessing ahead

The same system can be fast or slow depending on what people send it. The video gives two examples.

Coding agents are cache-friendly. Philip says some of the best results on Baseten's model APIs come from coding-agent users such as OpenCode, because those agents resend mostly the same context request after request. The KV cache from the last request can be reused, and performance jumps.

Guessing ahead can backfire. Speculative decoding uses a small drafter model to guess the next few tokens, and the big model checks all the guesses in one step. If the drafter was trained only on code and someone asks for a poem, most guesses are wrong. You still pay to draft them, so the answer comes out slower than if you hadn't guessed at all. Try it:

Exhibit 7. Calculator: when guessing ahead pays
The curve shows speed against the share of guesses the big model accepts, for your draft length and drafter cost. Below the dashed line, speculation makes things slower. Use the presets to compare code with a poem.
The formula is from Leviathan, Kalman and Matias, Fast Inference from Transformers via Speculative Decoding. Tokens kept per step = (1 − ak+1) ÷ (1 − a), where a is the share accepted and k the tokens guessed. Speed = tokens kept ÷ (1 + k × drafter cost). It assumes checking k guesses costs about the same as one normal step, which is roughly true when writing is limited by memory speed.

Philip's conclusion is that inference systems increasingly have to adjust in real time to whatever traffic is arriving, instead of being configured once and left alone. He expects the field to get harder and more valuable, not simpler.

09Training now runs on inferenceWhy researchers care

Charlie makes a point that is easy to miss: inference engineering isn't only for inference engineers. Post-training used to mean mostly supervised fine-tuning: show the model good examples and let it imitate them. That needs no inference at all. Reinforcement learning changed this. The model has to produce its own attempts, which get scored, and those attempts must come from the current version of the model (this is what "on-policy" means). So the model being trained also has to be served, fast, at large scale.

Exhibit 8. The reinforcement learning loop has inference inside it
Every lap of the loop starts with the newest model writing thousands of fresh attempts. Slow inference means a slow loop, and a slow loop means slow research.

One consequence is that training and serving are converging. Some companies now pitch both on the same kernels and settings, so a model behaves in production exactly as it did in training. Applied Compute calls this "zero train-to-deployment mismatch".

10Open models and "Big Token"Thresholds and specialization

"Big Token" is their nickname for one possible version of the industry: two or three companies make the models, and everyone else rents intelligence from them one token at a time. Philip thinks that version is fading, and his argument rests on thresholds. Each task has a bar: tab completion, then code generation, then agentic coding, then PR review. Once a model clears a task's bar, it doesn't need to get smarter to do that task. Closed models clear each bar first, and open models clear the same bar a few months later. From then on, the task can move to a faster, cheaper, more reliable open model.

Exhibit 9. Same bars, a few months apart
Capability over time for closed and open models (schematic). Dashed lines are task thresholds. Blue dots: the closed frontier clears the bar. Gold dots: open models clear it. Gold bands mark the months when only closed models can do the task.
How big is the gap? The chart is a schematic. For one measured case, Epoch AI reported in October 2026 that open-weight models trail the closed frontier by about 6 to 7 months on cyber capabilities.

Charlie's counterpoint, and how he resolves it. Demand for intelligence is fairly inelastic: people want the smartest model available and will make their workflows more complex to use it. And a general open model can do only a subset of what the best closed model can. But he argues that's the wrong comparison, because open models can be specialized. Post-trained on one workflow, an open model can beat the biggest reasoning models from the frontier labs at that workflow, in his view. Today, full control of the weights is the only practical way to specialize. For repeatable work where cost and speed matter, he expects specialization to win, as it does across the rest of the economy.

Who controls AI. Charlie also makes a political argument: concentrating this much power in one or two organizations is risky, and widely held open models work more like a majority vote on how AI gets used. He notes that US enterprises have hesitated because the strongest open models have often been Chinese, and expects competitive American open models to ease that. Philip adds that open bases from Mistral and OpenAI's gpt-oss still see heavy demand for fine-tuning. These are their views, and they work for a company that serves open models.

Philip ties the two worlds back to careers. A world with one or two giant models needs relatively few inference engineers. A world with millions of specialized models, each owned by the company that uses it, needs an inference strategy, and people to run it, in every one of those companies. Baseten's book page predicts a million inference engineers within a couple of years.

11How to become oneA ladder and a weekend lab

Both speakers think pedigree counts for less than it used to. When you can ask a model to explain any paper, having twenty years of papers in your head is less of an edge. Curiosity and problem-solving are worth more. Charlie goes further: much of the last twenty years of deep-learning expertise doesn't apply to today's language models. Philip joined Baseten with no AI background and works at the level of the tools, not the theory.

One twist from Philip: when he tried to get AI models to help write the book, they did badly. Their knowledge of inference concepts was weak, and they kept reaching for older machine-learning operations and deep-learning ideas that no longer apply. His takeaway is that there is almost an advantage in learning what is happening now, rather than everything that came before.

Exhibit 10. Five rungs, from asking the right questions to writing kernels
Philip's floor: after the book, you can ask the right questions and know what you're shopping for. His ceiling: you can build the system yourself. These are the rungs in between, in the order most people climb them.
The rungs are my synthesis of the book's chapters and the techniques in the conversation, not a list from the video.
A weekend lab for rungs 1 and 2
If you buy inference rather than build it
12Check yourselfAnswers fold out
Q1Loading a model onto a GPU is easy. What makes inference a whole job?
Making it run fast for thousands of people at once, with prompts of every length, at an affordable cost, without dropping requests when machines fail.
Q2Why does inference demand grow faster than the number of users?
Because several factors multiply: more and bigger models, agents that fan out, parallel reasoning, longer context, tool output in the context, and more use as calls get cheaper.
Q3Why would anyone switch off DeepSeek's sparse attention for short requests?
It keeps the top 2,048 earlier tokens. Below 2,048 tokens that is all of them, so the indexer's work buys nothing.
Q4A drafter trained on code is guessing ahead for a poem. Why can that be slower than no guessing?
Most guesses get rejected, so each step keeps barely more than one token, but you still pay to draft every guess. At 20% accepted, 4 guesses and 10% drafter cost, speed is about 0.89×.
Q5Why do coding agents get unusually good performance from caching?
They resend mostly the same context request after request, so the KV cache from the previous request can be reused instead of re-reading everything.
Q6Why did reinforcement learning turn researchers into inference users?
The model must generate its own attempts to be scored, from its current version, thousands at a time. Supervised fine-tuning on fixed examples never needed that.
Q7An open model clears your task's bar six months after a closed one. What changes for you?
You can move the task to a faster, cheaper model you control, and specialize it further on your own data.
Q8What's the strongest argument against "open models will take over"?
Demand for intelligence is fairly inelastic: people want the smartest model and expand their workflows to use it. Specialization is the reply.
13Watch and read nextChecked 23 Oct 2026
From Baseten
How serving works
The papers behind the techniques
The tools
14Sources and methodHow this was built