Cheng98 commited on
Commit
f919337
·
verified ·
1 Parent(s): dce0ba7

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,13 +1,30 @@
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-boolq
10
- results: []
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
@@ -15,10 +32,10 @@ should probably proofread and complete it, then remove this comment. -->
15
 
16
  # bert-base-boolq
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.7001
21
- - Accuracy: 0.7141
22
 
23
  ## Model description
24
 
@@ -37,24 +54,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
- - gradient_accumulation_steps: 4
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.99 | 73 | 0.6423 | 0.6107 |
55
- | No log | 1.99 | 147 | 0.5651 | 0.7098 |
56
- | No log | 3.0 | 221 | 0.6036 | 0.7150 |
57
- | No log | 3.96 | 292 | 0.7001 | 0.7141 |
58
 
59
 
60
  ### 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-boolq
14
+ results:
15
+ - task:
16
+ name: Text Classification
17
+ type: text-classification
18
+ dataset:
19
+ name: GLUE BOOLQ
20
+ type: glue
21
+ config: boolq
22
+ split: validation
23
+ args: boolq
24
+ metrics:
25
+ - name: Accuracy
26
+ type: accuracy
27
+ value: 0.7097859327217125
28
  ---
29
 
30
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
 
32
 
33
  # bert-base-boolq
34
 
35
+ This model is a fine-tuned version of [bert-base-cased](https://huggingface.co/bert-base-cased) on the GLUE BOOLQ dataset.
36
  It achieves the following results on the evaluation set:
37
+ - Loss: 1.1221
38
+ - Accuracy: 0.7098
39
 
40
  ## Model description
41
 
 
54
  ### Training hyperparameters
55
 
56
  The following hyperparameters were used during training:
57
+ - learning_rate: 2e-05
58
+ - train_batch_size: 16
59
+ - eval_batch_size: 8
60
  - seed: 42
 
 
61
  - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
62
  - lr_scheduler_type: linear
63
+ - num_epochs: 5.0
64
 
65
  ### Training results
66
 
 
 
 
 
 
 
67
 
68
 
69
  ### Framework versions
all_results.json CHANGED
@@ -1,14 +1,14 @@
1
  {
2
- "epoch": 3.96,
3
- "eval_accuracy": 0.7140672782874617,
4
- "eval_loss": 0.7000637054443359,
5
- "eval_runtime": 10.4472,
6
  "eval_samples": 3270,
7
- "eval_samples_per_second": 313.003,
8
- "eval_steps_per_second": 4.977,
9
- "train_loss": 0.4717037253183861,
10
- "train_runtime": 435.6602,
11
  "train_samples": 9427,
12
- "train_samples_per_second": 86.554,
13
- "train_steps_per_second": 0.67
14
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.7097859327217125,
4
+ "eval_loss": 1.1220989227294922,
5
+ "eval_runtime": 6.9032,
6
  "eval_samples": 3270,
7
+ "eval_samples_per_second": 473.694,
8
+ "eval_steps_per_second": 59.248,
9
+ "train_loss": 0.37518319857322563,
10
+ "train_runtime": 326.8151,
11
  "train_samples": 9427,
12
+ "train_samples_per_second": 144.225,
13
+ "train_steps_per_second": 9.027
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": "boolq",
9
  "gradient_checkpointing": false,
10
  "hidden_act": "gelu",
11
  "hidden_dropout_prob": 0.1,
12
  "hidden_size": 768,
13
  "id2label": {
14
+ "0": "False",
15
+ "1": "True"
16
  },
17
  "initializer_range": 0.02,
18
  "intermediate_size": 3072,
19
  "label2id": {
20
+ "False": 0,
21
+ "True": 1
22
  },
23
  "layer_norm_eps": 1e-12,
24
  "max_position_embeddings": 512,
eval_results.json CHANGED
@@ -1,9 +1,9 @@
1
  {
2
- "epoch": 3.96,
3
- "eval_accuracy": 0.7140672782874617,
4
- "eval_loss": 0.7000637054443359,
5
- "eval_runtime": 10.4472,
6
  "eval_samples": 3270,
7
- "eval_samples_per_second": 313.003,
8
- "eval_steps_per_second": 4.977
9
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "eval_accuracy": 0.7097859327217125,
4
+ "eval_loss": 1.1220989227294922,
5
+ "eval_runtime": 6.9032,
6
  "eval_samples": 3270,
7
+ "eval_samples_per_second": 473.694,
8
+ "eval_steps_per_second": 59.248
9
  }
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:77a8e44c8ef25e99fb2bfbe132bdb84b7a740f8e689ee788381878b78536a21d
3
  size 433315633
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7e15e0a8f4da13c477a997731321b300c4e67e0affef277108b00b611b47c27d
3
  size 433315633
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.96,
3
- "train_loss": 0.4717037253183861,
4
- "train_runtime": 435.6602,
5
  "train_samples": 9427,
6
- "train_samples_per_second": 86.554,
7
- "train_steps_per_second": 0.67
8
  }
 
1
  {
2
+ "epoch": 5.0,
3
+ "train_loss": 0.37518319857322563,
4
+ "train_runtime": 326.8151,
5
  "train_samples": 9427,
6
+ "train_samples_per_second": 144.225,
7
+ "train_steps_per_second": 9.027
8
  }
trainer_state.json CHANGED
@@ -1,61 +1,55 @@
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
- "epoch": 3.959322033898305,
5
- "global_step": 292,
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.99,
12
- "eval_accuracy": 0.6107033639143731,
13
- "eval_loss": 0.6423391103744507,
14
- "eval_runtime": 10.5728,
15
- "eval_samples_per_second": 309.284,
16
- "eval_steps_per_second": 4.918,
17
- "step": 73
18
  },
19
  {
20
- "epoch": 1.99,
21
- "eval_accuracy": 0.7097859327217125,
22
- "eval_loss": 0.5650969743728638,
23
- "eval_runtime": 10.5393,
24
- "eval_samples_per_second": 310.267,
25
- "eval_steps_per_second": 4.934,
26
- "step": 147
27
  },
28
  {
29
- "epoch": 3.0,
30
- "eval_accuracy": 0.7149847094801223,
31
- "eval_loss": 0.6035652160644531,
32
- "eval_runtime": 10.5633,
33
- "eval_samples_per_second": 309.563,
34
- "eval_steps_per_second": 4.923,
35
- "step": 221
36
  },
37
  {
38
- "epoch": 3.96,
39
- "eval_accuracy": 0.7140672782874617,
40
- "eval_loss": 0.7000637054443359,
41
- "eval_runtime": 10.5393,
42
- "eval_samples_per_second": 310.266,
43
- "eval_steps_per_second": 4.934,
44
- "step": 292
45
  },
46
  {
47
- "epoch": 3.96,
48
- "step": 292,
49
- "total_flos": 9823777473976320.0,
50
- "train_loss": 0.4717037253183861,
51
- "train_runtime": 435.6602,
52
- "train_samples_per_second": 86.554,
53
- "train_steps_per_second": 0.67
 
 
 
 
 
 
54
  }
55
  ],
56
- "max_steps": 292,
57
- "num_train_epochs": 4,
58
- "total_flos": 9823777473976320.0,
59
  "trial_name": null,
60
  "trial_params": null
61
  }
 
1
  {
2
  "best_metric": null,
3
  "best_model_checkpoint": null,
4
+ "epoch": 5.0,
5
+ "global_step": 2950,
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.85,
12
+ "learning_rate": 1.6610169491525424e-05,
13
+ "loss": 0.6634,
14
+ "step": 500
 
 
 
15
  },
16
  {
17
+ "epoch": 1.69,
18
+ "learning_rate": 1.3220338983050848e-05,
19
+ "loss": 0.5784,
20
+ "step": 1000
 
 
 
21
  },
22
  {
23
+ "epoch": 2.54,
24
+ "learning_rate": 9.830508474576272e-06,
25
+ "loss": 0.4113,
26
+ "step": 1500
 
 
 
27
  },
28
  {
29
+ "epoch": 3.39,
30
+ "learning_rate": 6.440677966101695e-06,
31
+ "loss": 0.2685,
32
+ "step": 2000
 
 
 
33
  },
34
  {
35
+ "epoch": 4.24,
36
+ "learning_rate": 3.0508474576271192e-06,
37
+ "loss": 0.1735,
38
+ "step": 2500
39
+ },
40
+ {
41
+ "epoch": 5.0,
42
+ "step": 2950,
43
+ "total_flos": 3100434898598400.0,
44
+ "train_loss": 0.37518319857322563,
45
+ "train_runtime": 326.8151,
46
+ "train_samples_per_second": 144.225,
47
+ "train_steps_per_second": 9.027
48
  }
49
  ],
50
+ "max_steps": 2950,
51
+ "num_train_epochs": 5,
52
+ "total_flos": 3100434898598400.0,
53
  "trial_name": null,
54
  "trial_params": null
55
  }
training_args.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f356c17f13a095454962dd661683f0fd0f3c76a7eba49861e4dae2364f9e86ad
3
- size 4091
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5c41f5615188e374b7e0a00d54c3c74e42c1c1e8ec7c5c33fbba2a9f0aef5e36
3
+ size 3963