FP8 KV cache in vLLM

FP8 KV cache in vLLM stores attention keys and values in 8-bit floating point, which can roughly halve KV cache memory for more concurrent requests or longer context. This page covers when to enable it, the options, and the accuracy checks to run first.

On this page

FP8 KV cache in vLLM: when teams turn it on and what it changes

A self-hosted vLLM server that runs out of KV cache space under concurrent load or long context is the usual reason teams look at kv-cache-dtype fp8. The KV cache holds the attention keys and values for every token of every active request, so it grows with the number of concurrent sequences and their length. When it fills, requests wait for space or the context limit has to come down. Setting --kv-cache-dtype fp8 stores those cached values in an 8-bit floating-point format instead of the model's usual 16-bit precision, which roughly halves the memory each cached token needs. The freed memory can hold more concurrent requests or longer contexts on the same GPUs. Model weights are not changed by this setting, so it is a different decision from loading an FP8 checkpoint. The Llama 3.3 70B and Llama 4 Scout recipes in the vLLM recipes repository recommend kv-cache-dtype fp8, and the GPT-OSS recipe sets it on Blackwell GPUs, so these are the first reference configurations to compare against.

vLLM is licensed under Apache-2.0 and has no paid edition, so the change itself carries no license fee. The cost of enabling FP8 KV cache sits in the work around it: the accelerator capacity you already run, the time to benchmark and validate the change, and the engineers who own the serving configuration afterward. Those costs are mostly one-time for the validation and recurring for the operations, and they do not change much with the flag itself. Before switching production traffic, confirm with your own environment which GPU generations and vLLM release you run, since KV cache dtype support can depend on both. Then run a representative set of prompts through the server with the flag off and on, and compare outputs against your own quality criteria, not only aggregate benchmark scores. Keep the previous configuration ready to roll back, and record the vLLM release, model revision and flags used so the change can be reproduced during an upgrade or audit.

Which kv-cache-dtype setting fits which workload

This table compares the default auto cache dtype with fp8 across high-concurrency, long-context and accuracy-sensitive workloads, and notes where the recipes already set fp8. Use it to decide which setting to test first, then confirm the flag names and recipe behavior against the vLLM version you run.

Workloadauto (model default cache dtype)fp8 (kv-cache-dtype fp8)
High concurrency, short promptsFewer requests fit in KV cache at once, so queueing rises firstHalves KV cache memory per token, leaving more room for concurrent sequences; confirm throughput gain on your traffic
Long context, large promptsContext length is capped sooner by cache size on the same GPUsMore cached tokens fit in the same memory; verify long-context accuracy before raising limits
Tight accuracy requirementsBaseline cache precision; the reference for comparing outputsAdds a quantization step to attention inputs; run task-specific evals and compare against auto before switching
Llama 3.3 70B recipeNot the recipe's default setting for KV cacheRecipe recommends kv-cache-dtype fp8; confirm the setting matches your GPUs and vLLM release
Llama 4 Scout recipeNot the recipe's default setting for KV cacheRecipe recommends kv-cache-dtype fp8; confirm model variant, context length and GPU count in the recipe
GPT-OSS on BlackwellNot the recipe's default setting on BlackwellRecipe sets kv-cache-dtype fp8 on Blackwell GPUs; keep it only after checking outputs on your prompts
Flag and version checkConfirm the auto behavior for your model in the release you runConfirm the flag name, supported attention backends and hardware in the vLLM release notes before rollout

How to enable and verify FP8 KV cache on a vLLM server

This sequence turns on FP8 KV cache for a vLLM server only after the GPU, version and recipe are confirmed, and it ends with evidence from startup logs, test requests and the /metrics endpoint that the cache is in use and can be rolled back.

  1. Confirm GPU generation and vLLM version

    The platform engineer checks the GPU model and driver stack on the target host against the vLLM installation documentation, and confirms the vLLM version in the environment with the vllm version command. Next, they open the recipe for the model family being served (the Llama 3.3 70B and Llama 4 Scout recipes, or the GPT-OSS recipe on Blackwell) and note whether it recommends kv-cache-dtype fp8 for that hardware. The step is complete when the GPU, the vLLM version and the recipe guidance are written into the change record. Confirm the exact FP8 support for your accelerator with the installation documentation before you change anything, because the recipes describe their own hardware layouts.

  2. Add kv-cache-dtype fp8 to the serve command

    The engineer adds the flag --kv-cache-dtype fp8 to the existing vllm serve command or its deployment configuration, and changes nothing else in the same change. Keeping the model, tensor parallel size, context length and memory utilization identical to the current baseline lets any later difference be traced to the cache format. The step is complete when the command or manifest diff shows only this flag added and the change is committed to version control. Record the previous command so the rollback step has an exact reference.

  3. Start the server and confirm it is healthy

    The engineer starts the server with the updated command in a staging environment that matches production hardware. They wait for the model to load and then call the health endpoint and list the models through the OpenAI-compatible API to confirm the server answers. If the server fails to start, the engineer captures the error and returns to the previous command before investigating further. The step is complete when the health check and model listing both succeed on the new configuration.

  4. Check startup logs for cache allocation

    The engineer reads the startup log and looks for the KV cache sizing lines that vLLM prints as it allocates memory, then compares the reported KV cache capacity with the same log from the baseline run without the flag. A larger number of cacheable tokens, with the cache dtype reported as FP8, shows that the setting took effect. If the log still reports the original dtype or the capacity is unchanged, the flag was not applied, so the engineer checks the command line and the vLLM version before continuing. The step is complete when the log comparison is saved with the change record.

  5. Send baseline and long-context test requests

    The engineer sends a short baseline prompt and a long-context prompt through the /v1/chat/completions or /v1/completions endpoint, using the same prompts against the baseline and the FP8 configuration. They record the response, the latency and the output for each request, and they compare the answers for task quality against the expected results agreed for the workload. The long-context request should be sized to exercise the context length the workload needs. The step is complete when both requests return valid responses and the outputs are stored for accuracy review.

  6. Watch KV cache use on the metrics endpoint

    The engineer scrapes the Prometheus-format metrics at /metrics while running a concurrent load test, then looks at the KV cache usage metric alongside request counts, token throughput and latency histograms. They confirm that cache usage rises under load and stays within the limit of the allocated cache, and that latency and throughput remain within the targets set for the service. The step is complete when a dashboard or saved query shows the cache, throughput and latency values for the test window. Ask the metrics owner which histogram buckets are configured, since they affect how latency is read.

  7. Roll back to auto if checks fail

    If accuracy, latency or stability checks fail, the engineer removes the --kv-cache-dtype fp8 flag, or sets the cache dtype back to auto, and restarts the server with the recorded previous command. They repeat the health check and one baseline request to confirm the server returns to its prior behavior, then record the failed check and its evidence in the change record. The step is complete when the server runs on the previous configuration and the rollback is documented for the next review.

Where the FP8 KV cache sits in the request path

The request starts with a client calling the OpenAI-compatible endpoints, such as /v1/completions or /v1/chat/completions, through a reverse proxy that allowlists only user-facing paths. The proxy hands the request to the vLLM engine, where the KV cache holds attention state on the GPU. The kv-cache-dtype setting decides whether that cache stores values in fp8 or in the model's automatic dtype. Operators check /metrics for KV cache use after the change, and confirm the trust boundary keeps /metrics and admin paths off the user side.

Request path from client to GPU KV cache, with the trust boundary before the engine.

Accuracy checks to run before switching production traffic

Task quality is the first check, and the only sound basis for the decision is a fixed evaluation set that your team owns. Run the same set against the same model checkpoint, on the same GPU type and the same vLLM release, once with the default kv-cache-dtype auto and once with fp8. Keep every other flag identical so the only variable is the cache format. Results from one configuration do not carry over to another model, GPU or release.

  • Build the set from real traffic: Sample prompts and expected outputs from production logs, with personal data removed, so the set reflects what users actually send.
  • Score with the metric your task needs: Use exact match, a rubric, or a grader model for each task type, and record the scoring method so the comparison is repeatable.
  • Fix the decoding settings: Use the same temperature, seed and maximum output length in both runs, or compare results only when outputs are deterministic.
  • Compare per task category: A small average drop can hide a larger drop on one category, such as code or extraction, so report results by category.
  • Set the acceptance threshold before the run: Agree in writing with the product owner what drop is acceptable before you see the numbers.

Before switching traffic, confirm that the acceptance threshold was written down before the FP8 run was scored.

Security and operations that change with FP8 KV cache

Switching the KV cache to FP8 changes memory and throughput, but it does not change who can reach the server, how nodes talk to each other, or how often the engine changes underneath you. The cards below cover the four operational areas that a KV cache change touches most, and each one should be checked again after the cache dtype is set and after every vLLM upgrade.

Endpoint exposure beyond /v1

The --api-key option does not cover /metrics or /health, nor /invocations, /pause, /resume or /abort_requests. A FP8 KV cache setting that lets more requests run concurrently makes an exposed control endpoint more consequential, not less. Put a reverse proxy in front of the server and allowlist only the routes that users are meant to call. Test each excluded path from outside the network after every change.

vLLM security docs

Node traffic in multi-node runs

The vLLM security docs state that communication between nodes is insecure by default, with no authorization or encryption. Larger batches and longer contexts that FP8 KV cache enables can push more data between tensor or pipeline stages, so the traffic volume grows with the workload. Place all nodes on an isolated network segment, and confirm that no inter-node port is reachable from user networks before you raise concurrency.

KV cache metrics retention

The server exposes Prometheus metrics at /metrics, including KV cache use, request counts and latency histograms. These metrics are the evidence that FP8 KV cache is working, so keep them for at least as long as you keep the before and after accuracy and load results. Record the cache dtype and vLLM version as labels or annotations on each dashboard. Confirm the histogram buckets are set for the latency range your workload actually sees.

vLLM metrics docs

Change control for each release

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. Each release can change how FP8 KV cache is handled, so a setting that passed testing on one version needs a retest on the next. Pin the version in your deployment, read the release notes before each upgrade, and rerun the accuracy checks in a staging environment first.

vLLM releases

What the work costs and what drives the effort

The largest cost of running an FP8 KV cache is usually the GPU capacity underneath vLLM, and that cost recurs for as long as the service runs. vLLM itself has no paid edition, so the license adds nothing to the bill. The FP8 setting changes the economics only indirectly: halving KV cache memory can let the same accelerators hold more concurrent requests or longer context, which may or may not reduce the number of GPUs you need. Whether it does depends on your model, context lengths and traffic, so ask the partner to show the memory arithmetic for your own hardware before the scope assumes any capacity saving.

Engineering time is the cost that front-loads the project. Someone has to build an evaluation set that represents your prompts, run the baseline and FP8 configurations, compare outputs on the tasks that matter, and decide which recipes and flags move to production. Effort rises when you run several models, because each one needs its own accuracy checks, and when regulated evidence is required, because the test records, configuration baselines and sign-off trail must be kept. Effort falls when there is a single model and a working evaluation harness already in place, since the work becomes a controlled comparison rather than a new test program. Operations then adds a recurring cost: rerunning the accuracy checks after each vLLM minor release, which currently ships about every two weeks, and after any model or driver change.

In the written scope, request the GPU type, count and hosting arrangement used for the sizing, the list of models and context lengths covered, the evaluation datasets and who owns them, the number of configurations compared, and the retest cycle for upgrades. Ask which items are one-time (harness build, initial comparison, rollout runbook) and which recur (retesting, monitoring of KV cache use through the vLLM metrics endpoint, and maintenance). A quote that cannot state these items is not yet a scope you can compare against an internal estimate.

Questions buyers ask about FP8 KV cache in vLLM

Does running FP8 KV cache in vLLM cost money?

No separate license fee applies. vLLM is open source under the Apache-2.0 license, and the kv-cache-dtype option is part of the same engine. The costs come from GPU or other accelerator capacity, the infrastructure around it, implementation and the people who operate it. FP8 KV cache can change the math because cached tokens take less memory, which may allow more concurrent requests or longer context on the same hardware. Whether that reduces the number of accelerators you need depends on your traffic, context lengths and model. Recurring costs are the capacity you rent or depreciate and the staff time to monitor the system and retest after upgrades. One-time costs are the implementation, the accuracy evaluation and the rollout. When you ask for a quote, confirm which of these items it covers and which ones stay with your team.

Can our own team turn on FP8 KV cache without outside help?

Yes, if your team already runs vLLM and can change serving flags. Enabling the option is a configuration change, and the vLLM documentation and model recipes show where it goes. The harder part is showing the change is safe. Your team needs a baseline configuration, a repeatable evaluation on your own prompts, a comparison of outputs with the option on and off, and load tests that reflect your real concurrency and context lengths. Teams without GPU operations experience, or teams with strict change control, often bring in outside help for the evaluation, the rollout or a reference deployment. Before deciding, check whether you have people who can read the Prometheus metrics the server exposes, interpret KV cache use and roll back a configuration quickly.

What does accuracy testing for an FP8 KV cache involve?

Accuracy testing compares the same model with the default cache dtype and with fp8, using identical checkpoints, container images, hardware, sampling settings and prompts. The evaluation set should represent your production tasks, not a public benchmark alone. Score task quality, formatting, refusal behavior and error rates, and include the context lengths you actually serve, because cache precision effects grow with sequence length. Record the vLLM version used for each run, since vLLM ships new minor releases about every two weeks and results apply to one version. Write acceptance thresholds before running the tests, and have someone review the failures, not only the averages. Keep the dataset, scripts and results so the same test can run again after each upgrade.

Does FP8 KV cache work on every GPU vLLM supports?

Not necessarily. vLLM runs on NVIDIA CUDA, AMD ROCm and Intel XPU GPUs, and on several CPU architectures, but support for a given cache dtype depends on the accelerator, the driver, the vLLM version and the attention backend that gets selected. Model recipes show the option in use on specific hardware. The recipe for Llama 3.3 70B recommends fp8 KV cache, and the GPT-OSS recipe sets it on Blackwell GPUs, but those examples do not establish support for every GPU. Confirm support for your exact GPU model, driver and vLLM release with a short test that logs the attention backend and fails visibly if the server falls back to another setting. Check the vLLM installation documentation for your platform, and treat any hardware plugin outside the main repository as a separate question.

How long does enabling FP8 KV cache take, and what drives it?

The timeline depends on how many models, GPU types and serving configurations are in scope, how much evaluation data already exists, and how long your change process takes to approve a production change. One model on one known GPU type with an existing evaluation set moves quickly. Several models across mixed hardware, with new evaluation sets and a staged rollout, takes longer. Other drivers include whether the target hardware is already provisioned, whether staging mirrors production, and how much load testing your traffic profile needs. DeployOpen works on fixed scope, and scope, deliverables and timelines are agreed in writing before work starts. Ask for the timeline as milestones tied to these inputs, and ask which inputs you must supply and by when.

What should we send when requesting a quote for this work?

Send the models and their exact checkpoint sources, the GPU models and counts, the vLLM version you run or plan to run, and the platform you deploy on, such as bare metal, virtual machines or Kubernetes. Include your current serving flags and a traffic profile with concurrency, typical and maximum context lengths and latency targets. Describe the evaluation you need, including whether you already have a test dataset and what acceptance criteria apply. State whether you need load tests, monitoring set up on the metrics endpoint, handover documentation or ongoing retesting after upgrades, which is offered as a retainer. Name who approves production changes. DeployOpen does not publish a price list, and a quote follows from the written scope.

Does enabling FP8 KV cache change the model weights?

No. The kv-cache-dtype setting changes how vLLM stores the attention keys and values it computes while serving requests. It does not change the weights in your checkpoint, and you do not produce a new model file to turn it on. Weight quantization is a separate decision with its own format, kernels and accuracy profile, so it needs its own review. The practical result is that rollback is a configuration change, and the model artifacts stay the same for change records. Output can still shift slightly when cache precision changes, so the accuracy testing described above still applies. Confirm this behavior for your vLLM version in the documentation before recording it in your change management files.

Which related quantization decisions to make alongside the KV cache

The KV cache dtype and the model weight format are two separate decisions, and they should be tested together rather than settled in isolation. Setting --kv-cache-dtype fp8 changes only how attention keys and values are stored during generation. It does not change the precision of the weights, so a model served in BF16 with an FP8 cache, or an FP8 checkpoint with a BF16 cache, are both valid combinations that produce different memory budgets and different accuracy profiles. Before enabling anything, decide which GPU generation you run on, because that determines which weight formats are fast there and which cache formats are supported at all.

The sibling pages cover the surrounding choices. Start with the choosing-a-method page to pick FP8, NVFP4, AWQ, GPTQ or INT8 for your hardware and whether a pre-quantized checkpoint exists for your model. If you select FP8 weights, the serving FP8 models page covers the checkpoint types, online quantization and the accuracy checks to run before moving production traffic. Once the format is fixed, the performance tuning and GPU sizing page explains how the freed KV cache memory translates into batch size, concurrency and context length for your workload.

Treat the combination as one candidate configuration. Record the weight format, the cache dtype, the vLLM version and the GPU type, then run the same evaluation set against each variant you are considering, including the baseline with a BF16 cache. Confirm the exact supported combinations for your vLLM release in the vLLM GitHub releases and the model's recipe before you commit, since support for specific cache and weight pairings can change between minor releases.

How DeployOpen scopes and delivers FP8 KV cache work

DeployOpen treats FP8 KV cache as a configuration change that needs measured proof before it reaches production traffic. We scope the change against your models, GPUs and vLLM release, build it inside your infrastructure, and hand over evidence your team and reviewers can check.

How we scope

  • We confirm the vLLM release, GPU generations, model list and target context lengths before any configuration work starts.
  • The written scope names which deployments enable kv-cache-dtype fp8 and which stay on the default cache format.
  • Accuracy test sets, latency and throughput targets, and the sign-off owner are agreed in writing before work begins.

How we build

  • We build a baseline with the default KV cache, then compare memory use, concurrency and output quality with FP8 enabled.
  • Launch arguments, container images and deployment manifests are versioned so each FP8 setting can be traced and reproduced.
  • We run regression prompts and evaluations on your workloads, recording where FP8 output differs from the baseline.

How we hand over

  • You receive the configuration, a written accuracy and capacity report, and the rollback steps for returning to the default cache.
  • Runbooks explain how to watch KV cache usage and latency metrics at /metrics after the change reaches production.
  • Your engineers are walked through the test results so they can repeat the checks when models or vLLM versions change.

How we support

  • Engagements are fixed-scope, so the deliverables and acceptance tests are defined before the build starts.
  • Ongoing support, upgrades and retesting after each vLLM release are available as a retainer.
  • Confirm with us which KV cache settings your vLLM version and GPU generation support before planning the change.

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.