GItaf commited on
Commit
5f1f885
1 Parent(s): 6592ca3

Model save

Browse files
config.json CHANGED
@@ -1,221 +1,42 @@
1
  {
 
 
2
  "architectures": [
3
- "MyEncoderDecoderModel"
4
  ],
5
- "decoder": {
6
- "_name_or_path": "gpt2",
7
- "activation_function": "gelu_new",
8
- "add_cross_attention": false,
9
- "architectures": [
10
- "GPT2LMHeadModel"
11
- ],
12
- "attn_pdrop": 0.1,
13
- "bad_words_ids": null,
14
- "bos_token_id": 50256,
15
- "chunk_size_feed_forward": 0,
16
- "cross_attention_hidden_size": null,
17
- "decoder_start_token_id": null,
18
- "diversity_penalty": 0.0,
19
- "do_sample": false,
20
- "early_stopping": false,
21
- "embd_pdrop": 0.1,
22
- "encoder_no_repeat_ngram_size": 0,
23
- "eos_token_id": 50256,
24
- "exponential_decay_length_penalty": null,
25
- "finetuning_task": null,
26
- "forced_bos_token_id": null,
27
- "forced_eos_token_id": null,
28
- "id2label": {
29
- "0": "LABEL_0",
30
- "1": "LABEL_1"
31
- },
32
- "initializer_range": 0.02,
33
- "is_decoder": true,
34
- "is_encoder_decoder": false,
35
- "label2id": {
36
- "LABEL_0": 0,
37
- "LABEL_1": 1
38
- },
39
- "layer_norm_epsilon": 1e-05,
40
- "length_penalty": 1.0,
41
- "max_length": 20,
42
- "min_length": 0,
43
- "model_type": "gpt2",
44
- "n_ctx": 1024,
45
- "n_embd": 768,
46
- "n_head": 12,
47
- "n_inner": null,
48
- "n_layer": 12,
49
- "n_positions": 1024,
50
- "no_repeat_ngram_size": 0,
51
- "num_beam_groups": 1,
52
- "num_beams": 1,
53
- "num_return_sequences": 1,
54
- "output_attentions": false,
55
- "output_hidden_states": false,
56
- "output_scores": false,
57
- "pad_token_id": 50256,
58
- "prefix": null,
59
- "problem_type": null,
60
- "pruned_heads": {},
61
- "remove_invalid_values": false,
62
- "reorder_and_upcast_attn": false,
63
- "repetition_penalty": 1.0,
64
- "resid_pdrop": 0.1,
65
- "return_dict": true,
66
- "return_dict_in_generate": false,
67
- "scale_attn_by_inverse_layer_idx": false,
68
- "scale_attn_weights": true,
69
- "sep_token_id": null,
70
- "summary_activation": null,
71
- "summary_first_dropout": 0.1,
72
- "summary_proj_to_labels": true,
73
- "summary_type": "cls_index",
74
- "summary_use_proj": true,
75
- "task_specific_params": {
76
- "text-generation": {
77
- "do_sample": true,
78
- "max_length": 50
79
- }
80
- },
81
- "temperature": 1.0,
82
- "tf_legacy_loss": false,
83
- "tie_encoder_decoder": true,
84
- "tie_word_embeddings": true,
85
- "tokenizer_class": null,
86
- "top_k": 50,
87
- "top_p": 1.0,
88
- "torch_dtype": null,
89
- "torchscript": false,
90
- "transformers_version": "4.21.2",
91
- "typical_p": 1.0,
92
- "use_bfloat16": false,
93
- "use_cache": true,
94
- "vocab_size": 50257
95
- },
96
- "encoder": {
97
- "_name_or_path": "gpt2",
98
- "activation_function": "gelu_new",
99
- "add_cross_attention": false,
100
- "architectures": [
101
- "GPT2LMHeadModel"
102
- ],
103
- "attn_pdrop": 0.1,
104
- "bad_words_ids": null,
105
- "bos_token_id": 50256,
106
- "chunk_size_feed_forward": 0,
107
- "cross_attention_hidden_size": null,
108
- "decoder_start_token_id": null,
109
- "diversity_penalty": 0.0,
110
- "do_sample": false,
111
- "early_stopping": false,
112
- "embd_pdrop": 0.1,
113
- "encoder_no_repeat_ngram_size": 0,
114
- "eos_token_id": 50256,
115
- "exponential_decay_length_penalty": null,
116
- "finetuning_task": null,
117
- "forced_bos_token_id": null,
118
- "forced_eos_token_id": null,
119
- "id2label": {
120
- "0": "LABEL_0",
121
- "1": "LABEL_1",
122
- "2": "LABEL_2",
123
- "3": "LABEL_3",
124
- "4": "LABEL_4",
125
- "5": "LABEL_5",
126
- "6": "LABEL_6",
127
- "7": "LABEL_7",
128
- "8": "LABEL_8",
129
- "9": "LABEL_9",
130
- "10": "LABEL_10",
131
- "11": "LABEL_11",
132
- "12": "LABEL_12",
133
- "13": "LABEL_13",
134
- "14": "LABEL_14",
135
- "15": "LABEL_15"
136
- },
137
- "initializer_range": 0.02,
138
- "is_decoder": false,
139
- "is_encoder_decoder": false,
140
- "label2id": {
141
- "LABEL_0": 0,
142
- "LABEL_1": 1,
143
- "LABEL_10": 10,
144
- "LABEL_11": 11,
145
- "LABEL_12": 12,
146
- "LABEL_13": 13,
147
- "LABEL_14": 14,
148
- "LABEL_15": 15,
149
- "LABEL_2": 2,
150
- "LABEL_3": 3,
151
- "LABEL_4": 4,
152
- "LABEL_5": 5,
153
- "LABEL_6": 6,
154
- "LABEL_7": 7,
155
- "LABEL_8": 8,
156
- "LABEL_9": 9
157
- },
158
- "layer_norm_epsilon": 1e-05,
159
- "length_penalty": 1.0,
160
- "max_length": 20,
161
- "min_length": 0,
162
- "model_type": "gpt2",
163
- "n_ctx": 1024,
164
- "n_embd": 768,
165
- "n_head": 12,
166
- "n_inner": null,
167
- "n_layer": 12,
168
- "n_positions": 1024,
169
- "no_repeat_ngram_size": 0,
170
- "num_beam_groups": 1,
171
- "num_beams": 1,
172
- "num_return_sequences": 1,
173
- "output_attentions": false,
174
- "output_hidden_states": false,
175
- "output_scores": false,
176
- "pad_token_id": 50256,
177
- "prefix": null,
178
- "problem_type": null,
179
- "pruned_heads": {},
180
- "remove_invalid_values": false,
181
- "reorder_and_upcast_attn": false,
182
- "repetition_penalty": 1.0,
183
- "resid_pdrop": 0.1,
184
- "return_dict": true,
185
- "return_dict_in_generate": false,
186
- "scale_attn_by_inverse_layer_idx": false,
187
- "scale_attn_weights": true,
188
- "sep_token_id": null,
189
- "summary_activation": null,
190
- "summary_first_dropout": 0.1,
191
- "summary_proj_to_labels": true,
192
- "summary_type": "cls_index",
193
- "summary_use_proj": true,
194
- "task_specific_params": {
195
- "text-generation": {
196
- "do_sample": true,
197
- "max_length": 50
198
- }
199
- },
200
- "temperature": 1.0,
201
- "tf_legacy_loss": false,
202
- "tie_encoder_decoder": true,
203
- "tie_word_embeddings": true,
204
- "tokenizer_class": null,
205
- "top_k": 50,
206
- "top_p": 1.0,
207
- "torch_dtype": null,
208
- "torchscript": false,
209
- "transformers_version": "4.21.2",
210
- "typical_p": 1.0,
211
- "use_bfloat16": false,
212
- "use_cache": true,
213
- "vocab_size": 50257
214
- },
215
- "is_encoder_decoder": true,
216
- "model_type": "encoder-decoder",
217
  "pad_token_id": 50256,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  "tie_encoder_decoder": true,
219
  "torch_dtype": "float32",
220
- "transformers_version": null
 
 
221
  }
 
1
  {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
  "architectures": [
5
+ "GPT2LMHeadModel"
6
  ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "is_decoder": true,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 1024,
16
+ "n_embd": 768,
17
+ "n_head": 12,
18
+ "n_inner": null,
19
+ "n_layer": 12,
20
+ "n_positions": 1024,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  "pad_token_id": 50256,
22
+ "reorder_and_upcast_attn": false,
23
+ "resid_pdrop": 0.1,
24
+ "scale_attn_by_inverse_layer_idx": false,
25
+ "scale_attn_weights": true,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
31
+ "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 50
35
+ }
36
+ },
37
  "tie_encoder_decoder": true,
38
  "torch_dtype": "float32",
39
+ "transformers_version": "4.21.2",
40
+ "use_cache": true,
41
+ "vocab_size": 50257
42
  }
decoder/config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "gpt2",
3
+ "activation_function": "gelu_new",
4
+ "architectures": [
5
+ "GPT2LMHeadModel"
6
+ ],
7
+ "attn_pdrop": 0.1,
8
+ "bos_token_id": 50256,
9
+ "embd_pdrop": 0.1,
10
+ "eos_token_id": 50256,
11
+ "initializer_range": 0.02,
12
+ "is_decoder": true,
13
+ "layer_norm_epsilon": 1e-05,
14
+ "model_type": "gpt2",
15
+ "n_ctx": 1024,
16
+ "n_embd": 768,
17
+ "n_head": 12,
18
+ "n_inner": null,
19
+ "n_layer": 12,
20
+ "n_positions": 1024,
21
+ "pad_token_id": 50256,
22
+ "reorder_and_upcast_attn": false,
23
+ "resid_pdrop": 0.1,
24
+ "scale_attn_by_inverse_layer_idx": false,
25
+ "scale_attn_weights": true,
26
+ "summary_activation": null,
27
+ "summary_first_dropout": 0.1,
28
+ "summary_proj_to_labels": true,
29
+ "summary_type": "cls_index",
30
+ "summary_use_proj": true,
31
+ "task_specific_params": {
32
+ "text-generation": {
33
+ "do_sample": true,
34
+ "max_length": 50
35
+ }
36
+ },
37
+ "tie_encoder_decoder": true,
38
+ "torch_dtype": "float32",
39
+ "transformers_version": "4.21.2",
40
+ "use_cache": true,
41
+ "vocab_size": 50257
42
+ }
decoder/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
decoder/pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18464304a8ef773ea6d70f3624a250d92ec6af2a8fdf9c71c624a9ef33018d12
3
+ size 510396521
decoder/special_tokens_map.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<|endoftext|>",
4
+ "lstrip": false,
5
+ "normalized": true,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "<|endoftext|>",
11
+ "lstrip": false,
12
+ "normalized": true,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": "<|endoftext|>",
17
+ "unk_token": {
18
+ "content": "<|endoftext|>",
19
+ "lstrip": false,
20
+ "normalized": true,
21
+ "rstrip": false,
22
+ "single_word": false
23
+ }
24
+ }
decoder/tokenizer_config.json ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_bos_token": false,
3
+ "add_prefix_space": false,
4
+ "bos_token": {
5
+ "__type": "AddedToken",
6
+ "content": "<|endoftext|>",
7
+ "lstrip": false,
8
+ "normalized": true,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "eos_token": {
13
+ "__type": "AddedToken",
14
+ "content": "<|endoftext|>",
15
+ "lstrip": false,
16
+ "normalized": true,
17
+ "rstrip": false,
18
+ "single_word": false
19
+ },
20
+ "errors": "replace",
21
+ "model_max_length": 1024,
22
+ "name_or_path": "gpt2",
23
+ "pad_token": null,
24
+ "special_tokens_map_file": null,
25
+ "tokenizer_class": "GPT2Tokenizer",
26
+ "unk_token": {
27
+ "__type": "AddedToken",
28
+ "content": "<|endoftext|>",
29
+ "lstrip": false,
30
+ "normalized": true,
31
+ "rstrip": false,
32
+ "single_word": false
33
+ }
34
+ }
decoder/training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f6ee5b17485d833d04a3e709032c77afd49364c0924dbee58c9fc43f17cedfdc
3
+ size 3311
decoder/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8c7e201492affc507caf6c314ea6771402454c4a2e17357248367cbd485c88e0
3
- size 1020845967
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18464304a8ef773ea6d70f3624a250d92ec6af2a8fdf9c71c624a9ef33018d12
3
+ size 510396521