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
OpenDAS
Lmdeploy
Commits
09c624ce
Unverified
Commit
09c624ce
authored
Jul 31, 2023
by
del-zhenwu
Committed by
GitHub
Jul 31, 2023
Browse files
Fix typo in profile_serving.py (#183)
parent
7e0b75bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmark/profile_serving.py
benchmark/profile_serving.py
+1
-1
No files found.
benchmark/profile_serving.py
View file @
09c624ce
...
@@ -169,7 +169,7 @@ def main(tritonserver_addr: str,
...
@@ -169,7 +169,7 @@ def main(tritonserver_addr: str,
first_token_latency_max
=
np
.
max
(
stats
[:,
0
],
axis
=
0
)
first_token_latency_max
=
np
.
max
(
stats
[:,
0
],
axis
=
0
)
first_token_latency_ave
=
np
.
mean
(
stats
[:,
0
],
axis
=
0
)
first_token_latency_ave
=
np
.
mean
(
stats
[:,
0
],
axis
=
0
)
throughput
=
np
.
sum
(
stats
[:,
1
],
axis
=
0
)
/
elapsed_time
throughput
=
np
.
sum
(
stats
[:,
1
],
axis
=
0
)
/
elapsed_time
print
(
f
'
\n
{
"-"
*
50
}
\n
cocurrency:
{
concurrency
}
\n
'
print
(
f
'
\n
{
"-"
*
50
}
\n
co
n
currency:
{
concurrency
}
\n
'
f
'elapsed_time:
{
elapsed_time
:.
2
f
}
s
\n
'
f
'elapsed_time:
{
elapsed_time
:.
2
f
}
s
\n
'
f
'first_token latency(min, max, ave): '
f
'first_token latency(min, max, ave): '
f
'
{
first_token_latency_min
:.
2
f
}
s,
{
first_token_latency_max
:.
2
f
}
s, '
f
'
{
first_token_latency_min
:.
2
f
}
s,
{
first_token_latency_max
:.
2
f
}
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