vllm - 💡(How to fix) Fix [Performance]: KV Cache FP8 unexpectedly slow on batched serving [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
vllm-project/vllm#39106Fetched 2026-04-08 03:01:55
View on GitHub
Comments
1
Participants
2
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
commented ×1labeled ×1

When benchmarking FP8 vs BF16 on gpt-oss-20b with vLLM on a single H100, FP8 performs as expected (equal or slightly better) for single-concurrency workloads, but is ~10% slower than BF16 under a concurrent mixed-length workload (concurrency 8, 150 requests, ~20K input tokens).

Root Cause

When benchmarking FP8 vs BF16 on gpt-oss-20b with vLLM on a single H100, FP8 performs as expected (equal or slightly better) for single-concurrency workloads, but is ~10% slower than BF16 under a concurrent mixed-length workload (concurrency 8, 150 requests, ~20K input tokens).

Code Example

python3 -m vllm.entrypoints.openai.api_server \
    --model openai/gpt-oss-20b \
    --kv-cache-dtype "fp8" \
    --no-enable-prefix-caching

---

python3 -m vllm.entrypoints.openai.api_server \
    --model openai/gpt-oss-20b \
    --no-enable-prefix-caching

---

The output of `python collect_env.py`
RAW_BUFFERClick to expand / collapse

Proposal to improve performance

No response

Report of performance regression

Summary

When benchmarking FP8 vs BF16 on gpt-oss-20b with vLLM on a single H100, FP8 performs as expected (equal or slightly better) for single-concurrency workloads, but is ~10% slower than BF16 under a concurrent mixed-length workload (concurrency 8, 150 requests, ~20K input tokens).

Environment

  • Model: openai/gpt-oss-20b
  • vLLM version: 0.19.0
  • GPU: 1x H100

FP8:

python3 -m vllm.entrypoints.openai.api_server \
    --model openai/gpt-oss-20b \
    --kv-cache-dtype "fp8" \
    --no-enable-prefix-caching

BF16:

python3 -m vllm.entrypoints.openai.api_server \
    --model openai/gpt-oss-20b \
    --no-enable-prefix-caching

Benchmark Setup

Short context (concurrency 1, 10 requests, 512 in / 512 out):

vllm bench serve --dataset-name sonnet --sonnet-input-len 512 --sonnet-output-len 512 --max-concurrency 1 --num-prompts 10

Long context (concurrency 1, 10 requests, 130K in / 512 out):

vllm bench serve --dataset-name sonnet --sonnet-input-len 130000 --sonnet-output-len 512 --max-concurrency 1 --num-prompts 10

Concurrent mixed (concurrency 8, 150 requests, ~20K in / ~2K out, ±15% range):

vllm bench serve --dataset-name random --random-input-len 20000 --random-output-len 2000 --random-range-ratio 0.15 --max-concurrency 8 --num-prompts 150

Results

MetricShort FP8Short BF16Long FP8Long BF16Concurrent FP8Concurrent BF16
Output tok/s253.45256.3568.4962.95801.71882.32
Req/s0.500.500.130.120.400.44
Mean TTFT (ms)22.4421.985141.555669.58823.15540.21
Mean TPOT (ms)3.913.864.574.829.428.65
Mean ITL (ms)3.913.864.825.009.468.67
P99 ITL (ms)4.084.035.035.2652.6552.06

Observations

  • Short context: FP8 has slight quantization overheads that aren't amortized (expected)
  • Long context: FP8 ~9% faster on TTFT, ~5% faster on decode (expected)
  • Concurrent mixed: BF16 is ~10% higher throughput, ~34% lower TTFT, ~8% lower TPOT — unexpected

I am wondering what could be going wrong here?

Misc discussion on performance

No response

Your current environment (if you think it is necessary)

The output of `python collect_env.py`

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.

extent analysis

TL;DR

Investigate the impact of quantization overheads and concurrency on FP8 performance in the vllm framework.

Guidance

  • Verify that the --kv-cache-dtype "fp8" flag is correctly set and that the FP8 quantization is properly configured for the gpt-oss-20b model.
  • Check the performance difference between FP8 and BF16 under various concurrency levels to isolate the issue.
  • Consider running additional benchmarks with different input lengths and concurrency levels to further understand the performance regression.
  • Review the vllm framework documentation to ensure that the FP8 quantization is correctly implemented and optimized for concurrent workloads.

Example

No specific code snippet is provided, but the user can try modifying the python3 -m vllm.entrypoints.openai.api_server command to experiment with different quantization settings and concurrency levels.

Notes

The performance regression may be related to the quantization overheads of FP8, which may not be amortized under concurrent workloads. Further investigation is needed to determine the root cause of the issue.

Recommendation

Apply a workaround by experimenting with different quantization settings and concurrency levels to find an optimal configuration for the gpt-oss-20b model. This may involve adjusting the --kv-cache-dtype flag or modifying the benchmark setup to better match the expected use case.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING