SysArt
Book a briefing
SysArt

On-premises AI

Capacity Planning for On-Premises LLM Deployments: Sizing Models to Hardware

How to size on-premises LLM hardware: workload profiling, GPU memory for weights and KV cache, latency under load, telemetry and demand forecasting.

Last reviewed by SysArt AI Architecture Team10 min readHow we review

In short

Plan on-premises LLM capacity from the workload, not the model card: measure prompt and output lengths, concurrency and latency targets, then size GPU memory for the weights plus the key-value cache of every request in flight. Validate with load tests, keep headroom for failures, and use serving telemetry to forecast when to buy more.

Key takeaways

  • Start with the workload: request mix, input and output token distributions, peak concurrency and latency targets for each use case.
  • GPU memory must hold the weights, the key-value cache of every request in flight and runtime overhead; with long contexts and many users, the cache often decides the size.
  • Memory capacity decides what fits and memory bandwidth largely decides generation speed, so compare GPUs on both using vendor specifications, then benchmark your own model.
  • Queue time, waiting requests, key-value cache usage and tail latency reveal saturation earlier than headline GPU activity.
  • Forecast demand per workload segment, and order hardware before the projected saturation date minus the supplier's lead time.
Close-up of GPU and server hardware components on a workbench

Why is LLM capacity planning different?

Because serving a large language model is limited by GPU memory, memory bandwidth and tail latency under concurrency, not by CPU, RAM and storage throughput. The same model can serve very different loads depending on prompt lengths, the number of simultaneous users and how the serving engine is configured.

A model generates text one token at a time, and each token depends on the ones before it. The authors of the PagedAttention paper, who built the vLLM serving engine on that technique, describe this sequential process as memory-bound: it leaves GPU compute underused and limits throughput. Batching many requests together recovers throughput, but every request in the batch needs its own working memory on the GPU. Capacity planning is therefore a small engineering investigation rather than a spreadsheet exercise. A practical order of work:

  1. Profile the workload you actually have.
  2. Derive the memory budget for each model and replica.
  3. Measure latency and throughput under realistic concurrency.
  4. Shape the fleet, with headroom for failures and maintenance.
  5. Instrument the platform and forecast from the telemetry.

The result feeds the hardware decision in an on-premises AI implementation, whether the servers sit in your own data centre or in a dedicated hosted environment.

How do you profile the workload before buying hardware?

Record the request mix, input and output token lengths, concurrency and latency targets for each use case, from the logs of a pilot or an existing service. Vendors size for their benchmarks; your workload shape is what drives the bill.

For inference, capture these variables for each use case:

  • Request mix. Interactive chat, retrieval-augmented answers, batch document processing, agent tool loops and embeddings behave differently. One cluster can serve all of them, but only with explicit priorities.
  • Token distributions. The median and 95th percentile of prompt and output lengths. Retrieval workloads often have long inputs and short outputs; drafting long documents is the reverse.
  • Concurrency. Peak simultaneous requests, the arrival pattern across the day and week, and whether each workload is interactive or can wait.
  • Latency targets. Time to first token and time per output token for interactive use; a completion window for batch work.
  • Quality floor. The smallest model that passes your evaluation set for each workflow. Many document tasks do not need the largest model.

Then classify workloads by how they use GPUs: latency-critical inference that needs dedicated capacity, throughput-oriented batch inference that tolerates queueing, training and fine-tuning that can be scheduled and preempted, and bursty experimentation. Pools designed for each class serve them better than one uniform cluster that serves everything poorly. If interactive traffic follows office hours, overnight capacity is free for batch work and training rather than a reason to buy separate hardware.

For training and fine-tuning, profile where the time of each step goes: computation, communication between GPUs, or waiting for data. When GPUs are waiting for data, faster storage or data loading helps more than additional GPUs. Combine your framework’s profiler with NVIDIA’s Data Center GPU Manager (DCGM). Its profiling metrics separate the fraction of time any engine was active from streaming multiprocessor (SM) activity, tensor-core activity and device-memory activity, and its documentation notes that SM activity below 0.5 likely indicates ineffective use of the GPU.

How much GPU memory does an LLM need?

Enough for the model weights at your chosen precision, plus the key-value (KV) cache of every request in flight, plus runtime overhead. With long contexts and many concurrent users, the KV cache often decides the size.

Weights take parameters × bytes per parameter: about 2 bytes at 16-bit precision, 1 byte at 8-bit and about half a byte at 4-bit. A 70-billion-parameter model therefore needs about 140 GB for 16-bit weights, or about 35 GB at 4-bit, before anything else.

The KV cache stores the attention keys and values of every token a request has processed, so that the model does not recompute them. Per token, it needs 2 (keys and values) × layers × key-value heads × head dimension × bytes per value. The PagedAttention paper gives a worked example: one token of the 13-billion-parameter OPT model needs 800 KB, so a single 2,048-token request can need up to 1.6 GB. Models with grouped-query attention share key-value heads between query heads and store less per token, so read the layer count, key-value heads and head dimension from the model’s configuration rather than assuming. In the same paper, serving a 13-billion-parameter model on a 40 GB GPU put about 65% of memory into weights and close to 30% into the KV cache.

The serving engine matters. The paper’s profiling found that the serving systems it examined used only 20.4% to 38.2% of their KV-cache memory for actual token states, because of reservation and fragmentation. Its paged design allocates the cache in blocks and, in the authors’ evaluation, raised throughput two to four times at the same latency compared with those systems. An engine with efficient cache management fits more concurrent requests on the same GPU; our comparison of vLLM, Ollama, llama.cpp and SGLang covers the trade-offs between engines.

Overhead covers activations, the runtime and fragmentation. Leave headroom on top: a GPU that runs with almost no free memory has no room for the occasional very long prompt.

The main levers are to cap the maximum context length for each workflow, to quantise weights to 8-bit or 4-bit after checking quality on your own test set, to store the KV cache at lower precision where your engine supports it, and to route simple requests to smaller models. The LLM GPU sizing calculator adds up weights, cache and overhead for your model, precision, context length and concurrency.

Which GPU specifications matter most for LLM serving?

Memory capacity decides what fits on a GPU, and memory bandwidth largely decides how fast it generates tokens, because generation is memory-bound. Compare candidates on both, using the vendor’s own specifications, then benchmark your model on them.

GPUMemoryMemory bandwidthMaximum powerMIG instances
NVIDIA L40S48 GB GDDR6 with ECC864 GB/s350 WNot supported
NVIDIA H100 SXM80 GB3.35 TB/sUp to 700 W (configurable)Up to 7
NVIDIA H100 NVL94 GB3.9 TB/s350–400 W (configurable)Up to 7
NVIDIA H200 SXM141 GB4.8 TB/sUp to 700 W (configurable)Up to 7
NVIDIA H200 NVL141 GB4.8 TB/sUp to 600 W (configurable)Up to 7

Figures from NVIDIA’s product specification pages, checked on 27 October 2026. Compare other vendors’ accelerators in the same way, and check that your serving engine supports them.

Three practical points follow from the table:

  • Memory per GPU sets the parallelism. A model that does not fit on one GPU is split across several with tensor or pipeline parallelism. Use the smallest degree that fits comfortably, because each extra shard adds dependence on the interconnect and another component whose failure takes the replica down. NVIDIA lists 900 GB/s NVLink for the H100 SXM against 128 GB/s for PCIe Gen5, so the server design matters for models split across GPUs.
  • Power and cooling are part of capacity. A server with eight GPUs rated at up to 700 W each needs rack power and cooling to match. Confirm the facility before the purchase order.
  • Partitioning needs the right GPU. Multi-Instance GPU (MIG) splits one GPU into as many as seven smaller instances for small models. NVIDIA’s specification pages list it for the H100 and H200, and list the L40S as not supporting it.

How do you size for latency and concurrency?

Size for the tail, not the average: measure time to first token and time per output token at realistic concurrency, and find the load at which requests start to queue. Headline throughput at large batch sizes rarely matches interactive traffic.

Run a load test with your own prompt and output length distributions rather than a synthetic fixed length. Raise concurrency step by step and record, at each step, the 50th and 95th percentiles of time to first token and time per output token, the number of waiting requests and KV-cache usage. The capacity of one replica is the highest load at which the 95th percentile still meets your target, with a margin. Test with the engine features you will run in production, such as continuous batching, which lets new requests join the running batch instead of waiting for it to finish, and prefix caching, which reuses the cache of shared prompt prefixes such as a common system prompt. Our explainer on LLM inference serving covers these trade-offs.

Then shape the fleet:

  • Prefer several smaller replicas to a few very large ones for interactive traffic. Failure domains are smaller, and a rolling upgrade takes out a smaller share of capacity.
  • Isolate batch and interactive workloads at the scheduler, so that a large batch job does not delay the first token of an interactive request.
  • Keep a small pool for evaluation, canary and red-team traffic, so that tests do not distort production latency or production users’ experience.
  • Add redundancy. Size each critical model so that the loss of one replica or node at peak still meets the latency target, and keep capacity for maintenance.

Think in service classes backed by separate queues and model choices, rather than one cluster where every workflow competes on equal terms. The on-premises AI reference architecture shows how the gateway, inference engines and GPU pools fit together.

Which telemetry should drive the capacity plan?

Signals from four layers: the GPUs, the serving engine, the AI gateway and the scheduler. Queue time, waiting requests, KV-cache usage and tail latency show saturation earlier than GPU activity does.

  • GPU hardware. Memory in use, power, temperature and DCGM profiling metrics such as SM activity and device-memory activity.
  • Serving engine. vLLM, for example, publishes metrics on running and waiting requests, KV-cache usage (where 1 means 100%), time to first token, time spent waiting in the queue and the number of preemptions.
  • Gateway. Tokens per model and team, request types, prompt and output length distributions, and errors and timeouts.
  • Scheduler. Pending jobs, waiting time before admission and preemptions, by team and GPU class.

Read the layers together. A GPU that looks busy can still have headroom if queues are flat and latency is healthy, while a moderately busy one can be saturated if waiting requests and tail latency are climbing, or if KV-cache usage sits near full and requests are being preempted. Telemetry must also separate the memory held by weights from the memory used by the cache, or memory forecasts will mislead. Keep enough history to see weekly and seasonal cycles, and store forecasts next to actual values so that you can measure forecast error.

How do you forecast demand and time hardware purchases?

Forecast each workload segment separately, in capacity units that encode the hardware it needs. Find the date on which it will cross the saturation point measured in your load tests, and order before that date minus the supplier’s lead time.

  • Separate trend from seasonality. Most enterprise AI demand has daily and weekly cycles: interactive use peaks in office hours, batch work runs overnight. Decomposing the series shows the growth rate and the size of the peak.
  • Segment. Aggregate GPU demand mixes very different workloads. Forecast per model, team, request type and priority, then add the segments up.
  • Use capacity units. Express demand in units tied to hardware, such as concurrent chat sessions on a given model within the latency target, or GPU-hours per week on a given GPU class. A forecast that says “16 more GPUs” is of little use if the workloads need specific memory sizes or interconnects.
  • Forecast peaks, not averages. Procurement has to cover the busiest hour of the busiest week.
  • Adjust for lead time. For example, if you will cross the saturation point in 16 weeks and hardware takes 14 weeks to arrive and install, you have two weeks to decide, not sixteen. Ask suppliers for current lead times, because they change.
  • Run scenarios. What happens if a new use case doubles traffic, or a fine-tuning campaign takes a large share of training capacity for a month?
  • Check accuracy. Track forecast error per segment and investigate segments that are persistently wrong before trusting them for a purchase.

Before buying, use the cheaper levers: serve a model at a lower precision under pressure, route routine requests to smaller models, move batch work to off-peak windows, and make consumption visible to business owners so that growth is discussed before it becomes an incident. A pre-approved overflow path that sends non-sensitive traffic to an external provider can also help, but data classification and AI governance decide whether it is allowed, not the technology.

Review the plan at least quarterly. New models, engine releases and use cases change capacity faster than annual budget cycles assume. SysArt follows these steps when it sizes hardware for a platform, whether the platform runs on your infrastructure or in a dedicated environment through private AI hosting.

Featured image by Dimitris Chapsoulas on Unsplash.

Frequently asked questions

How much GPU memory does an on-premises LLM need?

Add three parts. The weights take parameters times bytes per parameter: about 2 bytes at 16-bit precision, 1 byte at 8-bit and half a byte at 4-bit, so a 70-billion-parameter model needs about 140 GB at 16-bit. The key-value cache grows with context length and the number of concurrent requests. Runtime overhead covers activations, the serving engine and fragmentation.

What is the KV cache and why does it limit capacity?

The key-value cache stores the attention keys and values of every token a request has processed, so the model does not recompute them for each new token. It grows with context length and the number of concurrent requests. In the PagedAttention paper's example, one token of a 13-billion-parameter model needed about 800 KB, and a single 2,048-token request up to 1.6 GB.

Is GPU utilisation a good measure of spare capacity?

Not on its own. A headline activity figure shows whether any part of the GPU was working, not how much of it was, so a busy-looking GPU can have headroom and a moderately busy one can be saturated. Track waiting requests, queue time, key-value cache usage and tail latency from the serving engine, alongside profiling metrics such as streaming multiprocessor activity.

Should we buy the largest GPUs available?

Not by default. GPUs with more memory let large models and long contexts fit on fewer devices and reduce tensor parallelism, but several smaller replicas give smaller failure domains and gentler rolling upgrades for interactive traffic. Choose the smallest configuration that meets your latency and quality targets with headroom for one failure, and confirm it with a load test on the candidate hardware.

How often should an LLM capacity plan be reviewed?

At least quarterly, and whenever a new use case, model or serving-engine release changes the workload. Compare forecast demand with actual telemetry for each workload segment, check the projected saturation date against current hardware lead times, and update the plan. New models and engine features can change capacity faster than annual budget cycles assume.

Related insights

Plan your private AI with people who build it

Book a briefing. We look at your use case, data and constraints, and you leave with the deployment options and governance steps that fit.