Skip to content

Commit

Permalink
[Frontend] Add --version flag to CLI (vllm-project#10369)
Browse files Browse the repository at this point in the history
Signed-off-by: Russell Bryant <[email protected]>
  • Loading branch information
russellb authored Nov 15, 2024
1 parent c014327 commit c9b6756
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions vllm/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from openai import OpenAI
from openai.types.chat import ChatCompletionMessageParam

import vllm.version
from vllm.engine.arg_utils import EngineArgs
from vllm.entrypoints.openai.api_server import run_server
from vllm.entrypoints.openai.cli_args import (make_arg_parser,
Expand Down Expand Up @@ -143,6 +144,11 @@ def main():
env_setup()

parser = FlexibleArgumentParser(description="vLLM CLI")
parser.add_argument('-v',
'--version',
action='version',
version=vllm.version.__version__)

subparsers = parser.add_subparsers(required=True, dest="subparser")

serve_parser = subparsers.add_parser(
Expand Down

0 comments on commit c9b6756

Please sign in to comment.