What gpu-memory-utilization controls and why it decides how many requests fit
When requests queue or fail on a vLLM server, the first setting to check is gpu-memory-utilization, because it decides how much of each GPU vLLM is allowed to use. The option sets a fraction of total device memory for vLLM's own allocations. Model weights are loaded into that share first, and whatever remains is handed to the KV cache, the store of attention keys and values for every token of every request still in flight. The KV cache is therefore what limits concurrency: the number of sequences vLLM can hold at once is bounded by how many tokens of KV cache fit in the space left after the weights are placed. A team with a fixed GPU, a fixed model and a concurrency target is really asking whether that remaining space covers the context length and number of sequences it needs.
The topic brief references 0.92 as the default value for this option. Confirm the default for the release you deploy in the vLLM engine arguments documentation, since defaults change between releases and the value in your version is the one that governs your memory budget. Also confirm how the option interacts with other memory users on the same device. The fraction is a ceiling on vLLM's allocations, not a reservation for the whole GPU, so anything else running on that device, such as a display process, a monitoring agent or a second model server, shares what is left outside the vLLM share. A low value leaves more room for those processes but shrinks the KV cache, while a high value gives vLLM more cache but leaves less headroom for allocations that happen outside its pool.
The practical check is to start the server, read the KV cache size and maximum concurrency that vLLM reports in its startup logs, and compare them with the concurrency and context length your workload needs before changing any setting. If the reported capacity is short, the options are a smaller context limit, a lower-precision KV cache, more GPUs or a different tensor layout, and the sections that follow cover each of these. Keep in mind that the logged figure describes capacity for one configuration, so record the model, precision, context limit and version alongside it so the number can be reproduced during an upgrade or capacity review.
vLLM plans the KV cache from what weights and overhead leave behind
The diagram starts at the total memory of one GPU. vLLM takes a share set by gpu-memory-utilization, which defaults to 0.92, and plans only against that share. Inside it, model weights load first, then activations and runtime overhead are reserved for the largest batch the server may run. Whatever remains becomes the KV cache pool, and that pool determines how many tokens can be in flight at once. Memory outside the vLLM budget stays available for drivers, monitoring agents or a second model. Before raising the value, check that the outside share still covers those processes.
One GPU's memory split between vLLM's budget, the KV cache pool and outside processes.
How vLLM pre-allocates GPU memory for the KV cache at startup
vLLM sizes its KV cache once, at startup, not per request. After it loads the model weights, it runs a profiling forward pass to measure the memory the model needs for activations and peak working buffers. Whatever remains of the GPU memory budget becomes a pool of fixed-size KV cache blocks, which hold the attention keys and values for tokens in active requests. Once the server accepts traffic, each new request draws blocks from that pool, and the scheduler decides what to admit based on how many blocks are free.
Reserving the pool up front avoids allocation stalls under load. If the server requested GPU memory each time a request grew, allocation could slow or fail at the moment traffic peaked, and the scheduler would have no fixed capacity to plan against. The cost is headroom. A larger reservation leaves less memory for anything else on the same GPU, such as a second model, another inference process, a monitoring agent or a CUDA context that grows after startup. Check the GPU with other processes running before you set the budget, because a memory budget that fits an empty GPU can fail once a neighbor starts.
The exact profiling behavior can change between releases, including how vLLM estimates peak activation memory and memory used for compiled execution graphs. Read the vLLM GitHub releases notes for the version you run, and confirm what the startup log reports for KV cache capacity on that version. After every upgrade, repeat the startup check on the target hardware, because a version change can move the same settings to a different number of cache blocks.
Which memory settings change how many requests fit
This table compares the five settings that most affect how much KV cache vLLM has and how much memory is left for everything else on the GPU. Read each row for its effect on capacity and headroom, then check the trade-off before changing it on a production server.
| Setting | What it changes | When it fits and the trade-off |
|---|---|---|
| gpu-memory-utilization | Sets the share of GPU memory vLLM reserves for its own use, and so the space left for KV cache after weights and activations. Raising it adds cache blocks and so room for more concurrent requests. | Fits when the GPU is dedicated to this server and nothing else needs memory. The trade-off is less headroom for CUDA allocations, other processes, monitoring agents and memory spikes, which can cause out-of-memory failures. The default is 0.92 (per the vLLM docs); confirm the current default in your release. |
| max-model-len | Sets the longest context a single request may use. A lower value reserves less KV cache per request and lets more requests run in the same space. | Fits when your real prompts and outputs are well under the model maximum. The trade-off is that requests above the limit are rejected, so set it from measured token counts, not from the model card alone. Check the vLLM docs for the flag's exact behavior. |
| KV cache data type (auto versus FP8) | Chooses the numeric format for cached keys and values. FP8 stores each cached value in fewer bytes, so the same memory holds more tokens. | Fits when memory is the binding limit and your model and hardware support FP8 KV cache. The trade-off is possible change in output quality, so benchmark accuracy on your own tasks. Confirm hardware support in the vLLM docs for your GPU generation. |
| Tensor parallel size | Splits model weights across GPUs, lowering the weight memory each GPU holds. More per-GPU space is then left for KV cache, which raises total cache capacity across the group. | Fits when the model weights alone crowd out the cache on one GPU. The trade-off is inter-GPU communication on every forward pass and a fixed group size that must match the hardware layout. See the vLLM parallelism docs before changing it. |
| max-num-seqs | Caps how many sequences the scheduler runs at once. It limits concurrency, so it does not add cache by itself, but it keeps the server from admitting more requests than the cache can hold. | Fits when preemption or out-of-memory errors appear under peak concurrency. The trade-off is lower maximum throughput and longer queueing for users when the cap is too low. Match it to the concurrency you benchmark, and confirm the default for your release. |
When raising gpu-memory-utilization helps and when it backfires
The right value depends on what else shares the GPU and how large the worst-case request is. Each card pairs a symptom with the change that may help, the risk of raising the value, and the check to run first, so the setting moves only when the evidence supports it.
Dedicated GPU with a full KV cache
On a GPU that runs only the vLLM server, the KV cache is the main limit on concurrent requests. The signal is a KV cache usage metric that stays near its ceiling during normal peak traffic, with requests waiting in the queue or being preempted. Raising the fraction is the first lever, because little else on the device competes for the memory. The risk is less headroom for activation spikes during prefill of large batches. Before changing it, check the KV cache usage and preemption counts over a full peak period, and confirm the value against the metrics your version exposes.
vLLM metrics docsGPU shared with other processes
A GPU that also runs a monitoring agent, a second model server or a notebook gives vLLM a fraction of memory that assumes the rest is free for its own use. The signal is a vLLM server that starts cleanly, followed by out-of-memory errors in the other process or unexpected memory growth on the device. Raising the value widens vLLM's share and can push the neighbor into failure. Before changing anything, list every process holding device memory, measure its steady-state and peak use, and decide whether the workload should move to a dedicated GPU.
Out-of-memory failure during startup profiling
vLLM runs a profiling pass at startup to measure peak activation memory before it sizes the KV cache. If the model fails with out-of-memory during this phase, before the server accepts requests, the budget was too large for the weights and the peak activations together. Raising the value makes this failure more likely, not less. Check first whether another process already holds memory at launch, then review max-model-len, max-num-seqs and max-num-batched-tokens, which all change the profiled peak. Lower one value at a time so the cause stays visible.
Memory spikes with long prompts
A server that looks stable under typical chat traffic can run out of memory when a few requests carry long prompts. The KV cache grows with each request's context length, and prefill of long inputs adds temporary activation memory on top. The signal is a pattern where failures or preemptions line up with the arrival of long requests, not with the total request count. Raising the value leaves even less margin for those spikes. Before changing it, review the longest prompts in your traffic, the max-model-len setting, and whether FP8 KV cache is supported on your GPU and vLLM version.
How FP8 KV cache and context length change request capacity
Long-context chat is where max-model-len matters most. vLLM has to plan enough KV cache for a sequence at its maximum length, so a higher limit reduces how many sequences can run at the same time within the memory left after weights. Conversations that grow over many turns also keep their cache alive for longer, which raises pressure on the pool.
- Context limit as the reservation unit: Raising
max-model-lenfor a few long conversations can cut concurrency for everyone else, even when most turns are short. - FP8 KV cache as a block multiplier: Storing keys and values in FP8 can let more cache blocks fit in the same memory, but accuracy on long prompts and kernel support for your model and GPU must be confirmed first.
- Prompt length versus generation length: Long prompts fill the cache during prefill, so the first response of each conversation often costs the most memory.
- Session lifetime: Idle multi-turn sessions still hold cache, so the number of open conversations matters as much as the active request count.
After changing the setting, measure long-prompt quality against your own evaluation set, then record how many concurrent long conversations run before preemption appears in the logs and metrics.",
Short interactive requests, such as autocomplete, classification or short chat turns, reserve far less cache per sequence. Here the limiting factor is usually the number of sequences the scheduler admits at once, not the context limit itself. A lower max-model-len still helps, because it caps the worst case the engine must plan for.
- Small reservations per request: Most sequences need a few cache blocks, so the pool can hold many of them at once.
- Concurrency limits take over: Batch size settings often decide throughput before the KV cache does, so both need to be checked together.
- Lower limit as a safety cap: Setting
max-model-lenclose to the real traffic maximum keeps one oversized request from taking a large share of the pool. - FP8 benefit is smaller here: When requests are short and the cache is not full, extra blocks may sit unused, so the gain is hard to see in latency.
After changing the setting, check time to first token and time per output token under your expected concurrency, and confirm that the KV cache usage metric stays below the level where requests queue or get preempted.",
Mixed workloads combine large batch jobs, such as document summarization, with interactive traffic on the same server. A single context limit must serve both, and the batch jobs can occupy most of the cache for long periods, which pushes interactive latency up. This tab is about separating the two effects before choosing one configuration.
- One limit for all tenants: The shared
max-model-lensets the worst-case reservation for every request, so batch jobs with long inputs define the ceiling for interactive users too. - Cache competition: Long batch sequences can hold blocks that short interactive requests need, and the effect appears as queueing rather than errors.
- FP8 as a headroom option: Lower-precision cache can add headroom for mixed traffic, but the result depends on the model and kernel path, so test it on both traffic types.
- Separate deployments as an option: Running batch and interactive traffic on different servers or with different limits may be simpler to measure than tuning one shared setting.
After changing the setting, replay a realistic blend of both traffic types and compare latency for each class separately, along with the rate of preemption and the KV cache usage over time.
Setting and verifying KV cache capacity before go-live
This sequence confirms the release, driver stack and model fit, sets memory limits on purpose, and proves from the startup log and live metrics that the server holds the concurrency and context length the workload needs.
Confirm the vLLM release and driver stack
The platform engineering lead records the vLLM release tag, the CUDA or ROCm driver and toolkit versions, and the GPU model on each node, then checks them against the vLLM installation documentation for that release. Pin the exact version in the container image or package lock so the memory accounting you measure is the one you deploy. The step passes when a test node starts the same image without driver or library errors and the version reported by the server matches the pinned tag. Releases ship about every two weeks, so confirm the version you pin is still the one your change record names.
Confirm the model fits at the planned precision
The engineer loads the chosen checkpoint at the precision you intend to serve, such as BF16 or a quantized format, and checks that the weights fit on the planned GPU count with memory to spare for activations and the CUDA graph buffers. Record the weight footprint per GPU from a dry load on one node. The step passes when the model loads and begins serving a single test prompt with no out-of-memory error at the planned tensor parallel size. If it fails, the fix is a different precision, more GPUs or a smaller model, not a higher memory setting.
Set gpu-memory-utilization and max-model-len deliberately
The platform engineer sets
--gpu-memory-utilizationas an explicit value in the serving config rather than relying on the default, and sets--max-model-lento the longest context the product actually needs, not the model's published maximum. Document why the value was chosen, including what else shares the GPU, such as monitoring agents, a display driver or a second model. The step passes when both values are committed to version control and the change record states the headroom left for non-vLLM processes on each GPU.Read the KV cache size in the startup log
The engineer starts the server with
vllm serveand reads the startup log for the line reporting the GPU KV cache size and the maximum concurrency it implies for the configured context length. Copy both values into the go-live record. The step passes when the server reaches ready state with those values logged and the KV cache token capacity is large enough for the target concurrency multiplied by the average context. If the reported capacity is below that product, lower the context limit, raise memory utilization within the headroom you documented, or add GPUs.Run a load test at target concurrency
The performance engineer runs a short load test with
vllm bench serveor an equivalent client at the concurrency the workload needs, using prompt and output lengths close to production. Keep the run long enough that requests overlap and the cache fills to its steady-state level. The step passes when every request completes without server errors and the run shows no preemption or request rejection caused by memory exhaustion. Matching the test concurrency to the server's max-num-seqs setting is part of this check.Check the KV cache usage metric
While the load test runs, the operator scrapes the Prometheus endpoint at
/metricsand reads the KV cache usage gauge along with request and latency metrics. Record the peak usage at target concurrency and confirm it stays below full with room for bursts. The step passes when peak usage leaves a documented margin and latency stays within the target set by the product owner. If usage sits at its ceiling, the cache is the bottleneck, and the next move is a lower context limit or more capacity, not a higher memory setting alone. Set an alert on this gauge before go-live.
Security and operational risks of memory settings
Memory settings in vLLM change more than capacity. They shape what the server reveals, how shared GPUs behave under load, and how the server responds after an upgrade. The four risks below connect those effects so the team reviewing a deployment can check each one before go-live.
Metrics endpoint reveals KV cache use
vLLM exposes Prometheus-format metrics at /metrics on its API server, and those metrics include KV cache use alongside request counts and latency histograms. The --api-key option does not protect /metrics, so a key on the inference endpoints does not hide cache pressure from anyone who can reach the port. Check that the API server is not reachable from outside the network, and place a reverse proxy in front of it that allowlists only the endpoints meant for users. Confirm that monitoring scrapers reach /metrics from a separate, internal path.
Unprotected operational endpoints
The --api-key option protects endpoints under /v1, /v2, /inference and /cohere, but not /invocations, /pause, /resume, /abort_requests, /metrics or /health. The vLLM security docs warn against relying on the key alone. A reachable /pause or /abort_requests can disrupt service even when chat traffic is authenticated. Build the allowlist from the endpoints your applications call, and test from outside the network that every other path is refused.
Timing effects across tenants on shared GPUs
When several teams or tenants share one GPU, the KV cache is a shared pool, so one tenant's long prompts and large batches can slow or preempt another tenant's requests. The effect shows up as changed latency rather than as an error, which makes it hard to spot in ordinary dashboards. Ask whether tenants need separate servers or GPUs, and whether per-tenant latency is measured through the metrics endpoint before a shared setup is approved. Illustrative case: a long-document job raises time to first token for an interactive chat tenant on the same card.
Memory pressure from other host processes
A high gpu-memory-utilization value leaves a smaller margin for anything else on the GPU or host. Monitoring agents, a second model server, a notebook or driver activity can cause out-of-memory failures that look like vLLM faults. Inventory every process that uses the same accelerator before raising the setting, and confirm the margin left after vLLM's pre-allocation in a load test with the real co-resident workload. Record that margin in the runbook so the next person who adds a process knows the budget.
Change control for memory flags after upgrades
Flags that alter memory behavior can change meaning or default values between vLLM releases, and vLLM ships new minor releases about every two weeks. An upgrade that keeps the same command line can still change how much memory is reserved or how the KV cache is sized. Treat memory flags as controlled configuration: pin the version, store the flag values in version control, and repeat the memory and latency tests after each upgrade before the new build reaches production.
- Minor release cadence
- About 2 weeks
How to measure KV cache use under load
The most direct way to know whether the KV cache is limiting your deployment is to read it from the server while it is under load. The vLLM server exposes Prometheus-format metrics at /metrics on its API server, and those metrics cover request counts, token throughput, latency histograms and KV cache use. Scrape that endpoint from your monitoring system and chart KV cache usage next to queue depth and time-to-first-token. Confirm the exact metric names and histogram buckets against the vLLM release you run, because names have changed between releases and the vLLM production metrics documentation describes the set for the current version.
A metric alone does not show whether the cache is the bottleneck. Pair it with a load test that holds the concurrency you expect at peak. If KV cache usage stays near its ceiling while requests wait, and latency rises as concurrency rises, the cache is limiting throughput and the levers in this topic apply. If latency climbs while cache usage stays moderate, look at compute, batching or the network instead. Run the test on the same GPU, model, context length and KV cache dtype that production will use, because a shorter test prompt will understate cache pressure. Benchmark method, dataset choice and reading latency percentiles belong to the benchmarking page in this group.
Alert on sustained high cache use, not brief spikes. A short peak near the limit is normal for a busy server, but high usage held for several minutes, combined with a rising waiting queue, is the pattern to act on. Set the threshold and window from your own load test rather than from a generic number, and record the values you observed so the next model or hardware change has a baseline. Ask your implementation partner or platform team to confirm which alerts fire on your release and where the dashboard lives in your monitoring stack.
Limits to confirm in your environment
The settings on this page only work as planned on the hardware, model and release you actually run. Each card below names one thing to confirm, and who to ask, before you size memory or change the defaults.
GPU and driver support for KV cache type
Whether your GPU generation and driver stack support the KV cache data type you want is a hardware question, not a configuration one. Setting an FP8 KV cache on a card or software stack that does not support it will fail at startup or fall back in ways that change your capacity estimate. Ask your GPU vendor for the supported data types on your exact model and driver version, then confirm them by starting the server with the setting and reading the logged cache size. Treat the vLLM installation docs as the starting point for supported platforms.
Installation docsModel compatibility with FP8 KV cache
A model can load on FP8 KV cache and still produce weaker outputs for your prompts. Compatibility depends on the model architecture and on the checkpoint, so a setting that works for one open-weight family may not transfer to another. Check the model card and the vLLM recipe for your model, and record which KV cache type you tested with. Do not assume that a successful load means the model behaves the same as it did at full precision.
Profiling and reserved memory by release
How vLLM profiles memory at startup and how much it reserves for non-KV use can change between releases. The same --gpu-memory-utilization value may leave a different amount free after an upgrade, which changes how many sequences fit. vLLM ships minor releases about every two weeks, for example v0.31.0 on October 5, 2026, so a fixed capacity number recorded months ago may not hold. Re-measure the KV cache size after every upgrade and compare it with your stored baseline before you change traffic.
Memory split across multiple GPUs
With tensor parallelism, weights and KV cache are divided across devices, so the per-GPU limit and the total capacity do not behave like a single card. An uneven layout, a mismatched card in the group, or another process on one device can make one GPU the limit for the whole server. Confirm the per-device memory budget from the startup log on every rank, and test with the parallel size you plan to run in production. The vLLM parallelism docs describe how the layouts are split.
Parallelism docsOutput quality after changing precision
Lowering KV cache precision or changing model precision can shift answers in ways that standard load tests will not catch. Build a fixed evaluation set from your own prompts, including the long inputs and structured outputs your users send, and score answers before and after the change. Agree on acceptance thresholds with the team that owns the workload. Your own benchmark is the only reliable check for your traffic, because a vendor's sample prompts rarely match yours.
Behavior on ROCm, XPU and plugin hardware
The memory model and supported KV cache types on AMD ROCm, Intel XPU and third-party hardware plugins may differ from NVIDIA CUDA, even when the same flags are accepted. A setting that reports a larger cache on one platform may not be reserved the same way on another. Ask the hardware vendor or plugin maintainer which features they support for your release, and run the same sizing test on that platform before you copy numbers from CUDA results. The vLLM installation docs list which platforms the main repository covers.
Platform listQuestions teams ask before tuning KV cache capacity
Can our team tune gpu-memory-utilization and KV cache capacity without a partner?
Yes, a team with GPU operations experience can tune these settings itself, provided it runs a repeatable load test and reads the server metrics after each change. The work is mostly measurement: you change one setting, replay representative traffic, and watch KV cache usage, request preemption and latency percentiles. vLLM exposes these values at /metrics in Prometheus format, so the signals are available. What makes the work harder is a small test set that does not match real prompt lengths, shared GPUs with other processes, multi-GPU layouts, and frequent engine releases that change memory behavior. A team without a test harness or on-call capacity for GPU incidents usually benefits from outside help on the test design.
How long does a KV cache tuning cycle take?
The sources do not give a duration, so treat any number you hear as unverified until it is tied to your own environment. The main drivers are model size, the number of GPUs and whether the layout is tensor parallel, the coverage of your load test (prompt length mix, concurrency, multi-turn traffic), how many configurations you sweep, and whether the vLLM release you run changes memory accounting. A single-model, single-GPU server with a ready test harness is a much shorter exercise than a multi-node cluster serving several models. Ask any partner to break its estimate into test design, runs, analysis and a retest after the next release.
What does a partner do, and what must our team provide?
A partner typically designs the test plan, sets the baseline, runs the sweep of memory and context settings, reads the results against your latency and capacity targets, and writes down the chosen values with the reasons for them. Your team must supply the hardware access or a staging environment with the same GPUs as production, a representative sample of anonymized prompts and response lengths, the latency and throughput targets that matter to your users, and an owner who can approve configuration changes. Access to the metrics endpoint, logs and the reverse proxy configuration is also needed. Confirm these items in the written scope before work starts.
What does a consultant charge for, and why is there no published price?
DeployOpen does not publish a price list. A quote follows from the written scope, which states the environment, the number of servers and GPUs in scope, the workloads to test, the deliverables and the timeline. Cost comes from the time of the people doing the test design, runs and analysis, plus any retainer for post-go-live checks. Hardware and cloud accelerator capacity used for testing are usually a separate cost that you pay your provider, and vLLM itself has no license fee. Most engagements are fixed-scope, so ask for the deliverables, the number of test cycles included and what triggers additional work.
What happens after go-live when the vLLM release or traffic changes?
The settings you chose are tied to one vLLM release, one model, one GPU layout and one traffic mix, so a new release or a shift in prompt length can change the safe memory setting. vLLM ships new minor releases about every two weeks, so a configuration that is correct today may need a retest within weeks. Plan for a regression run before each upgrade, alerts on KV cache usage and preemption in your metrics, and a change record that names the baseline. Ongoing support, upgrades and continuous testing are available as DeployOpen retainers, and the scope of those is agreed in writing.
Does raising gpu-memory-utilization above the default create a risk?
It can, and the risk depends on what else runs on the same GPU. The default leaves a fraction of device memory free for other processes, CUDA allocations and activation spikes, so raising the value gives the KV cache more room but leaves less headroom for those needs. Raise it in small steps, and check for out-of-memory errors under peak prompt lengths, not only average ones. If monitoring, sidecar tools or other models share the device, test with them running. Document the final value, the vLLM release and the test traffic together so the next person can see why it was chosen.
Do FP8 KV cache and a shorter context length change how many requests fit?
Yes, both change the number of concurrent requests the KV cache can hold. A smaller KV cache element type stores more tokens in the same memory, and a lower maximum context length reserves less space per request, so more sequences can fit. Each change also affects output quality and compatibility, so the effect must be checked against your model and your accuracy tests rather than assumed. Confirm with the vLLM documentation for your release whether FP8 KV cache is supported for your model and hardware, and measure accuracy on a representative evaluation set before you commit to it.
How DeployOpen scopes and supports vLLM memory tuning
DeployOpen plans and implements self-hosted vLLM inside your own infrastructure, so memory settings are tested on the hardware and model you will run. The work starts with a written scope, then moves through measured changes, a handover your team can repeat, and optional ongoing support.
How we scope
- Record the GPU models, driver stack, vLLM version and model checkpoint that the memory settings will apply to.
- Agree which other processes share each GPU, since they determine how much memory the 0.92 default leaves free.
- Define the target context length, concurrency and whether FP8 KV cache is in or out of the test matrix.
How we build
- Measure weight memory, activation overhead and KV cache capacity at several gpu-memory-utilization values on your hardware.
- Test the chosen values under realistic request mixes, watching for out-of-memory errors and preemption under load.
- Document any FP8 KV cache accuracy checks run against your own evaluation prompts before enabling it in production.
How we hand over
- Deliver the final serving configuration with each flag, its measured reason and the hardware it was validated on.
- Write a runbook showing which vLLM metrics at /metrics to watch for KV cache use and request queueing.
- Walk your platform and operations engineers through the change process for raising or lowering memory settings later.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Re-run the memory tests when you upgrade vLLM, since release notes and defaults can change between versions.
- Ongoing support, upgrades and continuous testing are available as a retainer if your workloads or hardware change.

