Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
norm
vllm
Commits
5dd80d37
"...text-generation-inference.git" did not exist on "d71237fc8b6fd82407b0e27b58cd32c61f2ab6cb"
Unverified
Commit
5dd80d37
authored
Dec 11, 2023
by
Woosuk Kwon
Committed by
GitHub
Dec 11, 2023
Browse files
Fix latency benchmark script (#2035)
parent
beeee69b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmarks/benchmark_latency.py
benchmarks/benchmark_latency.py
+1
-1
No files found.
benchmarks/benchmark_latency.py
View file @
5dd80d37
...
@@ -72,7 +72,7 @@ def main(args: argparse.Namespace):
...
@@ -72,7 +72,7 @@ def main(args: argparse.Namespace):
# Benchmark.
# Benchmark.
latencies
=
[]
latencies
=
[]
for
_
in
tqdm
(
range
(
args
.
num_iters
),
desc
=
"Profiling iterations"
):
for
_
in
tqdm
(
range
(
args
.
num_iters
),
desc
=
"Profiling iterations"
):
latencies
.
append
(
run_to_completion
(
profile
=
Fals
e
))
latencies
.
append
(
run_to_completion
(
profile
_dir
=
Non
e
))
print
(
f
'Avg latency:
{
np
.
mean
(
latencies
)
}
seconds'
)
print
(
f
'Avg latency:
{
np
.
mean
(
latencies
)
}
seconds'
)
...
...
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