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
8a93a598
Unverified
Commit
8a93a598
authored
Nov 21, 2024
by
Wang, Yi
Committed by
GitHub
Nov 21, 2024
Browse files
fix the issue that len(tokenizer(prompt)["input_ids"]) > prompt_len (#10524)
Signed-off-by:
Wang, Yi A
<
yi.a.wang@intel.com
>
parent
1cfde82f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
benchmarks/backend_request_func.py
benchmarks/backend_request_func.py
+1
-0
No files found.
benchmarks/backend_request_func.py
View file @
8a93a598
...
...
@@ -54,6 +54,7 @@ async def async_request_tgi(
"do_sample"
:
True
,
"temperature"
:
0.01
,
# TGI does not accept 0.0 temperature.
"top_p"
:
0.99
,
# TGI does not accept 1.0 top_p.
"truncate"
:
request_func_input
.
prompt_len
,
# TGI does not accept ignore_eos flag.
}
payload
=
{
...
...
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