Mousumi44 commited on
Commit
4883011
1 Parent(s): a6b755e

finetune bart

Browse files
config.json ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "facebook/bart-base",
3
+ "activation_dropout": 0.1,
4
+ "activation_function": "gelu",
5
+ "add_bias_logits": false,
6
+ "add_final_layer_norm": false,
7
+ "architectures": [
8
+ "BartForConditionalGeneration"
9
+ ],
10
+ "attention_dropout": 0.1,
11
+ "bos_token_id": 0,
12
+ "classif_dropout": 0.1,
13
+ "classifier_dropout": 0.0,
14
+ "d_model": 768,
15
+ "decoder_attention_heads": 12,
16
+ "decoder_ffn_dim": 3072,
17
+ "decoder_layerdrop": 0.0,
18
+ "decoder_layers": 6,
19
+ "decoder_start_token_id": 2,
20
+ "dropout": 0.1,
21
+ "early_stopping": true,
22
+ "encoder_attention_heads": 12,
23
+ "encoder_ffn_dim": 3072,
24
+ "encoder_layerdrop": 0.0,
25
+ "encoder_layers": 6,
26
+ "eos_token_id": 2,
27
+ "forced_eos_token_id": 2,
28
+ "gradient_checkpointing": false,
29
+ "id2label": {
30
+ "0": "LABEL_0",
31
+ "1": "LABEL_1",
32
+ "2": "LABEL_2"
33
+ },
34
+ "init_std": 0.02,
35
+ "is_encoder_decoder": true,
36
+ "label2id": {
37
+ "LABEL_0": 0,
38
+ "LABEL_1": 1,
39
+ "LABEL_2": 2
40
+ },
41
+ "max_position_embeddings": 1024,
42
+ "model_type": "bart",
43
+ "no_repeat_ngram_size": 3,
44
+ "normalize_before": false,
45
+ "normalize_embedding": true,
46
+ "num_beams": 4,
47
+ "num_hidden_layers": 6,
48
+ "pad_token_id": 1,
49
+ "scale_embedding": false,
50
+ "task_specific_params": {
51
+ "summarization": {
52
+ "length_penalty": 1.0,
53
+ "max_length": 128,
54
+ "min_length": 12,
55
+ "num_beams": 4
56
+ },
57
+ "summarization_cnn": {
58
+ "length_penalty": 2.0,
59
+ "max_length": 142,
60
+ "min_length": 56,
61
+ "num_beams": 4
62
+ },
63
+ "summarization_xsum": {
64
+ "length_penalty": 1.0,
65
+ "max_length": 62,
66
+ "min_length": 11,
67
+ "num_beams": 6
68
+ }
69
+ },
70
+ "torch_dtype": "float32",
71
+ "transformers_version": "4.11.2",
72
+ "use_cache": true,
73
+ "vocab_size": 50265
74
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
optimizer.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:96416e3d1183343edc4b774d748cbba25b56f6390ca48a86025d91f45cb91afe
3
+ size 1115513461
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bc653f4ee13ad952cecf19fa0c60ab678e506552dbf653025063b24873cfa066
3
+ size 557979193
rng_state.pth ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ec6f91e6c66c40ddf9215c66a5a489cfc2e8f9f1cb65622c9f580fa6ef2a2e9
3
+ size 14503
scheduler.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27cfed17e5d3a4b92744fc5e719235b700be5cf6ef9177a64a4958f203c9d962
3
+ size 623
special_tokens_map.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true}}
tokenizer_config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"errors": "replace", "unk_token": {"content": "<unk>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "bos_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "eos_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "add_prefix_space": false, "sep_token": {"content": "</s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "cls_token": {"content": "<s>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "pad_token": {"content": "<pad>", "single_word": false, "lstrip": false, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "mask_token": {"content": "<mask>", "single_word": false, "lstrip": true, "rstrip": false, "normalized": true, "__type": "AddedToken"}, "model_max_length": 1024, "special_tokens_map_file": null, "tokenizer_file": "/home/Mousumi/.cache/huggingface/transformers/a878fcd69bba037c9b1b227f4213579ae43d0aaa9374e167bc6c5f41b1cfeb30.fc9576039592f026ad76a1c231b89aee8668488c671dfbe6616bab2ed298d730", "name_or_path": "facebook/bart-base", "tokenizer_class": "BartTokenizer"}
trainer_state.json ADDED
@@ -0,0 +1,238 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 1.9216,
5
+ "global_step": 75,
6
+ "is_hyper_param_search": false,
7
+ "is_local_process_zero": true,
8
+ "is_world_process_zero": true,
9
+ "log_history": [
10
+ {
11
+ "epoch": 0.05,
12
+ "learning_rate": 2e-05,
13
+ "loss": 9.4747,
14
+ "step": 2
15
+ },
16
+ {
17
+ "epoch": 0.1,
18
+ "learning_rate": 4e-05,
19
+ "loss": 8.5089,
20
+ "step": 4
21
+ },
22
+ {
23
+ "epoch": 0.15,
24
+ "learning_rate": 4.9315068493150684e-05,
25
+ "loss": 7.7975,
26
+ "step": 6
27
+ },
28
+ {
29
+ "epoch": 0.2,
30
+ "learning_rate": 4.794520547945205e-05,
31
+ "loss": 7.2748,
32
+ "step": 8
33
+ },
34
+ {
35
+ "epoch": 0.26,
36
+ "learning_rate": 4.657534246575342e-05,
37
+ "loss": 6.738,
38
+ "step": 10
39
+ },
40
+ {
41
+ "epoch": 0.31,
42
+ "learning_rate": 4.520547945205479e-05,
43
+ "loss": 6.4144,
44
+ "step": 12
45
+ },
46
+ {
47
+ "epoch": 0.36,
48
+ "learning_rate": 4.383561643835617e-05,
49
+ "loss": 5.924,
50
+ "step": 14
51
+ },
52
+ {
53
+ "epoch": 0.41,
54
+ "learning_rate": 4.2465753424657536e-05,
55
+ "loss": 5.4519,
56
+ "step": 16
57
+ },
58
+ {
59
+ "epoch": 0.46,
60
+ "learning_rate": 4.1095890410958905e-05,
61
+ "loss": 4.9919,
62
+ "step": 18
63
+ },
64
+ {
65
+ "epoch": 0.51,
66
+ "learning_rate": 3.9726027397260274e-05,
67
+ "loss": 4.614,
68
+ "step": 20
69
+ },
70
+ {
71
+ "epoch": 0.56,
72
+ "learning_rate": 3.8356164383561644e-05,
73
+ "loss": 4.3804,
74
+ "step": 22
75
+ },
76
+ {
77
+ "epoch": 0.61,
78
+ "learning_rate": 3.698630136986301e-05,
79
+ "loss": 4.1981,
80
+ "step": 24
81
+ },
82
+ {
83
+ "epoch": 0.67,
84
+ "learning_rate": 3.561643835616438e-05,
85
+ "loss": 4.0104,
86
+ "step": 26
87
+ },
88
+ {
89
+ "epoch": 0.72,
90
+ "learning_rate": 3.424657534246575e-05,
91
+ "loss": 3.8835,
92
+ "step": 28
93
+ },
94
+ {
95
+ "epoch": 0.77,
96
+ "learning_rate": 3.287671232876712e-05,
97
+ "loss": 3.7094,
98
+ "step": 30
99
+ },
100
+ {
101
+ "epoch": 0.82,
102
+ "learning_rate": 3.1506849315068496e-05,
103
+ "loss": 3.617,
104
+ "step": 32
105
+ },
106
+ {
107
+ "epoch": 0.87,
108
+ "learning_rate": 3.0136986301369862e-05,
109
+ "loss": 3.5407,
110
+ "step": 34
111
+ },
112
+ {
113
+ "epoch": 0.92,
114
+ "learning_rate": 2.8767123287671234e-05,
115
+ "loss": 3.4392,
116
+ "step": 36
117
+ },
118
+ {
119
+ "epoch": 0.97,
120
+ "learning_rate": 2.7397260273972603e-05,
121
+ "loss": 3.321,
122
+ "step": 38
123
+ },
124
+ {
125
+ "epoch": 1.03,
126
+ "learning_rate": 2.6027397260273973e-05,
127
+ "loss": 3.3597,
128
+ "step": 40
129
+ },
130
+ {
131
+ "epoch": 1.08,
132
+ "learning_rate": 2.4657534246575342e-05,
133
+ "loss": 3.1786,
134
+ "step": 42
135
+ },
136
+ {
137
+ "epoch": 1.13,
138
+ "learning_rate": 2.328767123287671e-05,
139
+ "loss": 3.1039,
140
+ "step": 44
141
+ },
142
+ {
143
+ "epoch": 1.18,
144
+ "learning_rate": 2.1917808219178083e-05,
145
+ "loss": 3.0302,
146
+ "step": 46
147
+ },
148
+ {
149
+ "epoch": 1.23,
150
+ "learning_rate": 2.0547945205479453e-05,
151
+ "loss": 3.0034,
152
+ "step": 48
153
+ },
154
+ {
155
+ "epoch": 1.28,
156
+ "learning_rate": 1.9178082191780822e-05,
157
+ "loss": 2.9383,
158
+ "step": 50
159
+ },
160
+ {
161
+ "epoch": 1.33,
162
+ "learning_rate": 1.780821917808219e-05,
163
+ "loss": 2.9056,
164
+ "step": 52
165
+ },
166
+ {
167
+ "epoch": 1.38,
168
+ "learning_rate": 1.643835616438356e-05,
169
+ "loss": 2.8352,
170
+ "step": 54
171
+ },
172
+ {
173
+ "epoch": 1.44,
174
+ "learning_rate": 1.5068493150684931e-05,
175
+ "loss": 2.802,
176
+ "step": 56
177
+ },
178
+ {
179
+ "epoch": 1.49,
180
+ "learning_rate": 1.3698630136986302e-05,
181
+ "loss": 2.7235,
182
+ "step": 58
183
+ },
184
+ {
185
+ "epoch": 1.54,
186
+ "learning_rate": 1.2328767123287671e-05,
187
+ "loss": 2.7205,
188
+ "step": 60
189
+ },
190
+ {
191
+ "epoch": 1.59,
192
+ "learning_rate": 1.0958904109589042e-05,
193
+ "loss": 2.6843,
194
+ "step": 62
195
+ },
196
+ {
197
+ "epoch": 1.64,
198
+ "learning_rate": 9.589041095890411e-06,
199
+ "loss": 2.6673,
200
+ "step": 64
201
+ },
202
+ {
203
+ "epoch": 1.69,
204
+ "learning_rate": 8.21917808219178e-06,
205
+ "loss": 2.6858,
206
+ "step": 66
207
+ },
208
+ {
209
+ "epoch": 1.74,
210
+ "learning_rate": 6.849315068493151e-06,
211
+ "loss": 2.6202,
212
+ "step": 68
213
+ },
214
+ {
215
+ "epoch": 1.79,
216
+ "learning_rate": 5.479452054794521e-06,
217
+ "loss": 2.6411,
218
+ "step": 70
219
+ },
220
+ {
221
+ "epoch": 1.84,
222
+ "learning_rate": 4.10958904109589e-06,
223
+ "loss": 2.6201,
224
+ "step": 72
225
+ },
226
+ {
227
+ "epoch": 1.9,
228
+ "learning_rate": 2.7397260273972604e-06,
229
+ "loss": 2.6119,
230
+ "step": 74
231
+ }
232
+ ],
233
+ "max_steps": 78,
234
+ "num_train_epochs": 2,
235
+ "total_flos": 1.171669578153984e+16,
236
+ "trial_name": null,
237
+ "trial_params": null
238
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a67c85be9a8ab2d1487d8552ed9a94754687de694df211eb99908f470ce3a8fa
3
+ size 2799
vocab.json ADDED
The diff for this file is too large to render. See raw diff