add kwargs for save_vocabulary

Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13508568
This commit is contained in:
lukeming.lkm
2023-08-02 18:12:11 +08:00
committed by wenmeng.zwm
parent dece963ad5
commit 1ce78d648d

View File

@@ -150,7 +150,7 @@ class QWenTokenizer(PreTrainedTokenizer):
format(len(ids), self.max_len))
return ids
def save_vocabulary(self, save_directory: str) -> Tuple[str]:
def save_vocabulary(self, save_directory: str, **kwargs) -> Tuple[str]:
"""
Save only the vocabulary of the tokenizer (vocabulary + added tokens).