Skip to content
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

[Frontend] Disallow passing model as both argument and option #7347

Merged
merged 8 commits into from
Aug 12, 2024
Merged
5 changes: 5 additions & 0 deletions vllm/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ def signal_handler(sig, frame):


def serve(args: argparse.Namespace) -> None:
if args.model is not None:
DarkLight1337 marked this conversation as resolved.
Show resolved Hide resolved
raise ValueError(
"In `vllm serve`, you should provide the model as a "
DarkLight1337 marked this conversation as resolved.
Show resolved Hide resolved
"positional argument instead of via the `--model` option.")

# EngineArgs expects the model name to be passed as --model.
args.model = args.model_tag

Expand Down
Loading