vllm - 💡(How to fix) Fix [Performance]: llmcompressor W8A8 Inference: decoding stage speed is lower than FP16 [1 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#38697Fetched 2026-04-08 02:23:24
View on GitHub
Comments
0
Participants
1
Timeline
1
Reactions
0
Participants
Timeline (top)
labeled ×1

Root Cause

I found a performance problem in llmcompressor https://github.com/vllm-project/llm-compressor/issues/2549 I examine the trace in perfetto and find that the root cause is W8A8 kernel is slower than FP16 in decoding stage (25us vs 16us).

Code Example

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

Proposal to improve performance

May be a new kernel.

Report of performance regression

I found a performance problem in llmcompressor https://github.com/vllm-project/llm-compressor/issues/2549 I examine the trace in perfetto and find that the root cause is W8A8 kernel is slower than FP16 in decoding stage (25us vs 16us).

<img width="2560" height="1258" alt="Image" src="https://github.com/user-attachments/assets/b709db33-032f-4cf7-b774-0a058413f4c3" /> <img width="2560" height="1220" alt="Image" src="https://github.com/user-attachments/assets/e997022f-bfea-4a83-8e6f-78c7aec91ab9" />

In the smoothquant paper, decoding stage should have 1.35x on OPT-30B with bsz=1, seqlen=512.

<img width="838" height="520" alt="Image" src="https://github.com/user-attachments/assets/2ad09b49-0094-4541-a9f7-5014f0e5cbd0" />

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 and potentially update the kernel used in the llmcompressor to improve performance, specifically considering the decoding stage where the W8A8 kernel is currently slower than FP16.

Guidance

  • Review the performance comparison between W8A8 and FP16 kernels in the decoding stage to understand the root cause of the regression.
  • Examine the SmoothQuant paper's claims about the decoding stage performance to see if there are any specific optimizations or configurations that could be applied to the llmcompressor.
  • Consider testing the llmcompressor with different kernel configurations to verify if switching to a different kernel, such as FP16, improves performance as expected.
  • Look into the collect_env.py output for any relevant environment or configuration details that might be contributing to the performance issue.

Example

No specific code example is provided due to the lack of direct code references in the issue, but investigating kernel configurations and their impact on the decoding stage performance is key.

Notes

The issue seems to be related to a specific performance regression in the llmcompressor, and the provided images and references suggest a comparison between different kernel performances. However, without more details on the current environment and configurations, it's challenging to provide a definitive solution.

Recommendation

Apply workaround: Investigate and potentially update the kernel used in the llmcompressor, as the current W8A8 kernel seems to be the bottleneck in the decoding stage, and there's evidence suggesting that FP16 could offer better performance.

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