adithya8 commited on
Commit
95f654a
1 Parent(s): 7bea961

pushing roberta-large trained on Schone Affiliation dataset

Browse files
README.md CHANGED
@@ -1,3 +1,68 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ base_model: roberta-large
6
+ tags:
7
+ - generated_from_trainer
8
+ datasets:
9
+ - schone-affiliation
10
+ model-index:
11
+ - name: final
12
+ results: []
13
+ ---
14
+
15
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
16
+ should probably proofread and complete it, then remove this comment. -->
17
+
18
+ # final
19
+
20
+ This model is a fine-tuned version of [roberta-large](https://huggingface.co/roberta-large) on the GLUE SCHONE_AFF dataset.
21
+ It achieves the following results on the evaluation set:
22
+ - Loss: 0.1011
23
+ - Roc Auc: 0.9877
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 1e-05
43
+ - train_batch_size: 128
44
+ - eval_batch_size: 256
45
+ - seed: 42
46
+ - gradient_accumulation_steps: 2
47
+ - total_train_batch_size: 256
48
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
49
+ - lr_scheduler_type: linear
50
+ - num_epochs: 5.0
51
+
52
+ ### Training results
53
+
54
+ | Training Loss | Epoch | Step | Validation Loss | Roc Auc |
55
+ |:-------------:|:------:|:----:|:---------------:|:-------:|
56
+ | 0.2128 | 0.9985 | 332 | 0.1760 | 0.9613 |
57
+ | 0.184 | 2.0 | 665 | 0.1493 | 0.9730 |
58
+ | 0.1592 | 2.9985 | 997 | 0.1257 | 0.9811 |
59
+ | 0.1464 | 4.0 | 1330 | 0.1069 | 0.9861 |
60
+ | 0.1236 | 4.9925 | 1660 | 0.1011 | 0.9877 |
61
+
62
+
63
+ ### Framework versions
64
+
65
+ - Transformers 4.44.0.dev0
66
+ - Pytorch 2.0.1+cu118
67
+ - Datasets 2.20.0
68
+ - Tokenizers 0.19.1
all_results.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.992481203007519,
3
+ "eval_loss": 0.10110712051391602,
4
+ "eval_roc_auc": 0.9877104952848222,
5
+ "eval_runtime": 36.9454,
6
+ "eval_samples": 16301,
7
+ "eval_samples_per_second": 441.218,
8
+ "eval_steps_per_second": 1.732,
9
+ "total_flos": 4.323837898114577e+16,
10
+ "train_loss": 0.17350520376699516,
11
+ "train_runtime": 2909.4174,
12
+ "train_samples": 85027,
13
+ "train_samples_per_second": 146.124,
14
+ "train_steps_per_second": 0.571
15
+ }
config.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "roberta-large",
3
+ "architectures": [
4
+ "RobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "finetuning_task": "schone_aff",
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 1024,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 4096,
16
+ "label2id": {
17
+ "No": 0,
18
+ "Yes": 1
19
+ },
20
+ "layer_norm_eps": 1e-05,
21
+ "max_position_embeddings": 514,
22
+ "model_type": "roberta",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 24,
25
+ "pad_token_id": 1,
26
+ "position_embedding_type": "absolute",
27
+ "problem_type": "single_label_classification",
28
+ "torch_dtype": "float32",
29
+ "transformers_version": "4.44.0.dev0",
30
+ "type_vocab_size": 1,
31
+ "use_cache": true,
32
+ "vocab_size": 50265
33
+ }
eval_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.992481203007519,
3
+ "eval_loss": 0.10110712051391602,
4
+ "eval_roc_auc": 0.9877104952848222,
5
+ "eval_runtime": 36.9454,
6
+ "eval_samples": 16301,
7
+ "eval_samples_per_second": 441.218,
8
+ "eval_steps_per_second": 1.732
9
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:69d452bc44aeef20b3739f4c37ebf47539dce13f09abb0b457b1d1c2f534cf45
3
+ size 1421495416
predict_results_schone_aff.txt ADDED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "<s>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ },
12
+ "1": {
13
+ "content": "<pad>",
14
+ "lstrip": false,
15
+ "normalized": true,
16
+ "rstrip": false,
17
+ "single_word": false,
18
+ "special": true
19
+ },
20
+ "2": {
21
+ "content": "</s>",
22
+ "lstrip": false,
23
+ "normalized": true,
24
+ "rstrip": false,
25
+ "single_word": false,
26
+ "special": true
27
+ },
28
+ "3": {
29
+ "content": "<unk>",
30
+ "lstrip": false,
31
+ "normalized": true,
32
+ "rstrip": false,
33
+ "single_word": false,
34
+ "special": true
35
+ },
36
+ "50264": {
37
+ "content": "<mask>",
38
+ "lstrip": true,
39
+ "normalized": false,
40
+ "rstrip": false,
41
+ "single_word": false,
42
+ "special": true
43
+ }
44
+ },
45
+ "bos_token": "<s>",
46
+ "clean_up_tokenization_spaces": true,
47
+ "cls_token": "<s>",
48
+ "eos_token": "</s>",
49
+ "errors": "replace",
50
+ "mask_token": "<mask>",
51
+ "model_max_length": 512,
52
+ "pad_token": "<pad>",
53
+ "sep_token": "</s>",
54
+ "tokenizer_class": "RobertaTokenizer",
55
+ "trim_offsets": true,
56
+ "unk_token": "<unk>"
57
+ }
train_results.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 4.992481203007519,
3
+ "total_flos": 4.323837898114577e+16,
4
+ "train_loss": 0.17350520376699516,
5
+ "train_runtime": 2909.4174,
6
+ "train_samples": 85027,
7
+ "train_samples_per_second": 146.124,
8
+ "train_steps_per_second": 0.571
9
+ }
trainer_state.json ADDED
@@ -0,0 +1,318 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": 0.10110712051391602,
3
+ "best_model_checkpoint": "/cronus_data/avirinchipur/implicit_motives/schone_aff_roba_large/final/checkpoint-1660",
4
+ "epoch": 4.992481203007519,
5
+ "eval_steps": 500,
6
+ "global_step": 1660,
7
+ "is_hyper_param_search": false,
8
+ "is_local_process_zero": true,
9
+ "is_world_process_zero": true,
10
+ "log_history": [
11
+ {
12
+ "epoch": 0.15037593984962405,
13
+ "grad_norm": 3.783226251602173,
14
+ "learning_rate": 9.698795180722893e-06,
15
+ "loss": 0.3783,
16
+ "step": 50
17
+ },
18
+ {
19
+ "epoch": 0.3007518796992481,
20
+ "grad_norm": 6.744827747344971,
21
+ "learning_rate": 9.397590361445785e-06,
22
+ "loss": 0.2572,
23
+ "step": 100
24
+ },
25
+ {
26
+ "epoch": 0.45112781954887216,
27
+ "grad_norm": 4.981093883514404,
28
+ "learning_rate": 9.096385542168675e-06,
29
+ "loss": 0.2298,
30
+ "step": 150
31
+ },
32
+ {
33
+ "epoch": 0.6015037593984962,
34
+ "grad_norm": 3.8824877738952637,
35
+ "learning_rate": 8.795180722891567e-06,
36
+ "loss": 0.219,
37
+ "step": 200
38
+ },
39
+ {
40
+ "epoch": 0.7518796992481203,
41
+ "grad_norm": 3.345761299133301,
42
+ "learning_rate": 8.493975903614459e-06,
43
+ "loss": 0.2094,
44
+ "step": 250
45
+ },
46
+ {
47
+ "epoch": 0.9022556390977443,
48
+ "grad_norm": 5.345869541168213,
49
+ "learning_rate": 8.19277108433735e-06,
50
+ "loss": 0.2128,
51
+ "step": 300
52
+ },
53
+ {
54
+ "epoch": 0.9984962406015038,
55
+ "eval_loss": 0.17600548267364502,
56
+ "eval_roc_auc": 0.961318428605866,
57
+ "eval_runtime": 37.7691,
58
+ "eval_samples_per_second": 431.597,
59
+ "eval_steps_per_second": 1.695,
60
+ "step": 332
61
+ },
62
+ {
63
+ "epoch": 1.0526315789473684,
64
+ "grad_norm": 4.458087921142578,
65
+ "learning_rate": 7.891566265060243e-06,
66
+ "loss": 0.2015,
67
+ "step": 350
68
+ },
69
+ {
70
+ "epoch": 1.2030075187969924,
71
+ "grad_norm": 8.24935531616211,
72
+ "learning_rate": 7.590361445783133e-06,
73
+ "loss": 0.1863,
74
+ "step": 400
75
+ },
76
+ {
77
+ "epoch": 1.3533834586466165,
78
+ "grad_norm": 3.0867738723754883,
79
+ "learning_rate": 7.289156626506025e-06,
80
+ "loss": 0.1866,
81
+ "step": 450
82
+ },
83
+ {
84
+ "epoch": 1.5037593984962405,
85
+ "grad_norm": 3.783043384552002,
86
+ "learning_rate": 6.987951807228917e-06,
87
+ "loss": 0.1932,
88
+ "step": 500
89
+ },
90
+ {
91
+ "epoch": 1.6541353383458648,
92
+ "grad_norm": 3.2181010246276855,
93
+ "learning_rate": 6.686746987951808e-06,
94
+ "loss": 0.1877,
95
+ "step": 550
96
+ },
97
+ {
98
+ "epoch": 1.8045112781954886,
99
+ "grad_norm": 5.074103355407715,
100
+ "learning_rate": 6.385542168674699e-06,
101
+ "loss": 0.1871,
102
+ "step": 600
103
+ },
104
+ {
105
+ "epoch": 1.954887218045113,
106
+ "grad_norm": 3.3025379180908203,
107
+ "learning_rate": 6.084337349397591e-06,
108
+ "loss": 0.184,
109
+ "step": 650
110
+ },
111
+ {
112
+ "epoch": 2.0,
113
+ "eval_loss": 0.14929483830928802,
114
+ "eval_roc_auc": 0.9729542423254111,
115
+ "eval_runtime": 37.3448,
116
+ "eval_samples_per_second": 436.5,
117
+ "eval_steps_per_second": 1.714,
118
+ "step": 665
119
+ },
120
+ {
121
+ "epoch": 2.1052631578947367,
122
+ "grad_norm": 6.176891326904297,
123
+ "learning_rate": 5.783132530120482e-06,
124
+ "loss": 0.174,
125
+ "step": 700
126
+ },
127
+ {
128
+ "epoch": 2.255639097744361,
129
+ "grad_norm": 3.600426435470581,
130
+ "learning_rate": 5.4819277108433745e-06,
131
+ "loss": 0.1559,
132
+ "step": 750
133
+ },
134
+ {
135
+ "epoch": 2.406015037593985,
136
+ "grad_norm": 4.919001579284668,
137
+ "learning_rate": 5.180722891566266e-06,
138
+ "loss": 0.1603,
139
+ "step": 800
140
+ },
141
+ {
142
+ "epoch": 2.556390977443609,
143
+ "grad_norm": 4.144702434539795,
144
+ "learning_rate": 4.8795180722891575e-06,
145
+ "loss": 0.1615,
146
+ "step": 850
147
+ },
148
+ {
149
+ "epoch": 2.706766917293233,
150
+ "grad_norm": 3.639554738998413,
151
+ "learning_rate": 4.578313253012049e-06,
152
+ "loss": 0.1712,
153
+ "step": 900
154
+ },
155
+ {
156
+ "epoch": 2.857142857142857,
157
+ "grad_norm": 3.972834348678589,
158
+ "learning_rate": 4.27710843373494e-06,
159
+ "loss": 0.1592,
160
+ "step": 950
161
+ },
162
+ {
163
+ "epoch": 2.998496240601504,
164
+ "eval_loss": 0.12567295134067535,
165
+ "eval_roc_auc": 0.9811459479388318,
166
+ "eval_runtime": 37.3949,
167
+ "eval_samples_per_second": 435.915,
168
+ "eval_steps_per_second": 1.711,
169
+ "step": 997
170
+ },
171
+ {
172
+ "epoch": 3.007518796992481,
173
+ "grad_norm": 3.174755811691284,
174
+ "learning_rate": 3.975903614457832e-06,
175
+ "loss": 0.1656,
176
+ "step": 1000
177
+ },
178
+ {
179
+ "epoch": 3.1578947368421053,
180
+ "grad_norm": 3.0254180431365967,
181
+ "learning_rate": 3.6746987951807235e-06,
182
+ "loss": 0.1377,
183
+ "step": 1050
184
+ },
185
+ {
186
+ "epoch": 3.308270676691729,
187
+ "grad_norm": 3.0867421627044678,
188
+ "learning_rate": 3.3734939759036146e-06,
189
+ "loss": 0.1416,
190
+ "step": 1100
191
+ },
192
+ {
193
+ "epoch": 3.4586466165413534,
194
+ "grad_norm": 4.309436321258545,
195
+ "learning_rate": 3.072289156626506e-06,
196
+ "loss": 0.147,
197
+ "step": 1150
198
+ },
199
+ {
200
+ "epoch": 3.6090225563909772,
201
+ "grad_norm": 3.5912740230560303,
202
+ "learning_rate": 2.771084337349398e-06,
203
+ "loss": 0.1436,
204
+ "step": 1200
205
+ },
206
+ {
207
+ "epoch": 3.7593984962406015,
208
+ "grad_norm": 5.856467247009277,
209
+ "learning_rate": 2.469879518072289e-06,
210
+ "loss": 0.1407,
211
+ "step": 1250
212
+ },
213
+ {
214
+ "epoch": 3.909774436090226,
215
+ "grad_norm": 3.7223057746887207,
216
+ "learning_rate": 2.168674698795181e-06,
217
+ "loss": 0.1464,
218
+ "step": 1300
219
+ },
220
+ {
221
+ "epoch": 4.0,
222
+ "eval_loss": 0.10692735016345978,
223
+ "eval_roc_auc": 0.9861082356918816,
224
+ "eval_runtime": 37.333,
225
+ "eval_samples_per_second": 436.638,
226
+ "eval_steps_per_second": 1.714,
227
+ "step": 1330
228
+ },
229
+ {
230
+ "epoch": 4.06015037593985,
231
+ "grad_norm": 4.4520063400268555,
232
+ "learning_rate": 1.8674698795180723e-06,
233
+ "loss": 0.1344,
234
+ "step": 1350
235
+ },
236
+ {
237
+ "epoch": 4.2105263157894735,
238
+ "grad_norm": 3.530614137649536,
239
+ "learning_rate": 1.566265060240964e-06,
240
+ "loss": 0.1348,
241
+ "step": 1400
242
+ },
243
+ {
244
+ "epoch": 4.360902255639098,
245
+ "grad_norm": 6.2828474044799805,
246
+ "learning_rate": 1.2650602409638555e-06,
247
+ "loss": 0.127,
248
+ "step": 1450
249
+ },
250
+ {
251
+ "epoch": 4.511278195488722,
252
+ "grad_norm": 5.152245044708252,
253
+ "learning_rate": 9.638554216867472e-07,
254
+ "loss": 0.1231,
255
+ "step": 1500
256
+ },
257
+ {
258
+ "epoch": 4.661654135338345,
259
+ "grad_norm": 4.851140022277832,
260
+ "learning_rate": 6.626506024096387e-07,
261
+ "loss": 0.1273,
262
+ "step": 1550
263
+ },
264
+ {
265
+ "epoch": 4.81203007518797,
266
+ "grad_norm": 4.454780101776123,
267
+ "learning_rate": 3.614457831325301e-07,
268
+ "loss": 0.1277,
269
+ "step": 1600
270
+ },
271
+ {
272
+ "epoch": 4.962406015037594,
273
+ "grad_norm": 3.9713668823242188,
274
+ "learning_rate": 6.02409638554217e-08,
275
+ "loss": 0.1236,
276
+ "step": 1650
277
+ },
278
+ {
279
+ "epoch": 4.992481203007519,
280
+ "eval_loss": 0.10110712051391602,
281
+ "eval_roc_auc": 0.9877104952848222,
282
+ "eval_runtime": 37.3953,
283
+ "eval_samples_per_second": 435.91,
284
+ "eval_steps_per_second": 1.711,
285
+ "step": 1660
286
+ },
287
+ {
288
+ "epoch": 4.992481203007519,
289
+ "step": 1660,
290
+ "total_flos": 4.323837898114577e+16,
291
+ "train_loss": 0.17350520376699516,
292
+ "train_runtime": 2909.4174,
293
+ "train_samples_per_second": 146.124,
294
+ "train_steps_per_second": 0.571
295
+ }
296
+ ],
297
+ "logging_steps": 50,
298
+ "max_steps": 1660,
299
+ "num_input_tokens_seen": 0,
300
+ "num_train_epochs": 5,
301
+ "save_steps": 500,
302
+ "stateful_callbacks": {
303
+ "TrainerControl": {
304
+ "args": {
305
+ "should_epoch_stop": false,
306
+ "should_evaluate": false,
307
+ "should_log": false,
308
+ "should_save": true,
309
+ "should_training_stop": true
310
+ },
311
+ "attributes": {}
312
+ }
313
+ },
314
+ "total_flos": 4.323837898114577e+16,
315
+ "train_batch_size": 128,
316
+ "trial_name": null,
317
+ "trial_params": null
318
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c49eed05c7e8466f967486f6cf0921b15704ea96f3640a0cdbf968c7fbaa4242
3
+ size 4859
vocab.json ADDED
The diff for this file is too large to render. See raw diff