Unverified Commit 299252ea authored by Wentao Ye's avatar Wentao Ye Committed by GitHub
Browse files

[CI] Fix pre commit issue (#20782)


Signed-off-by: default avataryewentao256 <zhyanwentao@126.com>
parent d6902ce7
...@@ -216,8 +216,8 @@ class ServingScores(OpenAIServing): ...@@ -216,8 +216,8 @@ class ServingScores(OpenAIServing):
# cross_encoder models defaults to using pad_token. # cross_encoder models defaults to using pad_token.
tokenized_prompts = await asyncio.gather(*( tokenized_prompts = await asyncio.gather(*(
tokenize_async( tokenize_async(
text=t1, # type: ignore[arg-type] text=t1, # type: ignore[arg-type]
text_pair=t2, # type: ignore[arg-type] text_pair=t2, # type: ignore[arg-type]
**tokenization_kwargs) for t1, t2 in input_pairs)) **tokenization_kwargs) for t1, t2 in input_pairs))
else: else:
# `llm as reranker` models defaults to not using pad_token. # `llm as reranker` models defaults to not using pad_token.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment