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
39171c5f
Commit
39171c5f
authored
Apr 09, 2025
by
zhuwenwen
Browse files
add latency
parent
e9389ccc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
0 deletions
+2
-0
benchmarks/benchmark_throughput.py
benchmarks/benchmark_throughput.py
+1
-0
vllm/benchmarks/benchmark_throughput.py
vllm/benchmarks/benchmark_throughput.py
+1
-0
No files found.
benchmarks/benchmark_throughput.py
View file @
39171c5f
...
...
@@ -458,6 +458,7 @@ def main(args: argparse.Namespace):
# TODO(vllm-project/vllm/issues/9778): Count multi-modal token length.
# vllm-chat backend counts the image tokens now
print
(
f
"Latency:
{
elapsed_time
:.
2
f
}
s"
)
print
(
f
"Throughput:
{
len
(
requests
)
/
elapsed_time
:.
2
f
}
requests/s, "
f
"
{
total_num_tokens
/
elapsed_time
:.
2
f
}
total tokens/s, "
f
"
{
total_output_tokens
/
elapsed_time
:.
2
f
}
output tokens/s"
)
...
...
vllm/benchmarks/benchmark_throughput.py
View file @
39171c5f
...
...
@@ -458,6 +458,7 @@ def main(args: argparse.Namespace):
# TODO(vllm-project/vllm/issues/9778): Count multi-modal token length.
# vllm-chat backend counts the image tokens now
print
(
f
"Latency:
{
elapsed_time
:.
2
f
}
s"
)
print
(
f
"Throughput:
{
len
(
requests
)
/
elapsed_time
:.
2
f
}
requests/s, "
f
"
{
total_num_tokens
/
elapsed_time
:.
2
f
}
total tokens/s, "
f
"
{
total_output_tokens
/
elapsed_time
:.
2
f
}
output tokens/s"
)
...
...
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