PC Specifications for Production AI: Spec Compute by Cost Per Request

PC specifications don't set inference cost. Spec production AI compute from throughput measured at your latency SLO, then tune the serving stack first.

PC Specifications for Production AI: Spec Compute by Cost Per Request
Written by TechnoLynx Published on 11 Jul 2026

When you spec the compute for a production AI feature, it is tempting to treat it like reading PC specifications off a cloud menu: GPU model, VRAM, vCPUs, price per hour. The number to compare is cost per successful request under your latency target. Measured throughput, utilisation and offered request rate usually matter more to that number than the advertised hardware price. Run the smallest configuration that meets your p95 SLO, grow the GPU only when measurement shows memory, concurrency or latency is the limit, and tune serving before replacing the model.

In practice, speccing an inference endpoint means matching accelerator, memory, host, storage and network to the serving target and comparing total cost per inference request. If a spec can’t be traced back to that target, it was a procurement choice, and nobody has yet checked it against how the feature will run.

Why PC Specifications Are the Wrong Frame for an Inference Endpoint

A spec sheet gives vendor peak numbers, not performance under your load. A production service runs at whatever load users send it, under a latency promise, and the gap between the two is where margin leaks.

One study ran 42 systematic vLLM benchmark runs on H100 GPUs. On identical hardware, effective cost per million tokens varied by 17.5 to 36.3 times as a function of offered request rate alone. On a single H100, a Mixtral 8x7B FP16 deployment cost $15.25 per million tokens at 1 request per second and $0.87 at 25 requests per second. Cost fell steeply up to 25 requests per second, then flattened as the engine saturated.

The mechanism is simple once you see it. Offered request rate sets in-flight concurrency through Little’s Law. Concurrency sets how large a batch the GPU actually runs, and batch size sets how much of the hardware’s throughput you are paying for. In the study’s words, utilisation is an output of arrival rate, model architecture, quantisation and SLO, and it shouldn’t be typed into a calculator as an input. The authors found that per-token calculators err in the direction that makes self-hosting look cheaper than it really is.

A GPU spec has no meaningful cost per request until you attach an offered request rate to it.

Which Spec Attributes Move Cost per Request the Most?

On fixed hardware, offered load alone moves cost per token by more than an order of magnitude. VRAM decides whether the model fits and caps the batch. The table below says what each attribute changes and what to check for it.

Spec attribute What it changes What to check
GPU class Peak throughput and hourly price; at small batch sizes, token speed tracks memory bandwidth more than peak compute Performance per dollar at your SLO, not raw peak
VRAM Whether the model fits and how many concurrent requests’ KV cache it can hold, which caps the batch size Weights plus KV cache at production context lengths and concurrency
Batch size Throughput rises with batch size until you reach the compute-bound regime; after that, latency grows with no throughput gain Throughput and latency curve at your SLO
Concurrency / offered load Sets realised batch size and therefore utilisation and cost per token p50 and p95 at expected concurrency, not an idle single-request test
Precision / quantisation Lower-precision weights move less data, which speeds up bandwidth-bound decode and shrinks memory Throughput gain on your model, plus quality within tolerance
Host CPU, RAM, storage Whether the GPU stays fed Host CPU time per request and host memory high-water mark

The arithmetic linking these attributes to money is plain. Cost per million output tokens equals the hourly cost of the instance divided by (sustained output tokens per second × 3,600), multiplied by 1,000,000. NVIDIA’s method for cost per 1,000 prompts divides yearly server cost (depreciation plus hosting and licensing) by the number of requests one server can handle in a year. Notice what sits in the denominator in both formulas: measured throughput. That is the term a spec sheet cannot give you.

The GPU-class row carries one practical warning. Databricks reported a 2x latency difference between 8xA100 servers from two cloud providers, so the same SKU name does not guarantee the same machine.

Sizing VRAM: Weights Plus KV Cache, Not the Model File

Beyond the weights, VRAM must hold activations, the KV cache for in-flight requests and workspace. In the vLLM paper’s profiling, about 65% of GPU memory held weights and close to 30% held KV cache. Under long contexts and many concurrent users, KV cache can take more VRAM than the weights do.

The KV cache per token is 2 (key and value) × hidden size × number of layers × bytes per value. For OPT-13B in FP16 that is 800 KB per token, or up to 1.6 GB for one 2,048-token request. Multiply by concurrency: 20 such requests in flight would need about 32 GB of KV cache on top of the weights (20 × 1.6 GB). Quantisation works on the other side of the budget. NVIDIA reports FP8 cutting Llama-3.1-8B weight memory from 16.06 GB to 9.08 GB with no retraining.

How the serving engine manages KV cache memory is critical in determining the maximum batch size. The vLLM authors measured that earlier systems used only 20.4% to 38.2% of KV cache memory for actual token state. PagedAttention eliminated most of that waste and lifted throughput 2 to 4 times at the same latency. Before you size up a GPU because “the batch won’t fit”, check what fraction of the KV cache your engine actually puts to use.

Why Does a Spec That Benchmarks Well Cost More in Production?

Short prompts, tiny outputs, low concurrency and no batching produce optimistic benchmark throughput. Production adds a tail-latency promise and idle capacity, and both raise cost per request.

The first gap is offered load. In the H100 study, a near-idle GPU cost $7.60 to $15.25 per million tokens because its fixed hourly cost was spread over a trickle of tokens. For the dense reference model at 1 request per second, effective cost was 24.4 times the naive estimate.

The second gap is the SLO. Llama 8B FP16 reached its $0.311 per million token floor at 200 requests per second, but TTFT p99 at that load was 7.4 seconds. Its cheapest cost that still met the SLA was $0.368, at 25 requests per second. Across configurations, the premium for staying inside the SLA ranged from 1.13 to 1.91 times the floor. Put plainly, the latency promise sets a price: tighten it and you must run at lower load and pay more per token.

The third gap is idle time. A replica-hour model captures that GPUs stay allocated while traffic is low and that autoscaling adds replica-hours during bursts. A per-request estimate taken from a busy benchmark misses both costs. The same study observed that the largest penalties appear at loads where a cost-aware operator would consolidate tenants, scale replicas to demand, or fall back to a serverless endpoint.

The benchmark client can also be wrong. One study of LLM benchmarking tools found that single-process asyncio clients are throttled by the Python GIL at hundreds to thousands of queries per second. At a 1,000 QPS target, vLLM Bench sustained only 146 QPS. In the same study, throughput on identical hardware varied by 21% depending only on the temperature setting (6,767 tok/s at temperature 0 against 5,573 at 0.7). A load test that defaults to temperature 0 does not reflect the compute requirements of non-deterministic traffic. How benchmark numbers should be read is a topic of its own, covered in why spec-sheet AI GPU benchmarks mislead.

How Do We Choose a GPU Instance Without Over-Provisioning?

Start with the smallest configuration that could plausibly meet the service target and benchmark it. Move up only when the measurement shows that memory, concurrency or p95 latency is the limit, and not application code or data loading. NVIDIA’s sizing guidance makes the same point from the other side: when capacity runs ahead of the workload, utilisation drops and cost per token rises.

A higher-memory GPU is not automatically faster for inference. Extra memory helps the model fit and allows larger batches, but throughput and latency also depend on tensor performance, kernels, precision, input lengths and how fast the host delivers data. A platform with 40% more throughput at three times the cost fails a total-cost comparison, which is why the decision should rest on performance per dollar at the target SLO.

The cheapest fleet is not always made of one GPU type. The Mélange work found that request size, request rate and SLO strongly influence which GPU type is most cost efficient, and that the best allocation for a service is typically a mix of GPU types. AWS’s Well-Architected ML guidance notes that CPU instances may be sufficient for many traditional ML models.

For capacity shape, NVIDIA describes a core-and-flex pattern. Core is reserved or on-prem capacity for steady-state load. Flex is on-demand or spot capacity for surges. Commitments belong on a well-measured baseline, with on-demand capacity for uncertain work. The load-aware cost-per-request model covers how to turn traffic forecasts into replica counts at scale.

Validating a Compute Spec Against a Cost-per-Request SLO

You validate a spec by load-testing it at production concurrency, recording tail latency, taking the throughput the spec sustains while inside the SLO (its goodput), and dividing the full cost of the instance by that goodput.

  1. Fix the contract. Write down the latency SLO (p95 or p99 TTFT, or end-to-end), the target cost per successful request, and the expected peak concurrency.
  2. Load the exact artefact. Use the same model revision, tokenizer, precision, quantisation and framework build as production.
  3. Use production-shaped traffic. Replay real prompt and output length distributions, including long sequences and worst-case inputs, with a realistic temperature.
  4. Use a client that can keep up. Check that dispatch delays stay below one millisecond at median, P90 and P99, or a multi-process load generator is needed.
  5. Sweep the load. Raise the arrival rate step by step until the stack saturates, so you can locate the inflection point where throughput stops rising and queueing begins.
  6. Record the full picture at each step. Capture tokens or requests per second, p50 and p95 latency, GPU utilisation, memory high-water mark, host CPU and RAM, storage throughput and network traffic.
  7. Take goodput at the SLO. Use the highest arrival rate that still meets the SLO, not the saturation peak.
  8. Compute cost per successful request. Include the full instance and its supporting resources, plus retries and idle capacity.
  9. Compare at equal SLO. Repeat for each finalist and compare cost per successful request at the same latency target.
  10. Re-run when inputs change. Repeat when traffic, model version, hardware, region or pricing changes.

Inference Systems Authority’s benchmarking guide passes a stack when it meets the latency target at peak projected load, keeps accuracy within tolerance and leaves utilisation headroom for spikes. Under that rule, a stack meeting only two of the three needs remediation before deployment.

What Utilisation Should a Right-Sized Spec Target at Steady State?

Run just below the saturation inflection point, within your latency SLO, and leave a margin for traffic spikes. Inference Systems Authority puts that margin at typically 20%. Where the inflection sits depends on the model, the precision and the traffic mix, so your own load sweep is where you find the number.

One production study shows how far a fleet can sit below that point. In a production cluster, GPU and SM utilisation were below 60% for more than 99% of GPUs. The two causes were fluctuating request frequency and small batch sizes held down by latency demands. Sharing GPUs with offline work raised utilisation there from 26% to 76%, while online latency rose by less than 20%. In the same deployment, SM activity rose only from 16% to 33%.

Idle capacity costs real money at low traffic. SoftwareSeni puts the break-even for an always-on dedicated deployment against serverless at utilisation consistently above 65 to 70%. Below that range, the best answer may be different provisioning rather than a low-cost GPU. The hidden cost of GPU underutilisation explains how that waste builds up across a fleet.

Tune the Serving Stack Before a Bigger GPU or a New Model

Production AI cost and latency can often be improved without replacing the model. The dominant levers sit below the model layer: batching, caching, routing, quantisation, kernel work, serving configuration and runtime choice. Replacing the model is the most expensive lever, and it often leaves the underlying workload economics unchanged.

Batching keeps the GPU occupied. Continuous (in-flight) batching slots a new request in as soon as a sequence finishes, so the GPU stops idling while it waits for a full static batch. Anyscale measured up to 23 times throughput with continuous batching plus vLLM’s memory optimisations, and 8 times over naive batching from continuous batching alone. SoftwareSeni reports typical enterprise utilisation of 30 to 40% without continuous batching and 70 to 80% or more with it. By SoftwareSeni’s estimate, that roughly halves cost per request on the same hardware.

Caching avoids recomputing repeated prefixes. A higher KV cache hit rate skips prefill for repeated tokens, which lowers TTFT and cost per request and can lower the GPU capacity the traffic needs. Shared prefixes (system prompts, RAG preambles) are the usual candidates.

Routing sends simple queries to smaller, cheaper models. In experiments on real datasets, cost-aware caching plus a model multiplexer gave up to a 4.3 times FLOPs improvement and a 1.8 times latency improvement over the baseline.

Quantisation reduces the data each decode step has to move. In the H100 study, FP8 raised peak throughput by 31% for Llama 3.1 8B and by 74% for Qwen3-30B-A3B.

Profile before you resize anything. When the bottleneck turns out to be inside the kernels, profiling GPU kernels to find the real bottleneck covers occupancy and bandwidth analysis. When the problem is tail latency, the guide to optimising GPU inference latency goes further.

The Host Can Starve the GPU You Paid For

The host CPU, RAM and storage path are part of the spec too. If they cannot feed the accelerator, GPU utilisation falls while you keep paying for the accelerator. Host RAM has to hold the OS, model staging, tokenisation and preprocessing buffers, data-loader queues and any CPU-offloaded state. For agentic serving, the host does sustained work of its own (orchestration, tool execution, retrieval). An undersized host lets queues build in front of the GPUs and pushes tail latency past the SLO.

Worked Example: Sizing the Host from CPU Time per Request

This example is reproduced as given from a guide on sizing AI hosts. Assume 100 requests per second at 0.20 CPU-seconds each. That is 20 busy cores, and at a 70% target ceil(20 / 0.70) = 29 cores, so a 32-core pool passes and a 16-core pool fails. The 16-core pool tops out at 16 × 0.70 / 0.20 = 56 requests per second, and at 120 requests per second the requirement grows to 35 cores. The guide’s advice is to add CPU capacity and trace queues and request latency before adding GPUs. For your own system, size the host from measured CPU-seconds, memory and queueing data, not a ratio copied from a training node.

Who Can Audit Our Serving Path Before We Buy More GPUs?

TechnoLynx’s Inference Cost-Cut Pack profiles a deployed AI serving path so that its compute spec can be checked against your actual cost per request, rather than a benchmark number. The audit measures where cost and latency go across batching, caching, routing, quantisation, runtime and serving configuration, and identifies improvements before anyone recommends a new model. The first step is profiling the serving path you run today, under production-shaped load.

It suits teams whose cost per request or p95 latency is under pressure on a workload they already run. It does not suit a team still choosing a model, or one that only needs an instance price comparison. If your platform team already has profiling skills and the time, building the load-sweep procedure above in-house is a sound route. If an always-on deployment would run below 65 to 70% utilisation, a serverless endpoint may cost less. When the open question is which hardware to buy, published benchmark results are a better starting point than a services engagement; choosing efficient AI inference infrastructure covers what to measure beyond raw GPU speed.

FAQ

Can You Run an AI Model Without a GPU?

Yes, for many traditional ML models. AWS’s guidance notes that CPU instances may be sufficient for many traditional ML models, while GPUs give better performance for deep learning models at a higher cost.

What Tools Are Used for Cost Analysis of LLM Inference?

NVIDIA’s GenAI-Perf measures TTFT, inter-token latency, tokens per second and requests per second, and those results feed sizing and total-cost formulas. The concurrency-aware cost study released an open-source benchmark runner and cost estimator. They sweep vLLM across arrival rates and report utilisation-adjusted cost per million tokens.