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
change
sglang
Commits
b1f6d89b
"examples/community/test_tensorrt_controlnet.py" did not exist on "20e92586c1fda968ea3343ba0f44f2b21f3c09d2"
Unverified
Commit
b1f6d89b
authored
Apr 23, 2025
by
Yineng Zhang
Committed by
GitHub
Apr 23, 2025
Browse files
fix: update truss bench_serving (#5683)
parent
7c99103f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/bench_serving.py
python/sglang/bench_serving.py
+2
-2
No files found.
python/sglang/bench_serving.py
View file @
b1f6d89b
...
@@ -295,7 +295,7 @@ async def async_request_truss(
...
@@ -295,7 +295,7 @@ async def async_request_truss(
# NOTE: Some completion API might have a last
# NOTE: Some completion API might have a last
# usage summary response without a token so we
# usage summary response without a token so we
# want to check a token was generated
# want to check a token was generated
if
data
[
"choices"
][
0
][
"
delta"
][
"con
te
n
t"
]:
if
data
[
"choices"
][
0
][
"te
x
t"
]:
timestamp
=
time
.
perf_counter
()
timestamp
=
time
.
perf_counter
()
# First token
# First token
if
ttft
==
0.0
:
if
ttft
==
0.0
:
...
@@ -307,7 +307,7 @@ async def async_request_truss(
...
@@ -307,7 +307,7 @@ async def async_request_truss(
output
.
itl
.
append
(
timestamp
-
most_recent_timestamp
)
output
.
itl
.
append
(
timestamp
-
most_recent_timestamp
)
most_recent_timestamp
=
timestamp
most_recent_timestamp
=
timestamp
generated_text
+=
data
[
"choices"
][
0
][
"
delta"
][
"con
te
n
t"
]
generated_text
+=
data
[
"choices"
][
0
][
"te
x
t"
]
output
.
generated_text
=
generated_text
output
.
generated_text
=
generated_text
output
.
success
=
True
output
.
success
=
True
...
...
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