Skip to content

Commit

Permalink
Fix text input for TRT-LLM (#151)
Browse files Browse the repository at this point in the history
  • Loading branch information
dyastremsky authored Oct 24, 2024
1 parent 723b5f9 commit fc0a8bf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def convert(

payload = {
"model": model_name,
"text_input": text,
"text_input": [text],
"max_tokens": [DEFAULT_TENSORRTLLM_MAX_TOKENS], # default
}
self._add_request_params(payload, config)
Expand Down
8 changes: 4 additions & 4 deletions genai-perf/tests/test_triton_tensorrtllm_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,12 @@ def test_convert_default(self):
"data": [
{
"model": "test_model",
"text_input": "text input one",
"text_input": ["text input one"],
"max_tokens": [DEFAULT_TENSORRTLLM_MAX_TOKENS],
},
{
"model": "test_model",
"text_input": "text input two",
"text_input": ["text input two"],
"max_tokens": [DEFAULT_TENSORRTLLM_MAX_TOKENS],
},
]
Expand Down Expand Up @@ -109,15 +109,15 @@ def test_convert_with_request_parameters(self):
"data": [
{
"model": "test_model",
"text_input": "text input one",
"text_input": ["text input one"],
"ignore_eos": [True],
"max_tokens": [1234],
"stream": [True],
"additional_key": ["additional_value"],
},
{
"model": "test_model",
"text_input": "text input two",
"text_input": ["text input two"],
"ignore_eos": [True],
"max_tokens": [1234],
"stream": [True],
Expand Down

0 comments on commit fc0a8bf

Please sign in to comment.