Cheng98 commited on
Commit
4366b73
1 Parent(s): 0443c0e

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,13 +1,28 @@
1
  ---
 
 
2
  license: other
3
  base_model: facebook/opt-350m
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  model-index:
9
  - name: opt-350m-qnli
10
- results: []
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -15,10 +30,10 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # opt-350m-qnli
17
 
18
- This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co/facebook/opt-350m) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.6931
21
- - Accuracy: 0.4946
22
 
23
  ## Model description
24
 
@@ -37,24 +52,16 @@ More information needed
37
  ### Training hyperparameters
38
 
39
  The following hyperparameters were used during training:
40
- - learning_rate: 5e-05
41
- - train_batch_size: 16
42
- - eval_batch_size: 32
43
  - seed: 42
44
- - gradient_accumulation_steps: 8
45
- - total_train_batch_size: 128
46
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
  - lr_scheduler_type: linear
48
- - num_epochs: 4
49
 
50
  ### Training results
51
 
52
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
53
- |:-------------:|:-----:|:----:|:---------------:|:--------:|
54
- | 0.771 | 1.0 | 818 | 0.6988 | 0.4946 |
55
- | 0.6951 | 2.0 | 1636 | 0.7004 | 0.4946 |
56
- | 0.6949 | 3.0 | 2455 | 0.6932 | 0.5054 |
57
- | 0.6939 | 4.0 | 3272 | 0.6931 | 0.4946 |
58
 
59
 
60
  ### Framework versions
 
1
  ---
2
+ language:
3
+ - en
4
  license: other
5
  base_model: facebook/opt-350m
6
  tags:
7
  - generated_from_trainer
8
+ datasets:
9
+ - glue
10
  metrics:
11
  - accuracy
12
  model-index:
13
  - name: opt-350m-qnli
14
+ results:
15
+ - task:
16
+ name: Text Classification
17
+ type: text-classification
18
+ dataset:
19
+ name: GLUE QNLI
20
+ type: glue
21
+ args: qnli
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.8965769723595094
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
30
 
31
  # opt-350m-qnli
32
 
33
+ This model is a fine-tuned version of [facebook/opt-350m](https://huggingface.co/facebook/opt-350m) on the GLUE QNLI dataset.
34
  It achieves the following results on the evaluation set:
35
+ - Loss: 0.8084
36
+ - Accuracy: 0.8966
37
 
38
  ## Model description
39
 
 
52
  ### Training hyperparameters
53
 
54
  The following hyperparameters were used during training:
55
+ - learning_rate: 2e-05
56
+ - train_batch_size: 32
57
+ - eval_batch_size: 8
58
  - seed: 42
 
 
59
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
  - lr_scheduler_type: linear
61
+ - num_epochs: 5.0
62
 
63
  ### Training results
64
 
 
 
 
 
 
 
65
 
66
 
67
  ### Framework versions
all_results.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
- "epoch": 4.0,
3
- "eval_accuracy": 0.4946000366099213,
4
- "eval_loss": 0.6931486129760742,
5
- "eval_runtime": 33.1827,
6
  "eval_samples": 5463,
7
- "eval_samples_per_second": 164.634,
8
- "eval_steps_per_second": 5.153,
9
- "train_loss": 0.7068347184757149,
10
- "train_runtime": 8136.714,
11
  "train_samples": 104743,
12
- "train_samples_per_second": 51.492,
13
- "train_steps_per_second": 0.402
14
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8965769723595094,
4
+ "eval_loss": 0.808398425579071,
5
+ "eval_runtime": 31.8395,
6
  "eval_samples": 5463,
7
+ "eval_samples_per_second": 171.58,
8
+ "eval_steps_per_second": 21.451,
9
+ "train_loss": 0.14827317719643043,
10
+ "train_runtime": 8514.0774,
11
  "train_samples": 104743,
12
+ "train_samples_per_second": 61.512,
13
+ "train_steps_per_second": 1.923
14
  }
config.json CHANGED
@@ -13,16 +13,16 @@
13
  "enable_bias": true,
14
  "eos_token_id": 2,
15
  "ffn_dim": 4096,
16
- "finetuning_task": "text-classification",
17
  "hidden_size": 1024,
18
  "id2label": {
19
- "0": "0",
20
- "1": "1"
21
  },
22
  "init_std": 0.02,
23
  "label2id": {
24
- "0": 0,
25
- "1": 1
26
  },
27
  "layer_norm_elementwise_affine": true,
28
  "layerdrop": 0.0,
 
13
  "enable_bias": true,
14
  "eos_token_id": 2,
15
  "ffn_dim": 4096,
16
+ "finetuning_task": "qnli",
17
  "hidden_size": 1024,
18
  "id2label": {
19
+ "0": "entailment",
20
+ "1": "not_entailment"
21
  },
22
  "init_std": 0.02,
23
  "label2id": {
24
+ "entailment": 0,
25
+ "not_entailment": 1
26
  },
27
  "layer_norm_elementwise_affine": true,
28
  "layerdrop": 0.0,
eval_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
- "epoch": 4.0,
3
- "eval_accuracy": 0.4946000366099213,
4
- "eval_loss": 0.6931486129760742,
5
- "eval_runtime": 33.1827,
6
  "eval_samples": 5463,
7
- "eval_samples_per_second": 164.634,
8
- "eval_steps_per_second": 5.153
9
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.8965769723595094,
4
+ "eval_loss": 0.808398425579071,
5
+ "eval_runtime": 31.8395,
6
  "eval_samples": 5463,
7
+ "eval_samples_per_second": 171.58,
8
+ "eval_steps_per_second": 21.451
9
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:9ccd9390d17d1b84716b45a7f0bc7c64f0c8bdfeb99cab6e750da1a142a0b6ed
3
  size 1324921569
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb4b1a44b30ec881324caea0c9774b1727b9f81d8c4cc470bbab58e92e3672e7
3
  size 1324921569
tokenizer.json CHANGED
@@ -2,13 +2,13 @@
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
- "max_length": 512,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
  "padding": {
10
  "strategy": {
11
- "Fixed": 512
12
  },
13
  "direction": "Right",
14
  "pad_to_multiple_of": null,
 
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
+ "max_length": 128,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
  "padding": {
10
  "strategy": {
11
+ "Fixed": 128
12
  },
13
  "direction": "Right",
14
  "pad_to_multiple_of": null,
train_results.json CHANGED
@@ -1,8 +1,8 @@
1
  {
2
- "epoch": 4.0,
3
- "train_loss": 0.7068347184757149,
4
- "train_runtime": 8136.714,
5
  "train_samples": 104743,
6
- "train_samples_per_second": 51.492,
7
- "train_steps_per_second": 0.402
8
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "train_loss": 0.14827317719643043,
4
+ "train_runtime": 8514.0774,
5
  "train_samples": 104743,
6
+ "train_samples_per_second": 61.512,
7
+ "train_steps_per_second": 1.923
8
  }
trainer_state.json CHANGED
@@ -1,97 +1,217 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 3.9981670994348555,
5
- "global_step": 3272,
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.61,
12
- "learning_rate": 4.237469437652812e-05,
13
- "loss": 0.771,
14
  "step": 500
15
  },
16
  {
17
- "epoch": 1.0,
18
- "eval_accuracy": 0.4946000366099213,
19
- "eval_loss": 0.6987926959991455,
20
- "eval_runtime": 33.5668,
21
- "eval_samples_per_second": 162.75,
22
- "eval_steps_per_second": 5.094,
23
- "step": 818
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  },
25
  {
26
  "epoch": 1.22,
27
- "learning_rate": 3.4734107579462106e-05,
28
- "loss": 0.699,
29
- "step": 1000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
30
  },
31
  {
32
  "epoch": 1.83,
33
- "learning_rate": 2.7093520782396085e-05,
34
- "loss": 0.6951,
35
- "step": 1500
 
 
 
 
 
 
 
 
 
 
 
 
36
  },
37
  {
38
- "epoch": 2.0,
39
- "eval_accuracy": 0.4946000366099213,
40
- "eval_loss": 0.7004304528236389,
41
- "eval_runtime": 33.6209,
42
- "eval_samples_per_second": 162.488,
43
- "eval_steps_per_second": 5.086,
44
- "step": 1636
45
  },
46
  {
47
  "epoch": 2.44,
48
- "learning_rate": 1.9452933985330075e-05,
49
- "loss": 0.6949,
50
- "step": 2000
 
 
 
 
 
 
51
  },
52
  {
53
- "epoch": 3.0,
54
- "eval_accuracy": 0.5053999633900788,
55
- "eval_loss": 0.6931589841842651,
56
- "eval_runtime": 33.5757,
57
- "eval_samples_per_second": 162.707,
58
- "eval_steps_per_second": 5.093,
59
- "step": 2455
 
 
 
60
  },
61
  {
62
  "epoch": 3.05,
63
- "learning_rate": 1.181234718826406e-05,
64
- "loss": 0.6944,
65
- "step": 2500
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  },
67
  {
68
  "epoch": 3.67,
69
- "learning_rate": 4.171760391198044e-06,
70
- "loss": 0.6939,
71
- "step": 3000
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  },
73
  {
74
- "epoch": 4.0,
75
- "eval_accuracy": 0.4946000366099213,
76
- "eval_loss": 0.6931486129760742,
77
- "eval_runtime": 33.6178,
78
- "eval_samples_per_second": 162.503,
79
- "eval_steps_per_second": 5.087,
80
- "step": 3272
81
  },
82
  {
83
- "epoch": 4.0,
84
- "step": 3272,
85
- "total_flos": 3.902773315585966e+17,
86
- "train_loss": 0.7068347184757149,
87
- "train_runtime": 8136.714,
88
- "train_samples_per_second": 51.492,
89
- "train_steps_per_second": 0.402
90
  }
91
  ],
92
- "max_steps": 3272,
93
- "num_train_epochs": 4,
94
- "total_flos": 3.902773315585966e+17,
95
  "trial_name": null,
96
  "trial_params": null
97
  }
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "global_step": 16370,
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.15,
12
+ "learning_rate": 1.938912645082468e-05,
13
+ "loss": 0.5176,
14
  "step": 500
15
  },
16
  {
17
+ "epoch": 0.31,
18
+ "learning_rate": 1.8778252901649362e-05,
19
+ "loss": 0.4025,
20
+ "step": 1000
21
+ },
22
+ {
23
+ "epoch": 0.46,
24
+ "learning_rate": 1.816737935247404e-05,
25
+ "loss": 0.3706,
26
+ "step": 1500
27
+ },
28
+ {
29
+ "epoch": 0.61,
30
+ "learning_rate": 1.755650580329872e-05,
31
+ "loss": 0.3541,
32
+ "step": 2000
33
+ },
34
+ {
35
+ "epoch": 0.76,
36
+ "learning_rate": 1.69456322541234e-05,
37
+ "loss": 0.3371,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 0.92,
42
+ "learning_rate": 1.6334758704948076e-05,
43
+ "loss": 0.3221,
44
+ "step": 3000
45
+ },
46
+ {
47
+ "epoch": 1.07,
48
+ "learning_rate": 1.5723885155772757e-05,
49
+ "loss": 0.2637,
50
+ "step": 3500
51
  },
52
  {
53
  "epoch": 1.22,
54
+ "learning_rate": 1.5113011606597437e-05,
55
+ "loss": 0.201,
56
+ "step": 4000
57
+ },
58
+ {
59
+ "epoch": 1.37,
60
+ "learning_rate": 1.4502138057422115e-05,
61
+ "loss": 0.1971,
62
+ "step": 4500
63
+ },
64
+ {
65
+ "epoch": 1.53,
66
+ "learning_rate": 1.3891264508246794e-05,
67
+ "loss": 0.2067,
68
+ "step": 5000
69
+ },
70
+ {
71
+ "epoch": 1.68,
72
+ "learning_rate": 1.3280390959071474e-05,
73
+ "loss": 0.2032,
74
+ "step": 5500
75
  },
76
  {
77
  "epoch": 1.83,
78
+ "learning_rate": 1.2669517409896153e-05,
79
+ "loss": 0.1971,
80
+ "step": 6000
81
+ },
82
+ {
83
+ "epoch": 1.99,
84
+ "learning_rate": 1.2058643860720831e-05,
85
+ "loss": 0.2034,
86
+ "step": 6500
87
+ },
88
+ {
89
+ "epoch": 2.14,
90
+ "learning_rate": 1.1447770311545512e-05,
91
+ "loss": 0.104,
92
+ "step": 7000
93
  },
94
  {
95
+ "epoch": 2.29,
96
+ "learning_rate": 1.083689676237019e-05,
97
+ "loss": 0.0962,
98
+ "step": 7500
 
 
 
99
  },
100
  {
101
  "epoch": 2.44,
102
+ "learning_rate": 1.0226023213194869e-05,
103
+ "loss": 0.1046,
104
+ "step": 8000
105
+ },
106
+ {
107
+ "epoch": 2.6,
108
+ "learning_rate": 9.615149664019549e-06,
109
+ "loss": 0.1022,
110
+ "step": 8500
111
  },
112
  {
113
+ "epoch": 2.75,
114
+ "learning_rate": 9.004276114844227e-06,
115
+ "loss": 0.0951,
116
+ "step": 9000
117
+ },
118
+ {
119
+ "epoch": 2.9,
120
+ "learning_rate": 8.393402565668908e-06,
121
+ "loss": 0.1011,
122
+ "step": 9500
123
  },
124
  {
125
  "epoch": 3.05,
126
+ "learning_rate": 7.782529016493586e-06,
127
+ "loss": 0.0793,
128
+ "step": 10000
129
+ },
130
+ {
131
+ "epoch": 3.21,
132
+ "learning_rate": 7.171655467318266e-06,
133
+ "loss": 0.0385,
134
+ "step": 10500
135
+ },
136
+ {
137
+ "epoch": 3.36,
138
+ "learning_rate": 6.560781918142944e-06,
139
+ "loss": 0.0487,
140
+ "step": 11000
141
+ },
142
+ {
143
+ "epoch": 3.51,
144
+ "learning_rate": 5.949908368967624e-06,
145
+ "loss": 0.0526,
146
+ "step": 11500
147
  },
148
  {
149
  "epoch": 3.67,
150
+ "learning_rate": 5.339034819792304e-06,
151
+ "loss": 0.0515,
152
+ "step": 12000
153
+ },
154
+ {
155
+ "epoch": 3.82,
156
+ "learning_rate": 4.728161270616982e-06,
157
+ "loss": 0.0455,
158
+ "step": 12500
159
+ },
160
+ {
161
+ "epoch": 3.97,
162
+ "learning_rate": 4.117287721441662e-06,
163
+ "loss": 0.0481,
164
+ "step": 13000
165
+ },
166
+ {
167
+ "epoch": 4.12,
168
+ "learning_rate": 3.506414172266341e-06,
169
+ "loss": 0.021,
170
+ "step": 13500
171
+ },
172
+ {
173
+ "epoch": 4.28,
174
+ "learning_rate": 2.8955406230910206e-06,
175
+ "loss": 0.017,
176
+ "step": 14000
177
+ },
178
+ {
179
+ "epoch": 4.43,
180
+ "learning_rate": 2.2846670739156996e-06,
181
+ "loss": 0.0143,
182
+ "step": 14500
183
+ },
184
+ {
185
+ "epoch": 4.58,
186
+ "learning_rate": 1.6737935247403788e-06,
187
+ "loss": 0.0165,
188
+ "step": 15000
189
+ },
190
+ {
191
+ "epoch": 4.73,
192
+ "learning_rate": 1.0629199755650582e-06,
193
+ "loss": 0.0167,
194
+ "step": 15500
195
  },
196
  {
197
+ "epoch": 4.89,
198
+ "learning_rate": 4.5204642638973736e-07,
199
+ "loss": 0.015,
200
+ "step": 16000
 
 
 
201
  },
202
  {
203
+ "epoch": 5.0,
204
+ "step": 16370,
205
+ "total_flos": 1.2201496021696512e+17,
206
+ "train_loss": 0.14827317719643043,
207
+ "train_runtime": 8514.0774,
208
+ "train_samples_per_second": 61.512,
209
+ "train_steps_per_second": 1.923
210
  }
211
  ],
212
+ "max_steps": 16370,
213
+ "num_train_epochs": 5,
214
+ "total_flos": 1.2201496021696512e+17,
215
  "trial_name": null,
216
  "trial_params": null
217
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:d0251b20b881a80e860c6672585a883dc9714623d8b232a1b9d78fd045e9a2f7
3
- size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c5bdd037aab1677ff45ae16a921f301d377c09978b0d47309412766022bea09a
3
+ size 3963