update
Browse files- tokenization_qwen.py +1 -0
tokenization_qwen.py
CHANGED
@@ -168,6 +168,7 @@ class QWenTokenizer(PreTrainedTokenizer):
|
|
168 |
self.eod_id = self.tokenizer.eot_token
|
169 |
self.im_start_id = self.special_tokens[IMSTART]
|
170 |
self.im_end_id = self.special_tokens[IMEND]
|
|
|
171 |
|
172 |
def __len__(self) -> int:
|
173 |
return self.tokenizer.n_vocab
|
|
|
168 |
self.eod_id = self.tokenizer.eot_token
|
169 |
self.im_start_id = self.special_tokens[IMSTART]
|
170 |
self.im_end_id = self.special_tokens[IMEND]
|
171 |
+
self.font_path = os.path.dirname(__file__)
|
172 |
|
173 |
def __len__(self) -> int:
|
174 |
return self.tokenizer.n_vocab
|