fix(tokenizer): 修复stop_ids属性返回错误的token ID列表
This commit is contained in:
@@ -93,7 +93,8 @@ class BpeTokenizer:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def stop_ids(self) -> List[int]:
|
def stop_ids(self) -> List[int]:
|
||||||
stop_ids = self._control_tokens + self._special_tokens
|
stop_token = self._control_tokens + self._special_tokens
|
||||||
|
stop_ids = [self._tokenizer.token_to_id(token) for token in stop_token]
|
||||||
return stop_ids
|
return stop_ids
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user