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
fe3b5bbc
Unverified
Commit
fe3b5bbc
authored
Apr 17, 2024
by
Elinx
Committed by
GitHub
Apr 17, 2024
Browse files
[Bugfix] fix output parsing error for trtllm backend (#4137)
Co-authored-by:
Roger Wang
<
ywang@roblox.com
>
parent
8438e056
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
benchmarks/backend_request_func.py
benchmarks/backend_request_func.py
+1
-1
No files found.
benchmarks/backend_request_func.py
View file @
fe3b5bbc
...
...
@@ -135,6 +135,7 @@ async def async_request_trt_llm(
"data:"
)
data
=
json
.
loads
(
chunk
)
output
.
generated_text
+=
data
[
"text_output"
]
timestamp
=
time
.
perf_counter
()
# First token
if
ttft
==
0.0
:
...
...
@@ -149,7 +150,6 @@ async def async_request_trt_llm(
most_recent_timestamp
=
timestamp
output
.
latency
=
most_recent_timestamp
-
st
output
.
generated_text
=
json
.
loads
(
data
)[
"text_output"
]
output
.
success
=
True
else
:
...
...
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