[CI] Fix pre commit issue (#20782)

Signed-off-by: yewentao256 <zhyanwentao@126.com>
This commit is contained in:
Wentao Ye 2025-07-10 15:48:13 -04:00 committed by GitHub
parent d6902ce79f
commit 299252ea82
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,8 +216,8 @@ class ServingScores(OpenAIServing):
# cross_encoder models defaults to using pad_token.
tokenized_prompts = await asyncio.gather(*(
tokenize_async(
text=t1, # type: ignore[arg-type]
text_pair=t2, # type: ignore[arg-type]
text=t1, # type: ignore[arg-type]
text_pair=t2, # type: ignore[arg-type]
**tokenization_kwargs) for t1, t2 in input_pairs))
else:
# `llm as reranker` models defaults to not using pad_token.