Skip to content

Conversation

@comaniac
Copy link
Collaborator

@comaniac comaniac commented Aug 5, 2024

This PR uses non-blocking data transfer in prepare_input. This is beneficial because we transfer several tensors to GPU in prepare_input. Here are some benchmark results using Llama-3.1-8B-Instruct on 1xH100:

Batching

Command:

python3 benchmark_throughput.py \
    --model meta-llama/Meta-Llama-3.1-8B-Instruct \
    --backend vllm \
    --input-len 292 \
    --output-len 579 \
    --num-prompts 1000

Result (I observed some variants so if you ran this multiple times the throughput is actually ranging from 8.15~8.34).

Main:    Throughput: 8.12 requests/s, 7075.74 tokens/s
This PR: Throughput: 8.34 requests/s, 7266.01 tokens/s

Serving

I used a different benchmark framework so no commands here, but the settings are as follows:

  • Input / Output: 550 / 150
  • QPS: 8
  • Duration: 120 seconds
Main:    P90 Latency: TTFT 47.9ms, ITL 12.9ms, E2E 2.0s
This PR: P90 Latency: TTFT 44.8ms, ITL 11.5ms, E2E 1.8s

Reference: https://pytorch.org/tutorials/intermediate/pinmem_nonblock.html

cc @youkaichao

@comaniac comaniac marked this pull request as ready for review August 5, 2024 21:42
@github-actions
Copy link

github-actions bot commented Aug 5, 2024

👋 Hi! Thank you for contributing to the vLLM project.
Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which consists a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of default ones by unblocking the steps in your fast-check build on Buildkite UI.

Once the PR is approved and ready to go, please make sure to run full CI as it is required to merge (or just use auto-merge).

To run full CI, you can do one of these:

  • Comment /ready on the PR
  • Add ready label to the PR
  • Enable auto-merge.

🚀

Copy link
Collaborator

@Yard1 Yard1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@comaniac comaniac added the ready ONLY add when PR is ready to merge/full CI is needed label Aug 5, 2024
@comaniac comaniac enabled auto-merge (squash) August 5, 2024 22:26
@comaniac comaniac merged commit ef527be into vllm-project:main Aug 5, 2024
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
@comaniac comaniac deleted the non-blocking branch January 3, 2025 21:51
LeiWang1999 pushed a commit to LeiWang1999/vllm-bitblas that referenced this pull request Mar 26, 2025
Signed-off-by: LeiWang1999 <leiwang1999@outlook.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready ONLY add when PR is ready to merge/full CI is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants