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
114d7270
Unverified
Commit
114d7270
authored
Jun 17, 2024
by
Kuntai Du
Committed by
GitHub
Jun 17, 2024
Browse files
[CI] Avoid naming different metrics with the same name in performance benchmark (#5615)
parent
32c86e49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
.buildkite/nightly-benchmarks/scripts/convert-results-json-to-markdown.py
...ly-benchmarks/scripts/convert-results-json-to-markdown.py
+14
-7
No files found.
.buildkite/nightly-benchmarks/scripts/convert-results-json-to-markdown.py
View file @
114d7270
...
@@ -15,10 +15,10 @@ latency_column_mapping = {
...
@@ -15,10 +15,10 @@ latency_column_mapping = {
"avg_latency"
:
"Mean latency (ms)"
,
"avg_latency"
:
"Mean latency (ms)"
,
# "P10": "P10 (s)",
# "P10": "P10 (s)",
# "P25": "P25 (s)",
# "P25": "P25 (s)",
"P50"
:
"Median"
,
"P50"
:
"Median
latency (ms)
"
,
# "P75": "P75 (s)",
# "P75": "P75 (s)",
# "P90": "P90 (s)",
# "P90": "P90 (s)",
"P99"
:
"P99"
,
"P99"
:
"P99
latency (ms)
"
,
}
}
# throughput tests and the keys that will be printed into markdown
# throughput tests and the keys that will be printed into markdown
...
@@ -43,15 +43,14 @@ serving_column_mapping = {
...
@@ -43,15 +43,14 @@ serving_column_mapping = {
# "input_throughput": "Input Tput (tok/s)",
# "input_throughput": "Input Tput (tok/s)",
# "output_throughput": "Output Tput (tok/s)",
# "output_throughput": "Output Tput (tok/s)",
"mean_ttft_ms"
:
"Mean TTFT (ms)"
,
"mean_ttft_ms"
:
"Mean TTFT (ms)"
,
# do not say TTFT again to avoid the table getting too wide
"median_ttft_ms"
:
"Median TTFT (ms)"
,
"median_ttft_ms"
:
"Median"
,
"p99_ttft_ms"
:
"P99 TTFT (ms)"
,
"p99_ttft_ms"
:
"P99"
,
# "mean_tpot_ms": "Mean TPOT (ms)",
# "mean_tpot_ms": "Mean TPOT (ms)",
# "median_tpot_ms": "Median",
# "median_tpot_ms": "Median",
# "p99_tpot_ms": "P99",
# "p99_tpot_ms": "P99",
"mean_itl_ms"
:
"Mean ITL (ms)"
,
"mean_itl_ms"
:
"Mean ITL (ms)"
,
"median_itl_ms"
:
"Median"
,
"median_itl_ms"
:
"Median
ITL (ms)
"
,
"p99_itl_ms"
:
"P99"
,
"p99_itl_ms"
:
"P99
ITL (ms)
"
,
}
}
...
@@ -183,3 +182,11 @@ if __name__ == "__main__":
...
@@ -183,3 +182,11 @@ if __name__ == "__main__":
serving_tests_markdown_table
=
serving_md_table
,
serving_tests_markdown_table
=
serving_md_table
,
benchmarking_results_in_json_string
=
processed_results_json
)
benchmarking_results_in_json_string
=
processed_results_json
)
f
.
write
(
results
)
f
.
write
(
results
)
# document benchmarking results in json
with
open
(
results_folder
/
"benchmark_results.json"
,
"w"
)
as
f
:
results
=
latency_results
.
to_dict
(
orient
=
'records'
)
+
throughput_results
.
to_dict
(
orient
=
'records'
)
+
serving_results
.
to_dict
(
orient
=
'records'
)
f
.
write
(
json
.
dumps
(
results
))
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