zyusc commited on
Commit
2d56f53
·
verified ·
1 Parent(s): 7491223

Upload tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +5 -49
tokenizer_config.json CHANGED
@@ -1,51 +1,7 @@
1
  {
2
- "add_bos_token": true,
3
- "add_eos_token": false,
4
- "add_prefix_space": null,
5
- "added_tokens_decoder": {
6
- "0": {
7
- "content": "[PAD]",
8
- "lstrip": false,
9
- "normalized": false,
10
- "rstrip": false,
11
- "single_word": false,
12
- "special": true
13
- },
14
- "1": {
15
- "content": "<|im_start|>",
16
- "lstrip": false,
17
- "normalized": false,
18
- "rstrip": false,
19
- "single_word": false,
20
- "special": true
21
- },
22
- "2": {
23
- "content": "<|im_end|>",
24
- "lstrip": false,
25
- "normalized": false,
26
- "rstrip": false,
27
- "single_word": false,
28
- "special": true
29
- }
30
- },
31
- "additional_special_tokens": [
32
- "<|im_start|>",
33
- "<|im_end|>"
34
- ],
35
- "bos_token": "<|im_start|>",
36
- "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
37
- "clean_up_tokenization_spaces": false,
38
- "eos_token": "<|im_end|>",
39
- "legacy": true,
40
- "max_length": 4096,
41
- "model_max_length": 4096,
42
- "pad_token": "[PAD]",
43
- "sp_model_kwargs": {},
44
- "spaces_between_special_tokens": false,
45
- "stride": 0,
46
- "tokenizer_class": "LlamaTokenizer",
47
- "truncation_side": "right",
48
- "truncation_strategy": "longest_first",
49
- "unk_token": null,
50
- "use_default_system_prompt": false
51
  }
 
1
  {
2
+ "tokenizer_class": "GPT2Tokenizer",
3
+ "vocab_size": 50257, // Match this with Mamba's vocab size if needed
4
+ "padding_side": "right",
5
+ "special_tokens_map_file": null,
6
+ "model_max_length": 1024 // Define based on the sequence length your model supports
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  }