Skip to content

[bugfix] small fix logic issue #18999

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 1 commit into from
Jun 3, 2025

Conversation

reidliu41
Copy link
Contributor

@reidliu41 reidliu41 commented Jun 1, 2025

Model in vllm serve should only use positional arg.

$ cat /tmp/config.yaml
# config.yaml

model: meta-llama/Meta-Llama-3-8B-Instruct
host: "127.0.0.1"
port: 6379
uvicorn-log-level: "info"

vllm serve  --config /tmp/config.yaml
usage: vllm serve [model_tag] [options]
vllm serve: error: ambiguous option: --model could match --model-impl, --model-loader-extra-config


vllm serve meta-llama/Meta-Llama-3-8B-Instruct --config /tmp/config.yaml
usage: vllm serve [model_tag] [options]
vllm serve: error: ambiguous option: --model could match --model-impl, --model-loader-extra-config

--------------------------------------------
$ cat /tmp/config.yaml
# config.yaml

host: "127.0.0.1"
port: 6379
uvicorn-log-level: "info"

vllm serve meta-llama/Meta-Llama-3-8B-Instruct --config /tmp/config.yaml
INFO:     Started server process [12414]
INFO:     Waiting for application startup.
INFO:     Application startup complete.

@reidliu41 reidliu41 requested a review from hmellor as a code owner June 1, 2025 04:11
Copy link

github-actions bot commented Jun 1, 2025

👋 Hi! Thank you for contributing to the vLLM project.

💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels.

Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run fastcheck CI which starts running only a small and essential subset of CI tests to quickly catch errors. You can run other CI tests on top of those by going to your fastcheck build on Buildkite UI (linked in the PR checks section) and unblock them. If you do not have permission to unblock, ping simon-mo or khluu to add you in our Buildkite org.

Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging.

To run CI, PR reviewers can either: Add ready label to the PR or enable auto-merge.

🚀

@mergify mergify bot added the documentation Improvements or additions to documentation label Jun 1, 2025
Copy link
Member

@DarkLight1337 DarkLight1337 left a comment

Choose a reason for hiding this comment

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

Hmm, I thought we wanted config.yaml to be able to supply model ID as well?

@reidliu41
Copy link
Contributor Author

Since the positional arg for model id, seems will not get model id from somewhere...
I guess the change from: vllm serve and vllm serve --model, both worked, and then changed to only work for vllm serve

@hmellor
Copy link
Member

hmellor commented Jun 2, 2025

Yeah this seems like a bug rather than something we should document

Signed-off-by: reidliu41 <reid201711@gmail.com>
@reidliu41 reidliu41 force-pushed the small-fix-serve-args branch from 0aa4c53 to 2ffcebc Compare June 2, 2025 10:41
@reidliu41 reidliu41 changed the title [doc] small fix - serve_args.md [bugfix] small fix logic issue Jun 2, 2025
@reidliu41
Copy link
Contributor Author

@DarkLight1337 sorry, the previous logic is not rigorous:

sys.argv[1:]
['serve', 'meta-llama/Meta-Llama-3-8B-Instruct', '--config', '/tmp/config.yaml']

'serve' not in sys.argv[1:] → False
'--help' not in sys.argv[1:] → True

if False and True → False

pls merge this one.

@DarkLight1337 DarkLight1337 enabled auto-merge (squash) June 2, 2025 10:57
@github-actions github-actions bot added the ready ONLY add when PR is ready to merge/full CI is needed label Jun 2, 2025
@DarkLight1337 DarkLight1337 merged commit 17430e3 into vllm-project:main Jun 3, 2025
70 of 72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation 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