da03 commited on
Commit
842cea9
1 Parent(s): e835410

change bos/eos/pad to <|endoftext|>

Browse files
Files changed (4) hide show
  1. config.json +4 -4
  2. generation_config.json +3 -3
  3. tokenizer.json +1 -19
  4. tokenizer_config.json +2 -18
config.json CHANGED
@@ -1,12 +1,12 @@
1
  {
2
- "_name_or_path": "ahxt/LiteLlama-460M-1T",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
- "bos_token_id": 1,
9
- "eos_token_id": 2,
10
  "hidden_act": "silu",
11
  "hidden_size": 1024,
12
  "initializer_range": 0.02,
@@ -17,7 +17,7 @@
17
  "num_attention_heads": 16,
18
  "num_hidden_layers": 24,
19
  "num_key_value_heads": 2,
20
- "pad_token_id": 0,
21
  "pretraining_tp": 1,
22
  "rms_norm_eps": 1e-06,
23
  "rope_scaling": null,
 
1
  {
2
+ "_name_or_path": "yuntian-deng/LiteLlama-460M-1T",
3
  "architectures": [
4
  "LlamaForCausalLM"
5
  ],
6
  "attention_bias": false,
7
  "attention_dropout": 0.0,
8
+ "bos_token_id": 50256,
9
+ "eos_token_id": 50256,
10
  "hidden_act": "silu",
11
  "hidden_size": 1024,
12
  "initializer_range": 0.02,
 
17
  "num_attention_heads": 16,
18
  "num_hidden_layers": 24,
19
  "num_key_value_heads": 2,
20
+ "pad_token_id": 50256,
21
  "pretraining_tp": 1,
22
  "rms_norm_eps": 1e-06,
23
  "rope_scaling": null,
generation_config.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
  "_from_model_config": true,
3
- "bos_token_id": 1,
4
- "eos_token_id": 2,
5
- "pad_token_id": 0,
6
  "transformers_version": "4.38.0.dev0"
7
  }
 
1
  {
2
  "_from_model_config": true,
3
+ "bos_token_id": 50256,
4
+ "eos_token_id": 50256,
5
+ "pad_token_id": 50256,
6
  "transformers_version": "4.38.0.dev0"
7
  }
tokenizer.json CHANGED
@@ -3,24 +3,6 @@
3
  "truncation": null,
4
  "padding": null,
5
  "added_tokens": [
6
- {
7
- "id": 1,
8
- "content": "\"",
9
- "single_word": false,
10
- "lstrip": false,
11
- "rstrip": false,
12
- "normalized": true,
13
- "special": true
14
- },
15
- {
16
- "id": 2,
17
- "content": "#",
18
- "single_word": false,
19
- "lstrip": false,
20
- "rstrip": false,
21
- "normalized": true,
22
- "special": true
23
- },
24
  {
25
  "id": 50256,
26
  "content": "<|endoftext|>",
@@ -100320,4 +100302,4 @@
100320
  "Ġg azed"
100321
  ]
100322
  }
100323
- }
 
3
  "truncation": null,
4
  "padding": null,
5
  "added_tokens": [
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6
  {
7
  "id": 50256,
8
  "content": "<|endoftext|>",
 
100302
  "Ġg azed"
100303
  ]
100304
  }
100305
+ }
tokenizer_config.json CHANGED
@@ -2,22 +2,6 @@
2
  "add_bos_token": false,
3
  "add_prefix_space": false,
4
  "added_tokens_decoder": {
5
- "1": {
6
- "content": "\"",
7
- "lstrip": false,
8
- "normalized": true,
9
- "rstrip": false,
10
- "single_word": false,
11
- "special": true
12
- },
13
- "2": {
14
- "content": "#",
15
- "lstrip": false,
16
- "normalized": true,
17
- "rstrip": false,
18
- "single_word": false,
19
- "special": true
20
- },
21
  "50256": {
22
  "content": "<|endoftext|>",
23
  "lstrip": false,
@@ -29,10 +13,10 @@
29
  },
30
  "bos_token": "<|endoftext|>",
31
  "clean_up_tokenization_spaces": true,
32
- "eos_token": "#",
33
  "errors": "replace",
34
  "model_max_length": 1024,
35
- "pad_token": "\"",
36
  "tokenizer_class": "GPT2Tokenizer",
37
  "unk_token": "<|endoftext|>"
38
  }
 
2
  "add_bos_token": false,
3
  "add_prefix_space": false,
4
  "added_tokens_decoder": {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  "50256": {
6
  "content": "<|endoftext|>",
7
  "lstrip": false,
 
13
  },
14
  "bos_token": "<|endoftext|>",
15
  "clean_up_tokenization_spaces": true,
16
+ "eos_token": "<|endoftext|>",
17
  "errors": "replace",
18
  "model_max_length": 1024,
19
+ "pad_token": "<|endoftext|>",
20
  "tokenizer_class": "GPT2Tokenizer",
21
  "unk_token": "<|endoftext|>"
22
  }