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
26471636
Unverified
Commit
26471636
authored
Feb 03, 2026
by
Huy Do
Committed by
GitHub
Feb 03, 2026
Browse files
Save startup benchmark results as a list of values (#33629)
Signed-off-by:
Huy Do
<
huydhn@gmail.com
>
parent
9fb27dd3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
4 deletions
+10
-4
vllm/benchmarks/lib/utils.py
vllm/benchmarks/lib/utils.py
+6
-0
vllm/benchmarks/startup.py
vllm/benchmarks/startup.py
+4
-4
No files found.
vllm/benchmarks/lib/utils.py
View file @
26471636
...
...
@@ -47,6 +47,12 @@ def convert_to_pytorch_benchmark_format(
return
records
for
name
,
benchmark_values
in
metrics
.
items
():
if
not
isinstance
(
benchmark_values
,
list
):
raise
TypeError
(
f
"benchmark_values for metric '
{
name
}
' must be a list, "
f
"but got
{
type
(
benchmark_values
).
__name__
}
"
)
record
=
{
"benchmark"
:
{
"name"
:
"vLLM benchmark"
,
...
...
vllm/benchmarks/startup.py
View file @
26471636
...
...
@@ -101,7 +101,7 @@ def save_to_pytorch_benchmark_format(
cold_startup_records
=
convert_to_pytorch_benchmark_format
(
args
=
args
,
metrics
=
{
"avg_cold_startup_time"
:
results
[
"avg_cold_startup_time"
],
"avg_cold_startup_time"
:
[
results
[
"avg_cold_startup_time"
]
]
,
},
extra_info
=
{
"cold_startup_times"
:
results
[
"cold_startup_times"
],
...
...
@@ -114,7 +114,7 @@ def save_to_pytorch_benchmark_format(
cold_compilation_records
=
convert_to_pytorch_benchmark_format
(
args
=
args
,
metrics
=
{
"avg_cold_compilation_time"
:
results
[
"avg_cold_compilation_time"
],
"avg_cold_compilation_time"
:
[
results
[
"avg_cold_compilation_time"
]
]
,
},
extra_info
=
{
"cold_compilation_times"
:
results
[
"cold_compilation_times"
],
...
...
@@ -129,7 +129,7 @@ def save_to_pytorch_benchmark_format(
warm_startup_records
=
convert_to_pytorch_benchmark_format
(
args
=
args
,
metrics
=
{
"avg_warm_startup_time"
:
results
[
"avg_warm_startup_time"
],
"avg_warm_startup_time"
:
[
results
[
"avg_warm_startup_time"
]
]
,
},
extra_info
=
{
"warm_startup_times"
:
results
[
"warm_startup_times"
],
...
...
@@ -142,7 +142,7 @@ def save_to_pytorch_benchmark_format(
warm_compilation_records
=
convert_to_pytorch_benchmark_format
(
args
=
args
,
metrics
=
{
"avg_warm_compilation_time"
:
results
[
"avg_warm_compilation_time"
],
"avg_warm_compilation_time"
:
[
results
[
"avg_warm_compilation_time"
]
]
,
},
extra_info
=
{
"warm_compilation_times"
:
results
[
"warm_compilation_times"
],
...
...
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