← Writing

Enterprise AI infrastructure · Decision framework

Own, rent, cache

A routing framework for enterprise LLM inference in which value and risk decide what you own, the commodity market decides what you rent, and your hiring pipeline decides how much ownership you can actually afford.

Most build-versus-buy analyses for LLM inference start from price per token, conclude that self-hosting is cheaper at volume, and quietly fail eighteen months later when nobody can staff the cluster. This framework inverts the order of the decision. Price is the last input, not the first.

It comes out of a six-month enterprise engagement evaluating a managed inference service against an in-house stack — Triton with TensorRT-LLM, Ollama, and quantized open-weight models — where all of those were real candidates rather than a survey. The recommendation was hybrid routing. What follows is the reusable method, with the cost model parameterized so you can put your own volumes through it.

On provenance. This is a generalized write-up of the author's own methodology. It contains no client name, no client data, no proprietary figures, and no material from the original engagement. The illustrative inputs in the model below are defaults chosen to demonstrate the mechanics — they are not the engagement's inputs, and the model does not reproduce its conclusions.

The framework

Five steps, in this order. The order is the whole argument — running them in any other sequence produces the cheap answer that later becomes expensive.

  1. 01

    Classify the workload, and gate it

    Enterprise inference is not one workload, and treating it as one is what makes the cost question unanswerable. Each class gets an explicit permission envelope before it gets a routing decision. An ungated workload cannot be costed, because you do not know its volume.

  2. 02

    Place each workload by value and risk

    Two questions, asked independently. How much proprietary value does this workload carry — is the output something a competitor could buy? And how much internal risk does it carry — what is the exposure if it leaks, drifts, or acts wrongly? Neither question mentions money.

  3. 03

    Own what is high-value and high-risk; rent the rest

    The model you train is the model that carries the most internal value and the most internal risk. That is the one worth owning the weights, the serving path, and the audit trail for. Everything that is genuinely commodity gets rented, because owning it buys you nothing you could not purchase.

  4. 04

    Let the savings fall out of cache and commodity shift

    Cost reduction is a consequence of steps 1 through 3, not a goal pursued on its own. Two mechanisms produce nearly all of it: cache hit rate, which removes volume from the billed path entirely, and shifting the remaining eligible volume onto commodity inference. GPU amortization is a distant third and usually a distraction.

  5. 05

    Cap ownership at what you can staff

    In-house inference at enterprise scale is operating a supercomputer. It needs a small number of unusually senior people, and that is a hiring constraint before it is a budget line. The savings from steps 3 and 4 set an ownership budget; if that budget will not fund the team the cluster requires, the self-hosted path is wrong regardless of what the spreadsheet says.

Step 01 — Workload classes and their gates

Four classes, each admitted under a different condition. The gate is the governance artifact and the volume input at the same time, which is why the governance model and the infrastructure decision are one decision rather than two.

Workload gating
ClassRole in the systemGate
Retrieval over documents The base premise. Also the reference against which model drift is measured. Always available. Its behaviour is the baseline, so it is the one class that must stay stable.
Summarization Produces high-level structure over material that is too large to read. Broadly available. Structural output, low consequence if imperfect.
Classification Maintained as a standing capability rather than assembled per request. In-context only. Never invoked outside a context that establishes what the labels mean.
Agentic tool use Takes actions rather than producing text. Narrow and explicitly guardrailed. Specific approved tools, specific approved scopes.

Retrieval doubling as the drift reference is the load-bearing detail. If you have no stable workload to measure against, you cannot tell a model regression from a data change, and every later routing decision rests on an unverifiable assumption about output quality.

Step 02–03 — Placement and its routing consequence

The grid is deliberately about value and risk rather than cost or latency. Where a workload sits determines who serves it; the red-team / blue-team cycle is what moves workloads between quadrants over time, which is how the boundary gets steered rather than guessed.

Internal risk →
High value · High risk Own it Self-hosted, and the candidate for fine-tuning. You want the weights, the serving path and the audit trail. This quadrant justifies the cluster; nothing else does.
Low value · High risk Restrict or decline Exposure without upside. Tighten the gate, reduce the scope, or do not build it. Routing is the wrong tool for this quadrant — governance is.
High value · Low risk Rent deliberately Managed service with a real exit path. Valuable enough to care about continuity, not risky enough to pay the ownership premium.
Low value · Low risk Rent commodity Cheapest adequate provider, swapped whenever a cheaper one appears. This quadrant is where the cost savings in step 04 actually come from.

← Internal value

Red team, blue team is the steering mechanism. Placement is a judgement, and a judgement made once decays. Adversarial exercises against the deployed workloads are what produce directional evidence that something has moved — a workload that turns out to leak more than expected moves up in risk, one whose output turns out to be reproducible from public models moves left in value. The grid is re-derived from those results rather than defended.

Step 04–05 — The cost model

This is the arithmetic that falls out of the placement, with every input exposed. The two levers that matter are cache hit rate and the share of remaining volume that is eligible for commodity routing. Move them and watch which outputs actually respond.

Hybrid routing cost model

Illustrative inputs — replace with your own
— reduction against serving every request on the premium managed path
Ownership budget — per month, before self-hosting stops paying
Senior engineers that funds — the step 05 constraint, in people
All premium managed — baseline—
Hybrid routed — modeled—
Premium managed inference Commodity inference Self-hosted fixed cost
Cost lines
LineMillion tokensMonthly costShare
What the model does not claim. Cached responses are treated as free at the margin, which flatters the cache lever; real cache infrastructure has a cost and a staleness policy. Commodity and premium tokens are priced flat, ignoring context-length tiering. Self-hosted cost is a single fixed monthly figure rather than a utilization curve. Each of these simplifications is defensible for a routing decision and indefensible for a budget submission — the model is for choosing a shape, not for forecasting a line item.

The output worth arguing about is not the percentage. It is the ownership budget: the monthly figure the savings make available before self-hosting stops paying for itself, and therefore the size of team those savings can fund. Step 05 exists because that number usually converts to two or three people — and two or three people who can run a production inference cluster is a harder thing to acquire than the budget for them.

What this framework decides, and what it does not

It decides which workloads justify ownership, which get rented, what each class is permitted to do, where the cost actually comes from, and whether the ownership path is staffable. Those five answers are what makes an inference program fundable and auditable rather than a collection of pilots with a cloud bill attached.

It does not decide model selection, evaluation methodology, or serving topology. Those are downstream engineering decisions, and they get easier once the questions above have answers. Nor does it survive contact with an organization that will not gate its workloads — without step 01 there are no volumes, and without volumes the rest is arithmetic on invented numbers.

Written as a generalized reference. Contains no client-identifying material or proprietary data.

Want to put your own numbers through this? Start a conversation.