initial model upload
Browse files- README.md +79 -0
- all_results.json +20 -0
- config.json +38 -0
- pytorch_model.bin +3 -0
- run_arguments.json +25 -0
- special_tokens_map.json +1 -0
- tokenizer.json +0 -0
- tokenizer_config.json +1 -0
- train_results.json +8 -0
- trainer_state.json +214 -0
- training_args.bin +3 -0
- validation-m_results.json +9 -0
- validation-mm_results.json +9 -0
- vocab.txt +0 -0
README.md
ADDED
@@ -0,0 +1,79 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: apache-2.0
|
5 |
+
tags:
|
6 |
+
- generated_from_trainer
|
7 |
+
datasets:
|
8 |
+
- mnli
|
9 |
+
metrics:
|
10 |
+
- accuracy
|
11 |
+
model-index:
|
12 |
+
- name: '42'
|
13 |
+
results:
|
14 |
+
- task:
|
15 |
+
name: Text Classification
|
16 |
+
type: text-classification
|
17 |
+
dataset:
|
18 |
+
name: MNLI
|
19 |
+
type: glue
|
20 |
+
args: mnli
|
21 |
+
metrics:
|
22 |
+
- name: Accuracy
|
23 |
+
type: accuracy
|
24 |
+
value: 0.8633723892002038
|
25 |
+
---
|
26 |
+
|
27 |
+
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
28 |
+
should probably proofread and complete it, then remove this comment. -->
|
29 |
+
|
30 |
+
# 42
|
31 |
+
|
32 |
+
This model is a fine-tuned version of [bert-large-uncased](https://huggingface.co/bert-large-uncased) on the MNLI dataset.
|
33 |
+
It achieves the following results on the evaluation set:
|
34 |
+
- Loss: 0.8447
|
35 |
+
- Accuracy: 0.8634
|
36 |
+
|
37 |
+
## Model description
|
38 |
+
|
39 |
+
More information needed
|
40 |
+
|
41 |
+
## Intended uses & limitations
|
42 |
+
|
43 |
+
More information needed
|
44 |
+
|
45 |
+
## Training and evaluation data
|
46 |
+
|
47 |
+
More information needed
|
48 |
+
|
49 |
+
## Training procedure
|
50 |
+
|
51 |
+
### Training hyperparameters
|
52 |
+
|
53 |
+
The following hyperparameters were used during training:
|
54 |
+
- learning_rate: 3e-05
|
55 |
+
- train_batch_size: 32
|
56 |
+
- eval_batch_size: 32
|
57 |
+
- seed: 42
|
58 |
+
- distributed_type: not_parallel
|
59 |
+
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
60 |
+
- lr_scheduler_type: linear
|
61 |
+
- num_epochs: 5
|
62 |
+
|
63 |
+
### Training results
|
64 |
+
|
65 |
+
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
66 |
+
|:-------------:|:-----:|:-----:|:---------------:|:--------:|
|
67 |
+
| 0.4274 | 1.0 | 12272 | 0.3892 | 0.8524 |
|
68 |
+
| 0.2844 | 2.0 | 24544 | 0.4079 | 0.8565 |
|
69 |
+
| 0.1589 | 3.0 | 36816 | 0.5033 | 0.8527 |
|
70 |
+
| 0.0877 | 4.0 | 49088 | 0.6624 | 0.8576 |
|
71 |
+
| 0.0426 | 5.0 | 61360 | 0.8447 | 0.8634 |
|
72 |
+
|
73 |
+
|
74 |
+
### Framework versions
|
75 |
+
|
76 |
+
- Transformers 4.17.0
|
77 |
+
- Pytorch 1.10.0+cu113
|
78 |
+
- Datasets 2.7.1
|
79 |
+
- Tokenizers 0.11.6
|
all_results.json
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"train_loss": 0.2071122335486182,
|
4 |
+
"train_runtime": 11012.4801,
|
5 |
+
"train_samples": 392702,
|
6 |
+
"train_samples_per_second": 178.299,
|
7 |
+
"train_steps_per_second": 5.572,
|
8 |
+
"validation-m_accuracy": 0.8633723892002038,
|
9 |
+
"validation-m_loss": 0.8447091579437256,
|
10 |
+
"validation-m_runtime": 26.4853,
|
11 |
+
"validation-m_samples": 9815,
|
12 |
+
"validation-m_samples_per_second": 370.582,
|
13 |
+
"validation-m_steps_per_second": 11.591,
|
14 |
+
"validation-mm_accuracy": 0.8632017900732303,
|
15 |
+
"validation-mm_loss": 0.8356224298477173,
|
16 |
+
"validation-mm_runtime": 27.5179,
|
17 |
+
"validation-mm_samples": 9832,
|
18 |
+
"validation-mm_samples_per_second": 357.294,
|
19 |
+
"validation-mm_steps_per_second": 11.193
|
20 |
+
}
|
config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "bert-large-uncased",
|
3 |
+
"architectures": [
|
4 |
+
"BertForSequenceClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"finetuning_task": "mnli",
|
9 |
+
"gradient_checkpointing": false,
|
10 |
+
"hidden_act": "gelu",
|
11 |
+
"hidden_dropout_prob": 0.1,
|
12 |
+
"hidden_size": 1024,
|
13 |
+
"id2label": {
|
14 |
+
"0": "entailment",
|
15 |
+
"1": "neutral",
|
16 |
+
"2": "contradiction"
|
17 |
+
},
|
18 |
+
"initializer_range": 0.02,
|
19 |
+
"intermediate_size": 4096,
|
20 |
+
"label2id": {
|
21 |
+
"contradiction": 2,
|
22 |
+
"entailment": 0,
|
23 |
+
"neutral": 1
|
24 |
+
},
|
25 |
+
"layer_norm_eps": 1e-12,
|
26 |
+
"max_position_embeddings": 512,
|
27 |
+
"model_type": "bert",
|
28 |
+
"num_attention_heads": 16,
|
29 |
+
"num_hidden_layers": 24,
|
30 |
+
"pad_token_id": 0,
|
31 |
+
"position_embedding_type": "absolute",
|
32 |
+
"problem_type": "single_label_classification",
|
33 |
+
"torch_dtype": "float32",
|
34 |
+
"transformers_version": "4.17.0",
|
35 |
+
"type_vocab_size": 2,
|
36 |
+
"use_cache": true,
|
37 |
+
"vocab_size": 30522
|
38 |
+
}
|
pytorch_model.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f186a8ec56da90318ab4c624f766ae781163369c9bcdb5ee5d53228059ae7c41
|
3 |
+
size 1340743405
|
run_arguments.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"model_name_or_path": "bert-large-uncased",
|
3 |
+
"task_name": "mnli",
|
4 |
+
"output_dir": "./output/bert-large/mnli/0001/42/",
|
5 |
+
"learning_rate": 3e-05,
|
6 |
+
"num_train_epochs": 5,
|
7 |
+
"per_device_eval_batch_size": 32,
|
8 |
+
"per_device_train_batch_size": 32,
|
9 |
+
"weight_decay": 0.1,
|
10 |
+
"seed": 42,
|
11 |
+
"warmup_steps": 0,
|
12 |
+
"do_train": true,
|
13 |
+
"do_eval": true,
|
14 |
+
"do_predict": false,
|
15 |
+
"pad_to_max_length": false,
|
16 |
+
"max_seq_length": 128,
|
17 |
+
"report_to": [],
|
18 |
+
"save_strategy": "no",
|
19 |
+
"evaluation_strategy": "epoch",
|
20 |
+
"logging_steps": 2500,
|
21 |
+
"use_fast_tokenizer": true,
|
22 |
+
"group_by_length": true,
|
23 |
+
"save_training_dynamics": false,
|
24 |
+
"save_training_dynamics_after_epoch": false
|
25 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]"}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
{"do_lower_case": true, "unk_token": "[UNK]", "sep_token": "[SEP]", "pad_token": "[PAD]", "cls_token": "[CLS]", "mask_token": "[MASK]", "tokenize_chinese_chars": true, "strip_accents": null, "model_max_length": 512, "special_tokens_map_file": null, "name_or_path": "bert-large-uncased", "tokenizer_class": "BertTokenizer"}
|
train_results.json
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"train_loss": 0.2071122335486182,
|
4 |
+
"train_runtime": 11012.4801,
|
5 |
+
"train_samples": 392702,
|
6 |
+
"train_samples_per_second": 178.299,
|
7 |
+
"train_steps_per_second": 5.572
|
8 |
+
}
|
trainer_state.json
ADDED
@@ -0,0 +1,214 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"best_metric": null,
|
3 |
+
"best_model_checkpoint": null,
|
4 |
+
"epoch": 5.0,
|
5 |
+
"global_step": 61360,
|
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.2,
|
12 |
+
"learning_rate": 2.877770534550196e-05,
|
13 |
+
"loss": 0.5826,
|
14 |
+
"step": 2500
|
15 |
+
},
|
16 |
+
{
|
17 |
+
"epoch": 0.41,
|
18 |
+
"learning_rate": 2.7555410691003913e-05,
|
19 |
+
"loss": 0.4701,
|
20 |
+
"step": 5000
|
21 |
+
},
|
22 |
+
{
|
23 |
+
"epoch": 0.61,
|
24 |
+
"learning_rate": 2.6333116036505867e-05,
|
25 |
+
"loss": 0.4449,
|
26 |
+
"step": 7500
|
27 |
+
},
|
28 |
+
{
|
29 |
+
"epoch": 0.81,
|
30 |
+
"learning_rate": 2.511082138200782e-05,
|
31 |
+
"loss": 0.4274,
|
32 |
+
"step": 10000
|
33 |
+
},
|
34 |
+
{
|
35 |
+
"epoch": 1.0,
|
36 |
+
"eval_accuracy": 0.8523688232297504,
|
37 |
+
"eval_loss": 0.38915878534317017,
|
38 |
+
"eval_runtime": 26.5235,
|
39 |
+
"eval_samples_per_second": 370.049,
|
40 |
+
"eval_steps_per_second": 11.575,
|
41 |
+
"step": 12272
|
42 |
+
},
|
43 |
+
{
|
44 |
+
"epoch": 1.02,
|
45 |
+
"learning_rate": 2.388852672750978e-05,
|
46 |
+
"loss": 0.4051,
|
47 |
+
"step": 12500
|
48 |
+
},
|
49 |
+
{
|
50 |
+
"epoch": 1.22,
|
51 |
+
"learning_rate": 2.2666232073011734e-05,
|
52 |
+
"loss": 0.2711,
|
53 |
+
"step": 15000
|
54 |
+
},
|
55 |
+
{
|
56 |
+
"epoch": 1.43,
|
57 |
+
"learning_rate": 2.144393741851369e-05,
|
58 |
+
"loss": 0.2755,
|
59 |
+
"step": 17500
|
60 |
+
},
|
61 |
+
{
|
62 |
+
"epoch": 1.63,
|
63 |
+
"learning_rate": 2.0221642764015646e-05,
|
64 |
+
"loss": 0.2808,
|
65 |
+
"step": 20000
|
66 |
+
},
|
67 |
+
{
|
68 |
+
"epoch": 1.83,
|
69 |
+
"learning_rate": 1.89993481095176e-05,
|
70 |
+
"loss": 0.2844,
|
71 |
+
"step": 22500
|
72 |
+
},
|
73 |
+
{
|
74 |
+
"epoch": 2.0,
|
75 |
+
"eval_accuracy": 0.8565461029037188,
|
76 |
+
"eval_loss": 0.4079381227493286,
|
77 |
+
"eval_runtime": 26.505,
|
78 |
+
"eval_samples_per_second": 370.308,
|
79 |
+
"eval_steps_per_second": 11.583,
|
80 |
+
"step": 24544
|
81 |
+
},
|
82 |
+
{
|
83 |
+
"epoch": 2.04,
|
84 |
+
"learning_rate": 1.7777053455019558e-05,
|
85 |
+
"loss": 0.2537,
|
86 |
+
"step": 25000
|
87 |
+
},
|
88 |
+
{
|
89 |
+
"epoch": 2.24,
|
90 |
+
"learning_rate": 1.6554758800521512e-05,
|
91 |
+
"loss": 0.1468,
|
92 |
+
"step": 27500
|
93 |
+
},
|
94 |
+
{
|
95 |
+
"epoch": 2.44,
|
96 |
+
"learning_rate": 1.533246414602347e-05,
|
97 |
+
"loss": 0.1536,
|
98 |
+
"step": 30000
|
99 |
+
},
|
100 |
+
{
|
101 |
+
"epoch": 2.65,
|
102 |
+
"learning_rate": 1.4110169491525424e-05,
|
103 |
+
"loss": 0.1574,
|
104 |
+
"step": 32500
|
105 |
+
},
|
106 |
+
{
|
107 |
+
"epoch": 2.85,
|
108 |
+
"learning_rate": 1.288787483702738e-05,
|
109 |
+
"loss": 0.1589,
|
110 |
+
"step": 35000
|
111 |
+
},
|
112 |
+
{
|
113 |
+
"epoch": 3.0,
|
114 |
+
"eval_accuracy": 0.8526744778400408,
|
115 |
+
"eval_loss": 0.503338098526001,
|
116 |
+
"eval_runtime": 26.5083,
|
117 |
+
"eval_samples_per_second": 370.261,
|
118 |
+
"eval_steps_per_second": 11.581,
|
119 |
+
"step": 36816
|
120 |
+
},
|
121 |
+
{
|
122 |
+
"epoch": 3.06,
|
123 |
+
"learning_rate": 1.1665580182529336e-05,
|
124 |
+
"loss": 0.14,
|
125 |
+
"step": 37500
|
126 |
+
},
|
127 |
+
{
|
128 |
+
"epoch": 3.26,
|
129 |
+
"learning_rate": 1.044328552803129e-05,
|
130 |
+
"loss": 0.0868,
|
131 |
+
"step": 40000
|
132 |
+
},
|
133 |
+
{
|
134 |
+
"epoch": 3.46,
|
135 |
+
"learning_rate": 9.220990873533247e-06,
|
136 |
+
"loss": 0.0901,
|
137 |
+
"step": 42500
|
138 |
+
},
|
139 |
+
{
|
140 |
+
"epoch": 3.67,
|
141 |
+
"learning_rate": 7.998696219035203e-06,
|
142 |
+
"loss": 0.0904,
|
143 |
+
"step": 45000
|
144 |
+
},
|
145 |
+
{
|
146 |
+
"epoch": 3.87,
|
147 |
+
"learning_rate": 6.776401564537158e-06,
|
148 |
+
"loss": 0.0877,
|
149 |
+
"step": 47500
|
150 |
+
},
|
151 |
+
{
|
152 |
+
"epoch": 4.0,
|
153 |
+
"eval_accuracy": 0.8575649516046867,
|
154 |
+
"eval_loss": 0.6623563170433044,
|
155 |
+
"eval_runtime": 26.5163,
|
156 |
+
"eval_samples_per_second": 370.149,
|
157 |
+
"eval_steps_per_second": 11.578,
|
158 |
+
"step": 49088
|
159 |
+
},
|
160 |
+
{
|
161 |
+
"epoch": 4.07,
|
162 |
+
"learning_rate": 5.554106910039114e-06,
|
163 |
+
"loss": 0.0698,
|
164 |
+
"step": 50000
|
165 |
+
},
|
166 |
+
{
|
167 |
+
"epoch": 4.28,
|
168 |
+
"learning_rate": 4.331812255541069e-06,
|
169 |
+
"loss": 0.0468,
|
170 |
+
"step": 52500
|
171 |
+
},
|
172 |
+
{
|
173 |
+
"epoch": 4.48,
|
174 |
+
"learning_rate": 3.109517601043025e-06,
|
175 |
+
"loss": 0.0494,
|
176 |
+
"step": 55000
|
177 |
+
},
|
178 |
+
{
|
179 |
+
"epoch": 4.69,
|
180 |
+
"learning_rate": 1.8872229465449805e-06,
|
181 |
+
"loss": 0.045,
|
182 |
+
"step": 57500
|
183 |
+
},
|
184 |
+
{
|
185 |
+
"epoch": 4.89,
|
186 |
+
"learning_rate": 6.649282920469362e-07,
|
187 |
+
"loss": 0.0426,
|
188 |
+
"step": 60000
|
189 |
+
},
|
190 |
+
{
|
191 |
+
"epoch": 5.0,
|
192 |
+
"eval_accuracy": 0.8633723892002038,
|
193 |
+
"eval_loss": 0.8447091579437256,
|
194 |
+
"eval_runtime": 26.5083,
|
195 |
+
"eval_samples_per_second": 370.261,
|
196 |
+
"eval_steps_per_second": 11.581,
|
197 |
+
"step": 61360
|
198 |
+
},
|
199 |
+
{
|
200 |
+
"epoch": 5.0,
|
201 |
+
"step": 61360,
|
202 |
+
"total_flos": 1.4676274702232822e+17,
|
203 |
+
"train_loss": 0.2071122335486182,
|
204 |
+
"train_runtime": 11012.4801,
|
205 |
+
"train_samples_per_second": 178.299,
|
206 |
+
"train_steps_per_second": 5.572
|
207 |
+
}
|
208 |
+
],
|
209 |
+
"max_steps": 61360,
|
210 |
+
"num_train_epochs": 5,
|
211 |
+
"total_flos": 1.4676274702232822e+17,
|
212 |
+
"trial_name": null,
|
213 |
+
"trial_params": null
|
214 |
+
}
|
training_args.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:33defe574a9d214ffc2b4077fe2efe3326e70f76ba9060ae108b16e948d37bac
|
3 |
+
size 3119
|
validation-m_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"validation-m_accuracy": 0.8633723892002038,
|
4 |
+
"validation-m_loss": 0.8447091579437256,
|
5 |
+
"validation-m_runtime": 26.4853,
|
6 |
+
"validation-m_samples": 9815,
|
7 |
+
"validation-m_samples_per_second": 370.582,
|
8 |
+
"validation-m_steps_per_second": 11.591
|
9 |
+
}
|
validation-mm_results.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"epoch": 5.0,
|
3 |
+
"validation-mm_accuracy": 0.8632017900732303,
|
4 |
+
"validation-mm_loss": 0.8356224298477173,
|
5 |
+
"validation-mm_runtime": 27.5179,
|
6 |
+
"validation-mm_samples": 9832,
|
7 |
+
"validation-mm_samples_per_second": 357.294,
|
8 |
+
"validation-mm_steps_per_second": 11.193
|
9 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|