Why large AI models are expensive.
Large AI models cost what they do because every token pays for every parameter. Inference runs close to 2·N FLOPs per token and training near 6·N, where N is the parameter count, and the weights and KV cache have to sit in fast GPU memory the whole time. Halve N and you roughly halve the per-token bill.
Quantisation and LoRA reduce parts of that bill, and inference prices at a fixed level of capability keep falling, but neither changes the underlying relationship between model size and cost. The durable saving comes from using the smallest model that can do a specific job once it has been trained on that job, and reserving large generalist models for work that is genuinely new.
Inference costs 2·N FLOPs per token
A dense transformer does roughly two floating-point operations per parameter to produce one token — a multiply and an add inside each matrix product — so inference costs about 2·N FLOPs per token. Attention, normalisation, and the sampler add overhead, and mixture-of-experts models only activate a slice of N, but for a dense model 2·N is the right order of magnitude and the right way to compare two sizes.
An 8-billion-parameter model needs on the order of 16 GFLOPs per generated token. A 70-billion-parameter model needs about 140 GFLOPs for the same single token, close to nine times the arithmetic before anything has been said about quality. At ten million output tokens in a day, the small model burns roughly 160 TFLOPs of matrix math while the large one burns about 1,400 TFLOPs. The product, the users, and the words on screen are the same. The difference is N, paid again on every token.
That repetition is what makes model choice more than a procurement decision. A bigger model is not a bigger one-off purchase; it is a higher marginal cost attached to each unit of output the product will ever produce. If traffic grows tenfold, the penalty for oversizing grows tenfold with it. Capability that a given request does not need is not free headroom. It is arithmetic bought and thrown away, token after token.
Training and memory
Training is more expensive than inference because it has to run the forward pass, then a backward pass of similar cost, then compute gradients for the weights. Together that lands near 6·N FLOPs per token. Training an 8B model on ten billion tokens asks for something like 480 exaFLOPs of work, and a 70B model on the same data wants roughly nine times more. This is why pre-training is a capital project and fine-tuning is not. FLOPs alone still understate the gap, because before any of that math can happen, the model has to fit somewhere fast.
Weights in bf16 take 2 bytes per parameter, so the 8B model is 16 GB of weights and the 70B is 140 GB. That is already past what a single high-end accelerator holds, which means sharding across devices, interconnect traffic, and the scheduling problems that come with it. Training with Adam in mixed precision is heavier still: gradients, the two optimiser moments, and master weights push the total to roughly 12–16 bytes per parameter, so full fine-tuning of an 8B model wants on the order of 100 GB before activations. An 8B training run and an 8B serving job are different kinds of problem, and the bytes-per-parameter line is where that difference lives.
Serving carries its own memory cost on top of the weights: the KV cache. Every token of context for every concurrent sequence leaves keys and values in memory, so long contexts and large batches consume the VRAM the weights did not. During decoding, the bottleneck is often memory bandwidth rather than arithmetic. Generating one token means reading essentially all of the weights once, so at batch size one a 140 GB model drags 140 GB across the memory bus per step. Bigger batches amortise that read, which is why throughput numbers quoted at high batch sizes flatter large models, and why spiky, low-concurrency workloads rarely see them.
- Inference, dense model: ~2·N FLOPs per token; 8B ≈ 16 GFLOPs/token, 70B ≈ 140 GFLOPs/token.
- Training: ~6·N FLOPs per token once forward, backward, and gradients are counted.
- Weights at bf16: 2 bytes/param — 16 GB for 8B, 140 GB for 70B.
- Weights at int4: ~0.5 bytes/param — about 4 GB for 8B, 35 GB for 70B, if your task tolerates the quality hit.
- Full Adam training: ~12–16 bytes/param, which is what forces multi-GPU sharding long before FLOPs do.
Quantisation and LoRA
Quantisation reduces the number of bytes per parameter. Dropping weights from bf16 to int8 halves weight memory, and dropping to int4 at roughly 0.5 bytes per parameter quarters it, so the 70B model that needed several GPUs at bf16 fits in about 35 GB. The saving is real, and on many tasks the quality cost is small. It is not zero, though, it is task-dependent, and it does nothing about the activation and KV-cache memory that still scales with context and concurrency. Quantisation makes a large model cheaper to hold. It does not make it a small model.
LoRA reduces a different quantity: how many parameters are trained. The base weights stay frozen while a small low-rank update is learned on top, often covering well under one percent of N. The optimiser state that made full training cost 12–16 bytes per parameter now covers only that sliver, so adapting an 8B base becomes a single-GPU-class job, while pre-training one never was. Serving cost is unchanged, because the full base still runs at 2·N per token, but the cost of making the model fit a particular workload collapses. That asymmetry is the economic argument for fine-tuning open-weight bases instead of training anything from scratch: the 6·N cost over trillions of tokens has already been paid, and what remains is the cost of bending the result toward a specific distribution.
Neither technique repeals the arithmetic; both move constants around. The only lever that changes the slope is N itself. The most consequential cost decision in a production system is therefore a simple one: how small a model can do this specific job once it has been trained on this specific job?
Falling inference prices
At a fixed level of capability, inference has become cheaper very quickly. The Stanford AI Index 2025 reports that the cost of GPT-3.5-level performance fell more than 280x between November 2022 and October 2024, and a widely cited a16z analysis puts the underlying trend at roughly 10x per year for equivalent performance as smaller models, better kernels, quantisation, and new hardware compound. If a workload stood still, waiting would be a strategy.
Workloads do not stand still. Token volume grows with usage, contexts get longer, and new features add new model calls, so the unit price can fall while the total bill of a successful product rises. Renting GPUs by the hour adds a second problem: low utilisation silently cancels the hardware gains. A GPU billed around the clock for traffic that arrives in bursts is a machine paid to idle, and idling is worse with a large N in the same proportion that serving is. The falling price curve rewards matching model size and capacity to actual demand. It does very little for provisioning to the peak and hoping.
Smaller models for routine work
None of this means large models are a mistake. On novel problems — open-ended reasoning, a domain with no available examples, a request unlike anything in the logs — a frontier model earns its 2·N because there is no narrow distribution for a smaller model to have learned. The mistake is sending it traffic that is not novel. In real production logs, most volume is repetition: the same classes of support reply, extraction, classification, and rewriting, millions of times, with a knowable right answer. That traffic has a shape, and a shape can be trained into a small model.
The architecture that follows from the math is a cascade rather than a single model. A fine-tuned model sized to each repeated workload handles the bulk of the tokens at a fraction of the FLOPs, and anything it cannot handle escalates to the large generalist. Building that cascade means auditing traces to find which workloads actually repeat, picking the smallest open-weight base that can plausibly clear the quality bar after fine-tuning, training adapters on traffic-derived examples, and gating every candidate against golden pairs drawn from real requests before it serves anyone. Fresh production data then triggers the next round of training. Without the gate and the retraining loop, a fine-tune is only a snapshot, and it decays as the product drifts.
That loop is what a model factory is: many right-sized models, each owning one workload, behind one control point that versions, evaluates, switches, and rolls them back, instead of one large model at the centre of the product. Prime Intellect makes the ownership case for this pattern directly — every company should own its model factory, because the traffic that makes the models good belongs to that company. Freuron runs the production loop as managed infrastructure, with audit connections to Langfuse, Helicone, OpenTelemetry, vLLM, and SGLang, LoRA fine-tuning on open-weight bases, evaluation gates, private OpenAI-compatible endpoints, and retraining on signal, billed per token rather than per GPU hour. The boundary is worth stating plainly: this is the adaptation and serving loop, not pre-training and not RL. The factory does not manufacture frontier models. It manufactures the small ones that make frontier calls the exception instead of the default.