Skip to content

[Performance]: Performance comparison for v1 engine and v0 engine #17540

Open
@hustxiayang

Description

@hustxiayang

Proposal to improve performance

No response

Report of performance regression

Hi, I did a benchmark to compare the performance of v1 engine and v0 engine, using benchmark_serving.py on SharGPT and an internal dataset.

The results for llama3-3-70b-instruct are shown as follows.
ShareGPT:

Image

Our internal dataset:

Image

The average length prompts in our internal dataset is around 9k tokens.
It seems that the performance of the v1 engine is much worse, and it seems that TTFT is much larger for long prompts under a high QPS v1 engine.

Image

For setup details: I used 4 H100s and kserve for both deployments. I used vLLM-0.8.4, using quantization fp8-dynamic.
The launch params for v0 engine:

       '--gpu-memory-utilization=0.90'
       '--tensor-parallel-size=4'
       '--enable-chunked-prefill'
       '--max-num-batched-tokens=8192'
       --enable-auto-tool-choice
       --tool-call-parser=llama3_json

The launch params for v1 engine:

      '--gpu-memory-utilization=0.90'
       '--tensor-parallel-size=4'
       --enable-auto-tool-choice
       --tool-call-parser=llama3_json

The only difference is that for v1 engine, it does not need enable-chunked-prefill and max-num-batched-tokens is already 8192.

Let me know whether it’s a fair comparison.

Misc discussion on performance

No response

Your current environment (if you think it is necessary)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    performancePerformance-related issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions