GPU sizing for self-hosted models on vLLM

How many GPUs and which type a self-hosted model needs on vLLM, estimated from weight memory by precision, KV cache for your context and concurrency, and recipe starting points.

On this page

How to size GPUs for a self-hosted model on vLLM

To size GPUs for a self-hosted model on vLLM, add up three things: the memory the model weights occupy at your chosen precision, the memory the KV cache needs for the context length and number of concurrent requests you expect, and the parallelism layout that splits both across the accelerators you can actually obtain. Weights set the floor, the KV cache sets how many users fit above that floor, and the layout decides whether the model fits on one node or must span several. A team that has already picked a model should start with these three numbers before comparing GPU types or prices, because a configuration that holds the weights but leaves no room for cache will serve very few concurrent requests.

vLLM itself adds no license fee. It is open source under Apache-2.0 according to its GitHub repository, and no paid edition is offered, so the cost of the deployment comes from accelerator capacity, the surrounding infrastructure (networking, storage, hosts), the implementation work, and the engineers who operate it. That split matters for the buying decision. Accelerator capacity is the largest recurring cost and is usually reserved or rented per hour or per month, while implementation and operations are a mix of one-time and ongoing effort. When you request a quote, ask the provider to state the GPU count, memory per device, interconnect between devices, the precision and context length assumed, and which of those are one-time versus recurring costs.

Confirm the sizing against your own environment before purchase. Check the model card for the exact weight format and parameter count, then compare the GPU memory you plan to buy with the figure vLLM reports when it loads the model, and use the vLLM recipes for GPT-OSS and DeepSeek-V3 as starting points rather than final answers. Pin the vLLM version you test against, since releases ship about every two weeks, and treat the first sizing as a hypothesis to measure under your own traffic.

Sizing inputs and when each one changes the GPU count

This table lists each input that drives GPU count for a self-hosted model on vLLM, how it changes the number of devices, and what to confirm before buying hardware. Read it as a checklist: fix the model and precision first, then test how context length and concurrency move the KV cache requirement.

InputEffect on GPU countReader action to confirm
Model parameter count and architecture (dense or MoE)Parameter count sets the weight memory floor. MoE models store all experts in memory even though fewer are active per token, so they often need more total memory than their active size suggests.Read the parameter count and architecture from the model card, then check the vLLM recipe for that family to confirm the layout.
Weight precision (BF16, FP8, 4-bit formats)Lower precision shrinks weight memory, which can reduce the number of GPUs needed. Precision support also depends on the GPU generation.Confirm the checkpoint exists in the chosen precision and that your accelerator generation supports it in vLLM.
Target max context length (max-model-len)Longer context multiplies KV cache per request. Setting the limit below the model maximum can free memory and reduce the GPU count for the same concurrency.Set the context limit to the longest prompt plus output your users need, and test memory at that value.
Expected concurrent sequences (max-num-seqs)More simultaneous sequences need more KV cache. Concurrency is often the input that pushes a deployment from one GPU to several.Measure peak concurrent requests from your workload profile, then check KV cache headroom at that level with a benchmark.
KV cache precision, including FP8 KV cacheFP8 KV cache stores each token in fewer bytes, so more requests fit in the same memory. Its effect on output quality should be checked for your model.Test FP8 KV cache on your model and workload, and compare output quality and capacity against the default precision.
GPU memory per deviceLarger devices hold more weights and cache, so fewer devices may be needed. Usable memory is lower than the rated total because of runtime overhead and the gpu-memory-utilization setting.Check the usable memory per device for your GPU model and the utilization value you plan to set.
Tensor parallel size within a nodeTensor parallelism splits each layer across GPUs in one node. The tensor parallel size must divide the model's head layout, and it usually matches the number of GPUs in the node that hold the model.Confirm the supported tensor parallel sizes for the model in the vLLM recipe and test the chosen size.
Pipeline parallel size across nodesPipeline parallelism spreads layers across nodes when one node cannot hold the model. It adds cross-node communication and multi-node setup work.Plan an isolated network between nodes and confirm the multi-node backend and setup steps in the parallelism docs.
Data parallel deployment for MoE modelsData parallel replicas add serving capacity by copying the model, so they raise GPU count to increase throughput rather than to fit the model.Decide whether the load needs more replicas, then confirm the data parallel settings for your model in its recipe.

Worked starting points from the vLLM recipes

The recipe for gpt-oss-120b starts from a single A100 80GB, the smallest layout of the three. With one GPU there is no tensor parallelism, so weights, activations and the KV cache all share one device's memory. The sizing question becomes whether the weights leave enough room for the KV cache at your target context and concurrency.

  • Single device budget: Weights, runtime overhead and KV cache must fit in one 80GB card, so the space left after weights is the figure to measure.
  • No inter-GPU communication: This layout does not depend on NCCL or cross-device networking, which removes a common source of operational failures.
  • Concurrency is the limit: Once the KV cache fills, requests queue or get preempted, so usable concurrency depends on context length as much as on model size.
  • Checkpoint and precision: Confirm the checkpoint format and precision the recipe uses, and that your A100 supply matches the memory the recipe assumes.

Check the recipe's flags and memory settings, then confirm the layout on your own hardware with your expected context length and request mix. vLLM recipe: GPT-OSS

Sizing steps from model choice to a validated server

This sequence takes a chosen model from a compatibility check through memory math and GPU layout to a running vLLM server whose KV cache headroom and latency have been measured. Each step ends with a check, so the sizing estimate is confirmed on real hardware before anyone commits to a purchase or a production date.

  1. Confirm model support and chat template

    Start by checking that the exact model checkpoint is supported by the vLLM release you plan to run, using the vLLM model support documentation and the release notes for that version. Confirm that the model ships a chat template or that you can supply one with --chat-template if your applications call the chat completions API. Record the model's native maximum context length, its license and its architecture type (dense or mixture-of-experts), because each of these changes later sizing decisions. The step is done when the team has a written note naming the checkpoint, the vLLM version, the template source and the maximum context length.

  2. Calculate weight memory at target precision

    Multiply the parameter count by the bytes per parameter for the precision you intend to serve, such as 16-bit, 8-bit or 4-bit weights, then add a margin for activations, CUDA graphs and framework overhead. For mixture-of-experts models, all experts must be resident in memory even though only some are active per token, so use total parameters rather than active parameters for this figure. Ask the model publisher for the exact checkpoint size, because published file sizes can differ from a simple calculation. The output is a weight memory figure per GPU for each candidate layout, which becomes the first constraint on hardware choice.

  3. Set context length and concurrency targets

    Fix the max-model-len value you will serve, which should sit below the model maximum if memory is tight, and the number of concurrent sequences the workload needs at peak. Estimate KV cache need per request from the model's layer count, KV head count, head dimension and the cache data type, then multiply by concurrency to get total KV cache memory. Confirm the KV cache data type, since FP8 KV cache changes the per-token size. The check is a single number, total KV cache bytes at peak, which you compare against the memory left after weights and the gpu-memory-utilization headroom on each candidate GPU.

  4. Choose GPU type and tensor parallel size

    Select the accelerator type and count so that weights plus KV cache fit within the memory available across the GPUs. The tensor parallel size must divide the model's attention head and layout dimensions evenly, so confirm the valid values in the model's documentation or in the relevant vLLM recipe before buying capacity. Compare the candidate layouts on memory headroom, interconnect between GPUs and the hardware support in your vLLM release for your GPU vendor. The check is a short table of candidate layouts with fit status for weights and KV cache, which the team reviews with the infrastructure owner.

  5. Decide single-node or multi-node placement

    Keep the model on one node if the chosen tensor parallel size fits within the GPUs in a single machine, since tensor parallelism inside a node is the simpler path. Plan a multi-node layout only when the model cannot fit on one node, and then include pipeline parallelism across nodes with either Ray or the built-in multiprocessing backend. Multi-node traffic between nodes is insecure by default according to the vLLM security documentation, so the nodes must sit on an isolated network with controls you can explain to reviewers. The step is complete when the placement decision, network design and backend choice are written down and approved.

  6. Start the server with the chosen settings

    Launch vllm serve with the chosen model, tensor parallel size, max-model-len, gpu-memory-utilization and KV cache data type, and record the exact command and version in version control. Watch the startup log for the line that reports available KV cache memory and the number of tokens it can hold, and compare that figure with the estimate from the earlier steps. If the server fails to load or reports much less KV cache than expected, correct the settings before going further. The check is a successful readiness response from the server together with a logged KV cache capacity that matches the sizing sheet within a margin the team agrees on.

  7. Validate KV cache use with metrics and load

    Scrape the Prometheus metrics at /metrics and confirm that KV cache usage, request counts, token throughput and latency histograms are being recorded. Run a load test that matches the target context length and concurrency, using a tool such as vllm bench serve, and watch KV cache usage at peak. If the cache approaches its limit, lower concurrency or context length, or adjust memory settings before adding GPUs. The sizing is validated when the measured latency and throughput meet the workload targets, KV cache usage stays below the level the team set as its limit at peak, and the results and command lines are saved with the sizing record.

How the sizing inputs combine into a GPU layout

The diagram starts with the model and its serving precision, which set the weight memory each GPU must hold. Context length and expected concurrency set the KV cache, and both are summed against the memory usable on one device. That total decides whether the model fits on one GPU, needs tensor parallelism within a node, or needs pipeline parallelism across nodes. The last step is to confirm the running server with /metrics and a load test before trusting the layout.

Weight and KV cache memory decide the GPU layout, which is then verified under load.

What drives GPU cost up or down

Most of the cost of a self-hosted vLLM deployment is accelerator capacity that you pay for every month, plus the one-time work of setting it up and proving it works. The cards below cover the sizing choices that move that recurring bill most, and the staffing and network decisions that add to it.

Accelerator count and generation

Each extra GPU raises the recurring bill, and a newer generation with more memory can cut the count a model needs. Compare the total memory each option gives you after weights, not only the card price. Ask your provider or cloud account team for the hourly or reserved rate for each generation and confirm which tensor parallel sizes that generation supports for your model. A layout that fits on fewer, larger GPUs usually costs less to run than one spread across many smaller ones.

vLLM parallelism docs

Precision choice

Lower precision shrinks the weights and frees memory for more KV cache, which can let one GPU serve a model that otherwise needs two. The saving is only real if the quantized checkpoint keeps the output quality your workload needs, so run your own evaluation before you commit. Check whether your GPU generation supports the format you pick, since unsupported formats can fall back to slower paths. Quantization work is a one-time cost that also needs repeating when you change model versions.

Context length

Longer context per request multiplies the KV cache each active request holds, so the same GPUs serve fewer concurrent users at a 128k limit than at a short one. Set the maximum model length to what your product needs rather than the model maximum. Reducing it is often the cheapest change, because it requires no new hardware. Test realistic prompt lengths before you size, because averages from short chat prompts hide the cost of long document requests.

Peak concurrency versus average

Capacity sized for average load leaves users queued or preempted at peak, while capacity sized for peak sits idle most of the day. Measure concurrent requests over a representative period, then decide how much latency you accept at the busiest hours. Options include autoscaling replicas where your platform supports it, scheduling batch work off-peak, or accepting slower responses during spikes. Check startup time before relying on scale-out, because a new vLLM replica can take minutes to become ready.

Multi-node networking and isolation

A model that spans nodes needs a fast interconnect between them and adds hardware that must be paid for in full. vLLM's security documentation states that communication between nodes is insecure by default, so isolating that network is a required build item, not an optional extra. Plan a separate network segment for node traffic, and confirm the bandwidth your chosen layout needs with your hardware vendor before buying.

vLLM security docs

Operating staff and setup effort

The people who build, validate and run the platform are often the largest cost after hardware. Setup and validation is a one-time cost covering installation, load and latency testing, and hardening. Ongoing work covers upgrades (vLLM ships minor releases about every two weeks), monitoring, on-call coverage and capacity reviews, which recur. Ask any implementation partner to price these separately from the hardware, and state who holds the on-call duty.

Questions buyers ask before hiring help with GPU sizing

How much does a GPU sizing exercise cost, and what drives the price?

The price follows from the written scope, so DeployOpen does not publish a price list and a quote comes after the scope is agreed. The main drivers are how many models and precisions need sizing, how many target context lengths and concurrency levels must be modeled, whether the sizing is checked by a live benchmark on your hardware or only calculated on paper, and how many environments (for example, a test cluster and a production cluster) the result must cover. Ask any quote to separate the sizing analysis, the benchmark runs and the written deliverable, so you can see which parts are one-time and which need repeating when a model or vLLM release changes. vLLM itself has no license fee, so the cost sits in accelerator capacity, the work to validate it and the people who run it.

How long does GPU sizing take, and what must we provide?

Duration depends on how many models are in scope and whether measurements are needed, so confirm the timeline in the written scope rather than relying on a general figure. To keep the work short, prepare four inputs before the first call: the exact model and checkpoint you intend to serve, the precision you would accept (for example, BF16, FP8 or a quantized format), a traffic profile with expected concurrent requests, prompt lengths and output lengths, and the latency targets for first token and per-token generation. You also need access to representative accelerators, either yours or a test environment in your cloud account or data center, because weight and cache estimates are only a starting point until a server has loaded the model.

Can our internal team size GPUs for vLLM on its own?

Yes, a capable platform team can do the arithmetic and the first benchmark without outside help, and the vLLM documentation and recipes give you the starting configurations to test. The work that is harder to do alone is the verification: loading the model on the exact accelerator generation, reading latency and cache behavior under realistic load, and knowing which failure (memory pressure, preemption, slow startup) points to more GPUs and which points to a setting change. Ask whether your team has someone who has tuned an inference server under load before, whether there is spare hardware for test runs, and who will own the sizing document when the model or the vLLM version changes.

How does GPU sizing differ for a 70B model, a 120B model and a large MoE model?

The difference is how much memory the weights take compared with the memory left for the KV cache, and how the model is split across GPUs. A dense 70B model's weights are large enough that precision decides how many accelerators you need, and the remaining memory sets how many concurrent requests fit. The vLLM recipes show that a 120B open-weight model (gpt-oss-120b) was given as a starting point on a single A100 80GB, which shows that the precision and architecture of a model can change the answer more than its parameter count. Large mixture-of-experts models such as DeepSeek-V3 are given as starting points on 8 H200 or 8 MI300X accelerators in FP8, and Kimi-K2 at 128k context on 16 GPUs across two nodes. Treat these as published starting points for each model, then check them against your context length and concurrency.

Do we need to resize GPUs after a vLLM upgrade?

Usually you should re-check the sizing, although a minor upgrade does not always change the answer. vLLM ships new minor releases about every two weeks, for example v0.28.0 on August 26, v0.29.0 on September 9, v0.30.0 on September 22 and v0.31.0 on October 5, 2026, and each release can change scheduler behavior, default memory settings, kernel support for a precision or GPU generation, and parallelism options. Compare the release notes for the models you serve, rerun the memory and cache check on a test node, and benchmark the same traffic profile before moving production. Record the vLLM version next to each sizing result so the next upgrade has a baseline to compare against.

Which GPU sizing questions do engineers most often get wrong?

The most common mistake is sizing for weights alone and ignoring the KV cache, which grows with context length and the number of concurrent sequences. Engineers also tend to forget that vLLM pre-allocates a share of GPU memory, so the usable budget is smaller than the card's total memory, and that a model with a longer maximum context can be served at a shorter configured limit to reduce cache demand. Other frequent gaps include assuming that tensor parallelism across nodes performs like tensor parallelism inside one node, and not separating the test traffic from the real request mix. Ask any partner to show the arithmetic per model, the assumed context and concurrency, and the measured results side by side.

Does sizing change if the model runs inside our private network with strict controls?

The GPU count does not change because of network isolation, but the deployment around it does. vLLM's security documentation states that communication between nodes in a multi-node deployment is insecure by default, so multi-node layouts must sit on an isolated network, which affects the design and the hardware you need to place together. Plan for the metrics endpoint and the API key limits as well, because they affect what runs on the same hosts. DeployOpen plans and implements these controls inside your own cloud accounts, data centers or air-gapped networks as part of the scope, and your security and compliance teams can review the resulting configuration.

How DeployOpen scopes GPU sizing for vLLM

DeployOpen sizes GPUs for self-hosted models on vLLM as a scoped engagement inside your own infrastructure. We work from your target models, context lengths and concurrency, then test the chosen layout on your hardware before it reaches production.

How we scope

  • We record the target model, precision, context length and expected concurrency in a written scope before any sizing work begins.
  • We confirm which accelerators, cloud accounts or data centers the deployment may use, and which vLLM release the team will run.
  • Engagements are fixed-scope, so deliverables, sizing outputs and timelines are agreed in writing before work starts.

How we build

  • We calculate weight memory by precision and KV cache need for your context and concurrency, then compare candidate GPU layouts.
  • We start from the vLLM recipes for comparable models and adjust tensor and pipeline parallelism to your node topology.
  • We run a load test on the chosen layout and record memory headroom, latency and throughput against your targets.

How we hand over

  • You receive a sizing document covering assumptions, memory arithmetic, chosen layout and the settings tested on your hardware.
  • We document the vLLM version, launch flags and parallelism configuration so your team can reproduce the deployment.
  • We walk your platform and operations staff through the metrics to watch for KV cache pressure and when to revisit sizing.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, so sizing can be revisited as models and vLLM releases change.
  • A retainer can cover re-sizing when you add a model, raise context length or move to new GPU generations.
  • Ask for a quote built from the written scope, listing who pays for hardware, implementation time and recurring operations.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.