Upload tokenizer
Browse files- tokenizer_config.json +6 -0
- tokenizer_utils.py +6 -0
tokenizer_config.json
CHANGED
@@ -9,6 +9,12 @@
|
|
9 |
"special": true
|
10 |
}
|
11 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
"clean_up_tokenization_spaces": true,
|
13 |
"eos_token": "<|endoftext|>",
|
14 |
"max_length": 1024,
|
|
|
9 |
"special": true
|
10 |
}
|
11 |
},
|
12 |
+
"auto_map": {
|
13 |
+
"AutoTokenizer": [
|
14 |
+
"tokenizer_utils.CryptGPTTokenizer",
|
15 |
+
null
|
16 |
+
]
|
17 |
+
},
|
18 |
"clean_up_tokenization_spaces": true,
|
19 |
"eos_token": "<|endoftext|>",
|
20 |
"max_length": 1024,
|
tokenizer_utils.py
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import PreTrainedTokenizerFast
|
2 |
+
|
3 |
+
class CryptGPTTokenizer(PreTrainedTokenizerFast):
|
4 |
+
@staticmethod
|
5 |
+
def clean_up_tokenization(out_string):
|
6 |
+
return out_string.replace(' ', "")
|