Cheng98 commited on
Commit
bbe25ce
·
verified ·
1 Parent(s): a451d8f

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,13 +1,28 @@
1
  ---
 
 
2
  license: apache-2.0
3
  base_model: bert-base-cased
4
  tags:
5
  - generated_from_trainer
 
 
6
  metrics:
7
  - accuracy
8
  model-index:
9
  - name: bert-base-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-base-rte
17
 
18
- This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on an unknown dataset.
19
  It achieves the following results on the evaluation set:
20
- - Loss: 0.8855
21
- - Accuracy: 0.6426
22
 
23
  ## Model description
24
 
@@ -37,22 +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: 32
42
- - eval_batch_size: 64
43
  - seed: 42
44
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
45
  - lr_scheduler_type: linear
46
- - num_epochs: 4
47
 
48
  ### Training results
49
 
50
- | Training Loss | Epoch | Step | Validation Loss | Accuracy |
51
- |:-------------:|:-----:|:----:|:---------------:|:--------:|
52
- | No log | 1.0 | 78 | 0.6587 | 0.6209 |
53
- | No log | 2.0 | 156 | 0.6506 | 0.6209 |
54
- | No log | 3.0 | 234 | 0.7936 | 0.6209 |
55
- | No log | 4.0 | 312 | 0.8855 | 0.6426 |
56
 
57
 
58
  ### Framework versions
 
1
  ---
2
+ language:
3
+ - en
4
  license: apache-2.0
5
  base_model: bert-base-cased
6
  tags:
7
  - generated_from_trainer
8
+ datasets:
9
+ - glue
10
  metrics:
11
  - accuracy
12
  model-index:
13
  - name: bert-base-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.6534296028880866
26
  ---
27
 
28
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
30
 
31
  # bert-base-rte
32
 
33
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the GLUE RTE dataset.
34
  It achieves the following results on the evaluation set:
35
+ - Loss: 0.8931
36
+ - Accuracy: 0.6534
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: 8
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": 4.0,
3
- "eval_accuracy": 0.6425992779783394,
4
- "eval_loss": 0.8855097889900208,
5
- "eval_runtime": 0.5437,
6
  "eval_samples": 277,
7
- "eval_samples_per_second": 509.501,
8
- "eval_steps_per_second": 9.197,
9
- "train_loss": 0.4733937581380208,
10
- "train_runtime": 55.8553,
11
  "train_samples": 2490,
12
- "train_samples_per_second": 178.318,
13
- "train_steps_per_second": 5.586
14
  }
 
1
  {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.6534296028880866,
4
+ "eval_loss": 0.8931174278259277,
5
+ "eval_runtime": 0.5398,
6
  "eval_samples": 277,
7
+ "eval_samples_per_second": 513.144,
8
+ "eval_steps_per_second": 64.838,
9
+ "train_loss": 0.4466698230841221,
10
+ "train_runtime": 55.3452,
11
  "train_samples": 2490,
12
+ "train_samples_per_second": 134.971,
13
+ "train_steps_per_second": 16.912
14
  }
config.json CHANGED
@@ -5,20 +5,20 @@
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
- "finetuning_task": "text-classification",
9
  "gradient_checkpointing": false,
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
  "id2label": {
14
- "0": "0",
15
- "1": "1"
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
- "0": 0,
21
- "1": 1
22
  },
23
  "layer_norm_eps": 1e-12,
24
  "max_position_embeddings": 512,
 
5
  ],
6
  "attention_probs_dropout_prob": 0.1,
7
  "classifier_dropout": null,
8
+ "finetuning_task": "rte",
9
  "gradient_checkpointing": false,
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
  "id2label": {
14
+ "0": "entailment",
15
+ "1": "not_entailment"
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
+ "entailment": 0,
21
+ "not_entailment": 1
22
  },
23
  "layer_norm_eps": 1e-12,
24
  "max_position_embeddings": 512,
eval_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
- "epoch": 4.0,
3
- "eval_accuracy": 0.6425992779783394,
4
- "eval_loss": 0.8855097889900208,
5
- "eval_runtime": 0.5437,
6
  "eval_samples": 277,
7
- "eval_samples_per_second": 509.501,
8
- "eval_steps_per_second": 9.197
9
  }
 
1
  {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 0.6534296028880866,
4
+ "eval_loss": 0.8931174278259277,
5
+ "eval_runtime": 0.5398,
6
  "eval_samples": 277,
7
+ "eval_samples_per_second": 513.144,
8
+ "eval_steps_per_second": 64.838
9
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:e55095a9bd6b0291f17f77a6e37283a031ae88f17c4e75b6b4fef0af87803c07
3
  size 433315633
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5eb957533357e839c4f5e5f804e8c67ebe0ac1af1e1972d3059b2db75682392c
3
  size 433315633
tokenizer.json CHANGED
@@ -2,13 +2,13 @@
2
  "version": "1.0",
3
  "truncation": {
4
  "direction": "Right",
5
- "max_length": 256,
6
  "strategy": "LongestFirst",
7
  "stride": 0
8
  },
9
  "padding": {
10
  "strategy": {
11
- "Fixed": 256
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.4733937581380208,
4
- "train_runtime": 55.8553,
5
  "train_samples": 2490,
6
- "train_samples_per_second": 178.318,
7
- "train_steps_per_second": 5.586
8
  }
 
1
  {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.4466698230841221,
4
+ "train_runtime": 55.3452,
5
  "train_samples": 2490,
6
+ "train_samples_per_second": 134.971,
7
+ "train_steps_per_second": 16.912
8
  }
trainer_state.json CHANGED
@@ -1,61 +1,31 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 4.0,
5
- "global_step": 312,
6
  "is_hyper_param_search": false,
7
  "is_local_process_zero": true,
8
  "is_world_process_zero": true,
9
  "log_history": [
10
  {
11
- "epoch": 1.0,
12
- "eval_accuracy": 0.6209386281588448,
13
- "eval_loss": 0.6587319374084473,
14
- "eval_runtime": 0.8033,
15
- "eval_samples_per_second": 344.835,
16
- "eval_steps_per_second": 6.224,
17
- "step": 78
18
- },
19
- {
20
- "epoch": 2.0,
21
- "eval_accuracy": 0.6209386281588448,
22
- "eval_loss": 0.6506237387657166,
23
- "eval_runtime": 0.5527,
24
- "eval_samples_per_second": 501.182,
25
- "eval_steps_per_second": 9.047,
26
- "step": 156
27
  },
28
  {
29
  "epoch": 3.0,
30
- "eval_accuracy": 0.6209386281588448,
31
- "eval_loss": 0.7936134934425354,
32
- "eval_runtime": 0.5447,
33
- "eval_samples_per_second": 508.561,
34
- "eval_steps_per_second": 9.18,
35
- "step": 234
36
- },
37
- {
38
- "epoch": 4.0,
39
- "eval_accuracy": 0.6425992779783394,
40
- "eval_loss": 0.8855097889900208,
41
- "eval_runtime": 0.546,
42
- "eval_samples_per_second": 507.309,
43
- "eval_steps_per_second": 9.157,
44
- "step": 312
45
- },
46
- {
47
- "epoch": 4.0,
48
- "step": 312,
49
- "total_flos": 1310293055692800.0,
50
- "train_loss": 0.4733937581380208,
51
- "train_runtime": 55.8553,
52
- "train_samples_per_second": 178.318,
53
- "train_steps_per_second": 5.586
54
  }
55
  ],
56
- "max_steps": 312,
57
- "num_train_epochs": 4,
58
- "total_flos": 1310293055692800.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": 936,
6
  "is_hyper_param_search": false,
7
  "is_local_process_zero": true,
8
  "is_world_process_zero": true,
9
  "log_history": [
10
  {
11
+ "epoch": 1.6,
12
+ "learning_rate": 9.316239316239318e-06,
13
+ "loss": 0.5885,
14
+ "step": 500
 
 
 
 
 
 
 
 
 
 
 
 
15
  },
16
  {
17
  "epoch": 3.0,
18
+ "step": 936,
19
+ "total_flos": 491359895884800.0,
20
+ "train_loss": 0.4466698230841221,
21
+ "train_runtime": 55.3452,
22
+ "train_samples_per_second": 134.971,
23
+ "train_steps_per_second": 16.912
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
24
  }
25
  ],
26
+ "max_steps": 936,
27
+ "num_train_epochs": 3,
28
+ "total_flos": 491359895884800.0,
29
  "trial_name": null,
30
  "trial_params": null
31
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:2e8128dd556278968ef3c33738dab886068819d5714ef7b8ee42c914a0fb94ca
3
- size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b582dd56e8db56a27f76e88c4936bebc5b86b460beb26ae77a7ff3eda43b8bb4
3
+ size 3963