Thinh Truong commited on
Commit
b55bd7b
·
1 Parent(s): e44cf6b

first model version

Browse files
README.md ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - generated_from_trainer
6
+ datasets:
7
+ - glue
8
+ metrics:
9
+ - accuracy
10
+ model-index:
11
+ - name: randomcomb_mlm_ep5_mnli
12
+ results:
13
+ - task:
14
+ name: Text Classification
15
+ type: text-classification
16
+ dataset:
17
+ name: GLUE MNLI
18
+ type: glue
19
+ args: mnli
20
+ metrics:
21
+ - name: Accuracy
22
+ type: accuracy
23
+ value: 0.8615744507729862
24
+ ---
25
+
26
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
27
+ should probably proofread and complete it, then remove this comment. -->
28
+
29
+ # randomcomb_mlm_ep5_mnli
30
+
31
+ This model is a fine-tuned version of [randomcomb_mlm_ep5](https://huggingface.co/randomcomb_mlm_ep5) on the GLUE MNLI dataset.
32
+ It achieves the following results on the evaluation set:
33
+ - Loss: 0.4416
34
+ - Accuracy: 0.8616
35
+
36
+ ## Model description
37
+
38
+ More information needed
39
+
40
+ ## Intended uses & limitations
41
+
42
+ More information needed
43
+
44
+ ## Training and evaluation data
45
+
46
+ More information needed
47
+
48
+ ## Training procedure
49
+
50
+ ### Training hyperparameters
51
+
52
+ The following hyperparameters were used during training:
53
+ - learning_rate: 3e-05
54
+ - train_batch_size: 32
55
+ - eval_batch_size: 16
56
+ - seed: 42
57
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
58
+ - lr_scheduler_type: linear
59
+ - num_epochs: 3.0
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
64
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
65
+ | 0.5569 | 0.41 | 5000 | 0.4415 | 0.8273 |
66
+ | 0.4598 | 0.81 | 10000 | 0.4234 | 0.8425 |
67
+ | 0.3832 | 1.22 | 15000 | 0.4398 | 0.8475 |
68
+ | 0.3314 | 1.63 | 20000 | 0.4137 | 0.8494 |
69
+ | 0.3158 | 2.04 | 25000 | 0.4484 | 0.8527 |
70
+ | 0.2294 | 2.44 | 30000 | 0.4471 | 0.8552 |
71
+ | 0.2283 | 2.85 | 35000 | 0.4541 | 0.8557 |
72
+
73
+
74
+ ### Framework versions
75
+
76
+ - Transformers 4.21.0.dev0
77
+ - Pytorch 1.8.0
78
+ - Datasets 1.18.3
79
+ - Tokenizers 0.12.1
all_results.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "epoch_mm": 3.0,
4
+ "eval_accuracy": 0.8577687213448802,
5
+ "eval_accuracy_mm": 0.8615744507729862,
6
+ "eval_loss": 0.45781588554382324,
7
+ "eval_loss_mm": 0.44157227873802185,
8
+ "eval_runtime": 64.4376,
9
+ "eval_runtime_mm": 64.8196,
10
+ "eval_samples": 9815,
11
+ "eval_samples_mm": 9832,
12
+ "eval_samples_per_second": 152.318,
13
+ "eval_samples_per_second_mm": 151.682,
14
+ "eval_steps_per_second": 9.529,
15
+ "eval_steps_per_second_mm": 9.488,
16
+ "train_loss": 0.35126533325938025,
17
+ "train_runtime": 16355.0125,
18
+ "train_samples": 392702,
19
+ "train_samples_per_second": 72.033,
20
+ "train_steps_per_second": 2.251
21
+ }
config.json ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "randomcomb_mlm_ep5",
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": "mnli",
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "entailment",
16
+ "1": "neutral",
17
+ "2": "contradiction"
18
+ },
19
+ "initializer_range": 0.02,
20
+ "intermediate_size": 3072,
21
+ "label2id": {
22
+ "contradiction": 0,
23
+ "entailment": 1,
24
+ "neutral": 2
25
+ },
26
+ "layer_norm_eps": 1e-05,
27
+ "max_position_embeddings": 514,
28
+ "model_type": "roberta",
29
+ "num_attention_heads": 12,
30
+ "num_hidden_layers": 12,
31
+ "pad_token_id": 1,
32
+ "position_embedding_type": "absolute",
33
+ "problem_type": "single_label_classification",
34
+ "torch_dtype": "float32",
35
+ "transformers_version": "4.21.0.dev0",
36
+ "type_vocab_size": 1,
37
+ "use_cache": true,
38
+ "vocab_size": 50265
39
+ }
eval_results.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "epoch_mm": 3.0,
4
+ "eval_accuracy": 0.8577687213448802,
5
+ "eval_accuracy_mm": 0.8615744507729862,
6
+ "eval_loss": 0.45781588554382324,
7
+ "eval_loss_mm": 0.44157227873802185,
8
+ "eval_runtime": 64.4376,
9
+ "eval_runtime_mm": 64.8196,
10
+ "eval_samples": 9815,
11
+ "eval_samples_mm": 9832,
12
+ "eval_samples_per_second": 152.318,
13
+ "eval_samples_per_second_mm": 151.682,
14
+ "eval_steps_per_second": 9.529,
15
+ "eval_steps_per_second_mm": 9.488
16
+ }
merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ff4540b6ee84017a04850db2a4066e4785818500e812e76ce4df7cc623ceab97
3
+ size 498668617
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,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "bos_token": "<s>",
4
+ "cls_token": "<s>",
5
+ "eos_token": "</s>",
6
+ "errors": "replace",
7
+ "mask_token": "<mask>",
8
+ "model_max_length": 512,
9
+ "name_or_path": "roberta-base",
10
+ "pad_token": "<pad>",
11
+ "sep_token": "</s>",
12
+ "special_tokens_map_file": null,
13
+ "tokenizer_class": "RobertaTokenizer",
14
+ "trim_offsets": true,
15
+ "unk_token": "<unk>"
16
+ }
train_results.json ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "train_loss": 0.35126533325938025,
4
+ "train_runtime": 16355.0125,
5
+ "train_samples": 392702,
6
+ "train_samples_per_second": 72.033,
7
+ "train_steps_per_second": 2.251
8
+ }
trainer_state.json ADDED
@@ -0,0 +1,130 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "best_metric": null,
3
+ "best_model_checkpoint": null,
4
+ "epoch": 3.0,
5
+ "global_step": 36816,
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.41,
12
+ "learning_rate": 2.592568448500652e-05,
13
+ "loss": 0.5569,
14
+ "step": 5000
15
+ },
16
+ {
17
+ "epoch": 0.41,
18
+ "eval_accuracy": 0.8273051451859399,
19
+ "eval_loss": 0.4415350556373596,
20
+ "eval_runtime": 67.2256,
21
+ "eval_samples_per_second": 146.001,
22
+ "eval_steps_per_second": 9.133,
23
+ "step": 5000
24
+ },
25
+ {
26
+ "epoch": 0.81,
27
+ "learning_rate": 2.185136897001304e-05,
28
+ "loss": 0.4598,
29
+ "step": 10000
30
+ },
31
+ {
32
+ "epoch": 0.81,
33
+ "eval_accuracy": 0.8424859908303617,
34
+ "eval_loss": 0.4233930706977844,
35
+ "eval_runtime": 67.0843,
36
+ "eval_samples_per_second": 146.308,
37
+ "eval_steps_per_second": 9.153,
38
+ "step": 10000
39
+ },
40
+ {
41
+ "epoch": 1.22,
42
+ "learning_rate": 1.7777053455019558e-05,
43
+ "loss": 0.3832,
44
+ "step": 15000
45
+ },
46
+ {
47
+ "epoch": 1.22,
48
+ "eval_accuracy": 0.8474783494651045,
49
+ "eval_loss": 0.4397834539413452,
50
+ "eval_runtime": 67.4964,
51
+ "eval_samples_per_second": 145.415,
52
+ "eval_steps_per_second": 9.097,
53
+ "step": 15000
54
+ },
55
+ {
56
+ "epoch": 1.63,
57
+ "learning_rate": 1.3702737940026075e-05,
58
+ "loss": 0.3314,
59
+ "step": 20000
60
+ },
61
+ {
62
+ "epoch": 1.63,
63
+ "eval_accuracy": 0.8494141619969434,
64
+ "eval_loss": 0.41370636224746704,
65
+ "eval_runtime": 64.9501,
66
+ "eval_samples_per_second": 151.116,
67
+ "eval_steps_per_second": 9.453,
68
+ "step": 20000
69
+ },
70
+ {
71
+ "epoch": 2.04,
72
+ "learning_rate": 9.628422425032594e-06,
73
+ "loss": 0.3158,
74
+ "step": 25000
75
+ },
76
+ {
77
+ "epoch": 2.04,
78
+ "eval_accuracy": 0.8526744778400408,
79
+ "eval_loss": 0.448415607213974,
80
+ "eval_runtime": 64.7745,
81
+ "eval_samples_per_second": 151.526,
82
+ "eval_steps_per_second": 9.479,
83
+ "step": 25000
84
+ },
85
+ {
86
+ "epoch": 2.44,
87
+ "learning_rate": 5.554106910039114e-06,
88
+ "loss": 0.2294,
89
+ "step": 30000
90
+ },
91
+ {
92
+ "epoch": 2.44,
93
+ "eval_accuracy": 0.8552215995924605,
94
+ "eval_loss": 0.4471375644207001,
95
+ "eval_runtime": 64.5567,
96
+ "eval_samples_per_second": 152.037,
97
+ "eval_steps_per_second": 9.511,
98
+ "step": 30000
99
+ },
100
+ {
101
+ "epoch": 2.85,
102
+ "learning_rate": 1.4797913950456324e-06,
103
+ "loss": 0.2283,
104
+ "step": 35000
105
+ },
106
+ {
107
+ "epoch": 2.85,
108
+ "eval_accuracy": 0.8557310239429444,
109
+ "eval_loss": 0.4541068375110626,
110
+ "eval_runtime": 64.9188,
111
+ "eval_samples_per_second": 151.189,
112
+ "eval_steps_per_second": 9.458,
113
+ "step": 35000
114
+ },
115
+ {
116
+ "epoch": 3.0,
117
+ "step": 36816,
118
+ "total_flos": 7.74938740264658e+16,
119
+ "train_loss": 0.35126533325938025,
120
+ "train_runtime": 16355.0125,
121
+ "train_samples_per_second": 72.033,
122
+ "train_steps_per_second": 2.251
123
+ }
124
+ ],
125
+ "max_steps": 36816,
126
+ "num_train_epochs": 3,
127
+ "total_flos": 7.74938740264658e+16,
128
+ "trial_name": null,
129
+ "trial_params": null
130
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:585da1d3235f77485f2ea4e9dd0a16ee3a4dd9efb0687943113aaffc9a753512
3
+ size 3311
vocab.json ADDED
The diff for this file is too large to render. See raw diff