ai-forever commited on
Commit
d7fd75d
1 Parent(s): 9489709

Update tokenizer config (and model config with token ids)

Browse files
Files changed (3) hide show
  1. config.json +16 -8
  2. special_tokens_map.json +31 -0
  3. tokenizer_config.json +58 -0
config.json CHANGED
@@ -1,29 +1,37 @@
1
  {
 
 
 
 
2
  "attn_pdrop": 0.1,
 
3
  "embd_pdrop": 0.1,
4
- "finetuning_task": null,
 
 
 
5
  "initializer_range": 0.02,
6
- "is_decoder": false,
 
 
7
  "layer_norm_epsilon": 1e-05,
 
8
  "n_ctx": 2048,
9
  "n_embd": 1024,
10
  "n_head": 16,
 
11
  "n_layer": 24,
12
  "n_positions": 2048,
13
  "n_special": 0,
14
- "num_labels": 1,
15
- "output_attentions": false,
16
- "output_hidden_states": false,
17
  "output_past": true,
 
18
  "predict_special_tokens": true,
19
- "pruned_heads": {},
20
  "resid_pdrop": 0.1,
21
  "summary_activation": null,
22
  "summary_first_dropout": 0.1,
23
  "summary_proj_to_labels": true,
24
  "summary_type": "cls_index",
25
  "summary_use_proj": true,
26
- "torchscript": false,
27
- "use_bfloat16": false,
28
  "vocab_size": 50257
29
  }
1
  {
2
+ "activation_function": "gelu_new",
3
+ "architectures": [
4
+ "GPT2LMHeadModel"
5
+ ],
6
  "attn_pdrop": 0.1,
7
+ "bos_token_id": 1,
8
  "embd_pdrop": 0.1,
9
+ "eos_token_id": 2,
10
+ "id2label": {
11
+ "0": "LABEL_0"
12
+ },
13
  "initializer_range": 0.02,
14
+ "label2id": {
15
+ "LABEL_0": 0
16
+ },
17
  "layer_norm_epsilon": 1e-05,
18
+ "model_type": "gpt2",
19
  "n_ctx": 2048,
20
  "n_embd": 1024,
21
  "n_head": 16,
22
+ "n_inner": null,
23
  "n_layer": 24,
24
  "n_positions": 2048,
25
  "n_special": 0,
 
 
 
26
  "output_past": true,
27
+ "pad_token_id": 0,
28
  "predict_special_tokens": true,
 
29
  "resid_pdrop": 0.1,
30
  "summary_activation": null,
31
  "summary_first_dropout": 0.1,
32
  "summary_proj_to_labels": true,
33
  "summary_type": "cls_index",
34
  "summary_use_proj": true,
35
+ "use_cache": true,
 
36
  "vocab_size": 50257
37
  }
special_tokens_map.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "</s>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "mask_token": "<mask>",
17
+ "pad_token": {
18
+ "content": "<pad>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ },
24
+ "unk_token": {
25
+ "content": "<unk>",
26
+ "lstrip": false,
27
+ "normalized": true,
28
+ "rstrip": false,
29
+ "single_word": false
30
+ }
31
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "added_tokens_decoder": {
5
+ "0": {
6
+ "content": "<pad>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false,
11
+ "special": true
12
+ },
13
+ "1": {
14
+ "content": "<s>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false,
19
+ "special": true
20
+ },
21
+ "2": {
22
+ "content": "</s>",
23
+ "lstrip": false,
24
+ "normalized": true,
25
+ "rstrip": false,
26
+ "single_word": false,
27
+ "special": true
28
+ },
29
+ "3": {
30
+ "content": "<unk>",
31
+ "lstrip": false,
32
+ "normalized": true,
33
+ "rstrip": false,
34
+ "single_word": false,
35
+ "special": true
36
+ },
37
+ "4": {
38
+ "content": "<mask>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false,
43
+ "special": true
44
+ }
45
+ },
46
+ "bos_token": "<s>",
47
+ "clean_up_tokenization_spaces": true,
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 2048,
52
+ "pad_token": "<pad>",
53
+ "padding_side": "left",
54
+ "tokenizer_class": "GPT2Tokenizer",
55
+ "truncation_side": "left",
56
+ "trust_remote_code": false,
57
+ "unk_token": "<unk>"
58
+ }