mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-15 20:25:51 +08:00
[Model] fix ernie45 reasoning_parser (#27973)
Signed-off-by: wangyafeng <wangyafeng@baidu.com>
This commit is contained in:
parent
58279c60b5
commit
43a6acfb7d
@ -36,8 +36,8 @@ class Ernie45ReasoningParser(BaseThinkingReasoningParser):
|
|||||||
"""The token that ends reasoning content."""
|
"""The token that ends reasoning content."""
|
||||||
return "</think>"
|
return "</think>"
|
||||||
|
|
||||||
def __init__(self, tokenizer: PreTrainedTokenizerBase):
|
def __init__(self, tokenizer: PreTrainedTokenizerBase, *args, **kwargs):
|
||||||
super().__init__(tokenizer)
|
super().__init__(tokenizer, *args, **kwargs)
|
||||||
|
|
||||||
if not self.model_tokenizer:
|
if not self.model_tokenizer:
|
||||||
raise ValueError(
|
raise ValueError(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user