Skip to content

Commit 5e8a7d1

Browse files
CSWYF3634076xuebwang-amd
authored andcommitted
[Model] fix ernie45 reasoning_parser (vllm-project#27973)
Signed-off-by: wangyafeng <wangyafeng@baidu.com> Signed-off-by: xuebwang-amd <xuebwang@amd.com>
1 parent 51ffdc5 commit 5e8a7d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vllm/reasoning/ernie45_reasoning_parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ def end_token(self) -> str:
3636
"""The token that ends reasoning content."""
3737
return "</think>"
3838

39-
def __init__(self, tokenizer: PreTrainedTokenizerBase):
40-
super().__init__(tokenizer)
39+
def __init__(self, tokenizer: PreTrainedTokenizerBase, *args, **kwargs):
40+
super().__init__(tokenizer, *args, **kwargs)
4141

4242
if not self.model_tokenizer:
4343
raise ValueError(

0 commit comments

Comments
 (0)