Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
a067f85e
Unverified
Commit
a067f85e
authored
Nov 15, 2024
by
Russell Bryant
Committed by
GitHub
Nov 15, 2024
Browse files
[Frontend] Add --version flag to CLI (#10369)
Signed-off-by:
Russell Bryant
<
rbryant@redhat.com
>
parent
c76ac49d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vllm/scripts.py
vllm/scripts.py
+6
-0
No files found.
vllm/scripts.py
View file @
a067f85e
...
@@ -9,6 +9,7 @@ import uvloop
...
@@ -9,6 +9,7 @@ import uvloop
from
openai
import
OpenAI
from
openai
import
OpenAI
from
openai.types.chat
import
ChatCompletionMessageParam
from
openai.types.chat
import
ChatCompletionMessageParam
import
vllm.version
from
vllm.engine.arg_utils
import
EngineArgs
from
vllm.engine.arg_utils
import
EngineArgs
from
vllm.entrypoints.openai.api_server
import
run_server
from
vllm.entrypoints.openai.api_server
import
run_server
from
vllm.entrypoints.openai.cli_args
import
(
make_arg_parser
,
from
vllm.entrypoints.openai.cli_args
import
(
make_arg_parser
,
...
@@ -143,6 +144,11 @@ def main():
...
@@ -143,6 +144,11 @@ def main():
env_setup
()
env_setup
()
parser
=
FlexibleArgumentParser
(
description
=
"vLLM CLI"
)
parser
=
FlexibleArgumentParser
(
description
=
"vLLM CLI"
)
parser
.
add_argument
(
'-v'
,
'--version'
,
action
=
'version'
,
version
=
vllm
.
version
.
__version__
)
subparsers
=
parser
.
add_subparsers
(
required
=
True
,
dest
=
"subparser"
)
subparsers
=
parser
.
add_subparsers
(
required
=
True
,
dest
=
"subparser"
)
serve_parser
=
subparsers
.
add_parser
(
serve_parser
=
subparsers
.
add_parser
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment