Cheng98 commited on
Commit
c731831
·
verified ·
1 Parent(s): 9b4e185

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,13 +1,28 @@
1
  ---
 
 
2
  license: apache-2.0
3
  base_model: bert-large-cased
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  model-index:
9
  - name: bert-large-rte
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
  # bert-large-rte
17
 
18
- This model is a fine-tuned version of [bert-large-cased](https://huggingface.co/bert-large-cased) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.6921
21
- - Accuracy: 0.5307
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
- | No log | 0.97 | 19 | 0.6876 | 0.5162 |
55
- | No log | 2.0 | 39 | 0.6919 | 0.5054 |
56
- | No log | 2.97 | 58 | 0.6949 | 0.5126 |
57
- | No log | 3.9 | 76 | 0.6921 | 0.5307 |
58
 
59
 
60
  ### Framework versions
 
1
  ---
2
+ language:
3
+ - en
4
  license: apache-2.0
5
  base_model: bert-large-cased
6
  tags:
7
  - generated_from_trainer
8
+ datasets:
9
+ - glue
10
  metrics:
11
  - accuracy
12
  model-index:
13
  - name: bert-large-rte
14
+ results:
15
+ - task:
16
+ name: Text Classification
17
+ type: text-classification
18
+ dataset:
19
+ name: GLUE RTE
20
+ type: glue
21
+ args: rte
22
+ metrics:
23
+ - name: Accuracy
24
+ type: accuracy
25
+ value: 0.703971119133574
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
30
 
31
  # bert-large-rte
32
 
33
+ This model is a fine-tuned version of [bert-large-cased](https://huggingface.co/bert-large-cased) on the GLUE RTE dataset.
34
  It achieves the following results on the evaluation set:
35
+ - Loss: 0.7109
36
+ - Accuracy: 0.7040
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: 3.0
62
 
63
  ### Training results
64
 
 
 
 
 
 
 
65
 
66
 
67
  ### Framework versions
all_results.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
- "epoch": 3.9,
3
- "eval_accuracy": 0.5306859205776173,
4
- "eval_loss": 0.6921272277832031,
5
- "eval_runtime": 1.84,
6
  "eval_samples": 277,
7
- "eval_samples_per_second": 150.543,
8
- "eval_steps_per_second": 4.891,
9
- "train_loss": 0.7039596658003958,
10
- "train_runtime": 185.7529,
11
  "train_samples": 2490,
12
- "train_samples_per_second": 53.62,
13
- "train_steps_per_second": 0.409
14
  }
 
1
  {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.703971119133574,
4
+ "eval_loss": 0.7108999490737915,
5
+ "eval_runtime": 1.628,
6
  "eval_samples": 277,
7
+ "eval_samples_per_second": 170.149,
8
+ "eval_steps_per_second": 21.499,
9
+ "train_loss": 0.4925964877136752,
10
+ "train_runtime": 120.7223,
11
  "train_samples": 2490,
12
+ "train_samples_per_second": 61.878,
13
+ "train_steps_per_second": 1.938
14
  }
config.json CHANGED
@@ -6,20 +6,20 @@
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
  "directionality": "bidi",
9
- "finetuning_task": "text-classification",
10
  "gradient_checkpointing": false,
11
  "hidden_act": "gelu",
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 1024,
14
  "id2label": {
15
- "0": "0",
16
- "1": "1"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 4096,
20
  "label2id": {
21
- "0": 0,
22
- "1": 1
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "max_position_embeddings": 512,
 
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
  "directionality": "bidi",
9
+ "finetuning_task": "rte",
10
  "gradient_checkpointing": false,
11
  "hidden_act": "gelu",
12
  "hidden_dropout_prob": 0.1,
13
  "hidden_size": 1024,
14
  "id2label": {
15
+ "0": "entailment",
16
+ "1": "not_entailment"
17
  },
18
  "initializer_range": 0.02,
19
  "intermediate_size": 4096,
20
  "label2id": {
21
+ "entailment": 0,
22
+ "not_entailment": 1
23
  },
24
  "layer_norm_eps": 1e-12,
25
  "max_position_embeddings": 512,
eval_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
- "epoch": 3.9,
3
- "eval_accuracy": 0.5306859205776173,
4
- "eval_loss": 0.6921272277832031,
5
- "eval_runtime": 1.84,
6
  "eval_samples": 277,
7
- "eval_samples_per_second": 150.543,
8
- "eval_steps_per_second": 4.891
9
  }
 
1
  {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.703971119133574,
4
+ "eval_loss": 0.7108999490737915,
5
+ "eval_runtime": 1.628,
6
  "eval_samples": 277,
7
+ "eval_samples_per_second": 170.149,
8
+ "eval_steps_per_second": 21.499
9
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f962d8019acbb96f9b187c15af21271b488974f767a5dbe1269615d01af6f7df
3
  size 1334459697
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ad0b31d43a528f235b2d0a53058a6d07df9d46ea4b8bf48a275a4580cd660c9
3
  size 1334459697
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": 3.9,
3
- "train_loss": 0.7039596658003958,
4
- "train_runtime": 185.7529,
5
  "train_samples": 2490,
6
- "train_samples_per_second": 53.62,
7
- "train_steps_per_second": 0.409
8
  }
 
1
  {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.4925964877136752,
4
+ "train_runtime": 120.7223,
5
  "train_samples": 2490,
6
+ "train_samples_per_second": 61.878,
7
+ "train_steps_per_second": 1.938
8
  }
trainer_state.json CHANGED
@@ -1,61 +1,25 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 3.8974358974358974,
5
- "global_step": 76,
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.97,
12
- "eval_accuracy": 0.516245487364621,
13
- "eval_loss": 0.6875916719436646,
14
- "eval_runtime": 1.8174,
15
- "eval_samples_per_second": 152.416,
16
- "eval_steps_per_second": 4.952,
17
- "step": 19
18
- },
19
- {
20
- "epoch": 2.0,
21
- "eval_accuracy": 0.5054151624548736,
22
- "eval_loss": 0.6918654441833496,
23
- "eval_runtime": 1.809,
24
- "eval_samples_per_second": 153.125,
25
- "eval_steps_per_second": 4.975,
26
- "step": 39
27
- },
28
- {
29
- "epoch": 2.97,
30
- "eval_accuracy": 0.5126353790613718,
31
- "eval_loss": 0.6949273347854614,
32
- "eval_runtime": 1.8221,
33
- "eval_samples_per_second": 152.019,
34
- "eval_steps_per_second": 4.939,
35
- "step": 58
36
- },
37
- {
38
- "epoch": 3.9,
39
- "eval_accuracy": 0.5306859205776173,
40
- "eval_loss": 0.6921272277832031,
41
- "eval_runtime": 1.8199,
42
- "eval_samples_per_second": 152.207,
43
- "eval_steps_per_second": 4.945,
44
- "step": 76
45
- },
46
- {
47
- "epoch": 3.9,
48
- "step": 76,
49
- "total_flos": 9049053537914880.0,
50
- "train_loss": 0.7039596658003958,
51
- "train_runtime": 185.7529,
52
- "train_samples_per_second": 53.62,
53
- "train_steps_per_second": 0.409
54
  }
55
  ],
56
- "max_steps": 76,
57
- "num_train_epochs": 4,
58
- "total_flos": 9049053537914880.0,
59
  "trial_name": null,
60
  "trial_params": null
61
  }
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 234,
6
  "is_hyper_param_search": false,
7
  "is_local_process_zero": true,
8
  "is_world_process_zero": true,
9
  "log_history": [
10
  {
11
+ "epoch": 3.0,
12
+ "step": 234,
13
+ "total_flos": 1740381821015040.0,
14
+ "train_loss": 0.4925964877136752,
15
+ "train_runtime": 120.7223,
16
+ "train_samples_per_second": 61.878,
17
+ "train_steps_per_second": 1.938
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  }
19
  ],
20
+ "max_steps": 234,
21
+ "num_train_epochs": 3,
22
+ "total_flos": 1740381821015040.0,
23
  "trial_name": null,
24
  "trial_params": null
25
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:858f7c0aafe56df454bb01f63122dbdf4b1eb9fa3bfb6d2c897479a64adc5260
3
- size 4155
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e4399aaeb798913062f8219ace308d12474eafbe83a8cc2e0ee9fb2296004ef7
3
+ size 3963