Skip to content

Conversation

DarkLight1337
Copy link
Member

@DarkLight1337 DarkLight1337 commented Sep 30, 2025

Purpose

vllm serve <model> works now, without having to add --model. So I think it's safe to just change the command directly.

Test Plan

Test Result


Essential Elements of an Effective PR Description Checklist
  • The purpose of the PR, such as "Fix some issue (link existing issues this PR will resolve)".
  • The test plan, such as providing test command.
  • The test results, such as pasting the results comparison before and after, or e2e results
  • (Optional) The necessary documentation update, such as updating supported_models.md and examples for a new model.
  • (Optional) Release notes update. If your change is user facing, please update the release notes draft in the Google Doc.

Copy link
Member

@hmellor hmellor left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates the Dockerfiles to use the vllm serve command as the entrypoint, replacing the direct call to the python module vllm.entrypoints.openai.api_server. This change aligns the Docker images with the recommended command-line interface, improving consistency and user experience. The changes are applied correctly and consistently across the CUDA, CPU, and XPU Dockerfiles. The new entrypoint is backward compatible with existing argument passing conventions. The changes look good and I don't see any issues.

Signed-off-by: DarkLight1337 <[email protected]>
Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

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

Thanks @DarkLight1337!

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) September 30, 2025 17:17
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Sep 30, 2025
@simon-mo
Copy link
Collaborator

For the Docker to be drop in replacement, we need the old flow

docker run .... vllm/vllm-openai --model ABC

to work as well

@DarkLight1337
Copy link
Member Author

Oh, I forgot about vllm serve --model <model> not working, hmm...

@DarkLight1337
Copy link
Member Author

I have updated the CLI parsing logic to deprecate instead of erroring out when vllm serve --model <model> is used.

@DarkLight1337 DarkLight1337 changed the title [CI/Build] Update the Dockerfile to use vllm serve command [CI/Build] Replace vllm.entrypoints.openai.api_server entrypoint with vllm serve command Oct 1, 2025
@mergify mergify bot added documentation Improvements or additions to documentation performance Performance-related issues labels Oct 1, 2025
@DarkLight1337
Copy link
Member Author

@simon-mo can you check again? Mamba kernels test failure is happening on main as well so it can be ignored.

Copy link
Member

@njhill njhill left a comment

Choose a reason for hiding this comment

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

Thanks @DarkLight1337!

Comment on lines 1862 to +1864
"With `vllm serve`, you should provide the model as a "
"positional argument or in a config file instead of via "
"the `--model` option.")
"the `--model` option. "
"The `--model` option will be removed in v0.13.")
Copy link
Member

Choose a reason for hiding this comment

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

Is there any harm in allowing both indefinitely?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am not sure who removed the ability to use --model in the first place. Maybe @mgoin ?

@vllm-bot vllm-bot merged commit d00d652 into vllm-project:main Oct 2, 2025
80 of 84 checks passed
@DarkLight1337 DarkLight1337 deleted the docker-entrypoint branch October 2, 2025 17:05
pdasigi pushed a commit to pdasigi/vllm that referenced this pull request Oct 2, 2025
yewentao256 pushed a commit that referenced this pull request Oct 3, 2025
…th `vllm serve` command (#25967)

Signed-off-by: DarkLight1337 <[email protected]>
Signed-off-by: yewentao256 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci/build documentation Improvements or additions to documentation performance Performance-related issues 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.

5 participants