mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-01-27 16:05:57 +08:00
[Minor] Change warning->warning_once in preprocess (#26455)
Signed-off-by: Zhuohan Li <zhuohan123@gmail.com>
This commit is contained in:
parent
0c52d6ef81
commit
ebf6ef1a9b
@ -69,7 +69,7 @@ class InputPreprocessor:
|
||||
|
||||
def get_bos_token_id(self) -> Optional[int]:
|
||||
if self.tokenizer is None:
|
||||
logger.warning(
|
||||
logger.warning_once(
|
||||
"Using None for BOS token id because tokenizer is not initialized"
|
||||
)
|
||||
return None
|
||||
@ -78,7 +78,7 @@ class InputPreprocessor:
|
||||
|
||||
def get_eos_token_id(self) -> Optional[int]:
|
||||
if self.tokenizer is None:
|
||||
logger.warning(
|
||||
logger.warning_once(
|
||||
"Using None for EOS token id because tokenizer is not initialized"
|
||||
)
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user