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
ba991d5c
Unverified
Commit
ba991d5c
authored
Jun 24, 2024
by
Chang Su
Committed by
GitHub
Jun 24, 2024
Browse files
[Bugfix] Fix FlexibleArgumentParser replaces _ with - for actual args (#5795)
parent
1744cc99
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
vllm/utils.py
vllm/utils.py
+7
-1
No files found.
vllm/utils.py
View file @
ba991d5c
...
...
@@ -822,7 +822,13 @@ class FlexibleArgumentParser(argparse.ArgumentParser):
processed_args
=
[]
for
arg
in
args
:
if
arg
.
startswith
(
'--'
):
processed_args
.
append
(
'--'
+
arg
[
len
(
'--'
):].
replace
(
'_'
,
'-'
))
if
'='
in
arg
:
key
,
value
=
arg
.
split
(
'='
,
1
)
key
=
'--'
+
key
[
len
(
'--'
):].
replace
(
'_'
,
'-'
)
processed_args
.
append
(
f
'
{
key
}
=
{
value
}
'
)
else
:
processed_args
.
append
(
'--'
+
arg
[
len
(
'--'
):].
replace
(
'_'
,
'-'
))
else
:
processed_args
.
append
(
arg
)
...
...
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