mirror of
https://github.com/modelscope/modelscope.git
synced 2025-12-25 20:49:37 +01:00
add kwargs for save_vocabulary
Link: https://code.alibaba-inc.com/Ali-MaaS/MaaS-lib/codereview/13508568
This commit is contained in:
committed by
wenmeng.zwm
parent
dece963ad5
commit
1ce78d648d
@@ -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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user