Skip to content

[Benchmark] Add --async-engine option to benchmark_throughput.py #7964

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

njhill
Copy link
Member

@njhill njhill commented Aug 28, 2024

Uses AsyncLLMEngine interface (rather than LLM)

Will use decoupled front-end depending on whether or not --disable-frontend-multiprocessing is also specified.

Uses AsyncLLMEngine interface (or rather than LLM)

Will use decoupled front-end depending on whether or not
--disable-frontend-multiprocessing is also specified.
@njhill njhill force-pushed the async-llm-eng-bench branch from a7a6e43 to bd5ba81 Compare September 3, 2024 21:44
@njhill njhill changed the title [Benchmark] Add async throughput benchmark [Benchmark] Add --async-engine option to benchmark_throughput.py Sep 3, 2024
@vllm-project vllm-project deleted a comment from github-actions bot Sep 3, 2024
@njhill njhill marked this pull request as ready for review September 3, 2024 21:48
@njhill njhill changed the title [Benchmark] Add --async-engine option to benchmark_throughput.py [Benchmark] Add --async-engine option to benchmark_throughput.py Sep 3, 2024
@njhill njhill added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 3, 2024
Copy link
Collaborator

@comaniac comaniac left a comment

Choose a reason for hiding this comment

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

LGTM. Just a nit

Comment on lines +336 to +340
if args.async_engine:
run_args.append(args.disable_frontend_multiprocessing)
elapsed_time = uvloop.run(run_vllm_async(*run_args))
else:
elapsed_time = run_vllm(*run_args)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nit: better to use kwargs

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, but the list was already passed as regular args so this involved minimal changes.

@robertgshaw2-redhat robertgshaw2-redhat merged commit d4db9f5 into vllm-project:main Sep 4, 2024
47 checks passed
@njhill njhill deleted the async-llm-eng-bench branch September 4, 2024 01:01
Alvant pushed a commit to compressa-ai/vllm that referenced this pull request Oct 26, 2024
LeiWang1999 pushed a commit to LeiWang1999/vllm-bitblas that referenced this pull request Mar 26, 2025
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