sibyl commited on
Commit
76e8f19
1 Parent(s): c54056e
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ checkpoint-*/
README.md ADDED
@@ -0,0 +1,95 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ tags:
4
+ - generated_from_trainer
5
+ datasets:
6
+ - yahoo_answers_topics
7
+ metrics:
8
+ - accuracy
9
+ model-index:
10
+ - name: bert-base-uncased-yahoo_answers_topics
11
+ results:
12
+ - task:
13
+ name: Text Classification
14
+ type: text-classification
15
+ dataset:
16
+ name: yahoo_answers_topics
17
+ type: yahoo_answers_topics
18
+ args: yahoo_answers_topics
19
+ metrics:
20
+ - name: Accuracy
21
+ type: accuracy
22
+ value: 0.7499166666666667
23
+ ---
24
+
25
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
26
+ should probably proofread and complete it, then remove this comment. -->
27
+
28
+ # bert-base-uncased-yahoo_answers_topics
29
+
30
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on the yahoo_answers_topics dataset.
31
+ It achieves the following results on the evaluation set:
32
+ - Loss: 0.8092
33
+ - Accuracy: 0.7499
34
+
35
+ ## Model description
36
+
37
+ More information needed
38
+
39
+ ## Intended uses & limitations
40
+
41
+ More information needed
42
+
43
+ ## Training and evaluation data
44
+
45
+ More information needed
46
+
47
+ ## Training procedure
48
+
49
+ ### Training hyperparameters
50
+
51
+ The following hyperparameters were used during training:
52
+ - learning_rate: 5e-05
53
+ - train_batch_size: 8
54
+ - eval_batch_size: 16
55
+ - seed: 42
56
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
57
+ - lr_scheduler_type: linear
58
+ - lr_scheduler_warmup_steps: 86625
59
+ - training_steps: 866250
60
+
61
+ ### Training results
62
+
63
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy |
64
+ |:-------------:|:-----:|:-----:|:---------------:|:--------:|
65
+ | 2.162 | 0.01 | 2000 | 1.7444 | 0.5681 |
66
+ | 1.3126 | 0.02 | 4000 | 1.0081 | 0.7054 |
67
+ | 0.9592 | 0.03 | 6000 | 0.9021 | 0.7234 |
68
+ | 0.8903 | 0.05 | 8000 | 0.8827 | 0.7276 |
69
+ | 0.8685 | 0.06 | 10000 | 0.8540 | 0.7341 |
70
+ | 0.8422 | 0.07 | 12000 | 0.8547 | 0.7365 |
71
+ | 0.8535 | 0.08 | 14000 | 0.8264 | 0.7372 |
72
+ | 0.8178 | 0.09 | 16000 | 0.8331 | 0.7389 |
73
+ | 0.8325 | 0.1 | 18000 | 0.8242 | 0.7411 |
74
+ | 0.8181 | 0.12 | 20000 | 0.8356 | 0.7437 |
75
+ | 0.8171 | 0.13 | 22000 | 0.8090 | 0.7451 |
76
+ | 0.8092 | 0.14 | 24000 | 0.8469 | 0.7392 |
77
+ | 0.8057 | 0.15 | 26000 | 0.8185 | 0.7478 |
78
+ | 0.8085 | 0.16 | 28000 | 0.8090 | 0.7467 |
79
+ | 0.8229 | 0.17 | 30000 | 0.8225 | 0.7417 |
80
+ | 0.8151 | 0.18 | 32000 | 0.8262 | 0.7419 |
81
+ | 0.81 | 0.2 | 34000 | 0.8149 | 0.7383 |
82
+ | 0.8073 | 0.21 | 36000 | 0.8225 | 0.7441 |
83
+ | 0.816 | 0.22 | 38000 | 0.8037 | 0.744 |
84
+ | 0.8217 | 0.23 | 40000 | 0.8409 | 0.743 |
85
+ | 0.82 | 0.24 | 42000 | 0.8286 | 0.7385 |
86
+ | 0.8101 | 0.25 | 44000 | 0.8282 | 0.7413 |
87
+ | 0.8254 | 0.27 | 46000 | 0.8170 | 0.7414 |
88
+
89
+
90
+ ### Framework versions
91
+
92
+ - Transformers 4.10.2
93
+ - Pytorch 1.7.1
94
+ - Datasets 1.6.1
95
+ - Tokenizers 0.10.3
config.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "bert-base-uncased",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0",
14
+ "1": "LABEL_1",
15
+ "2": "LABEL_2",
16
+ "3": "LABEL_3",
17
+ "4": "LABEL_4",
18
+ "5": "LABEL_5",
19
+ "6": "LABEL_6",
20
+ "7": "LABEL_7",
21
+ "8": "LABEL_8",
22
+ "9": "LABEL_9"
23
+ },
24
+ "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
+ "label2id": {
27
+ "LABEL_0": 0,
28
+ "LABEL_1": 1,
29
+ "LABEL_2": 2,
30
+ "LABEL_3": 3,
31
+ "LABEL_4": 4,
32
+ "LABEL_5": 5,
33
+ "LABEL_6": 6,
34
+ "LABEL_7": 7,
35
+ "LABEL_8": 8,
36
+ "LABEL_9": 9
37
+ },
38
+ "layer_norm_eps": 1e-12,
39
+ "max_position_embeddings": 512,
40
+ "model_type": "bert",
41
+ "num_attention_heads": 12,
42
+ "num_hidden_layers": 12,
43
+ "pad_token_id": 0,
44
+ "position_embedding_type": "absolute",
45
+ "problem_type": "single_label_classification",
46
+ "torch_dtype": "float32",
47
+ "transformers_version": "4.10.2",
48
+ "type_vocab_size": 2,
49
+ "use_cache": true,
50
+ "vocab_size": 30522
51
+ }
pytorch_model.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c6f55fd02f4bb891184c03c9f9b76880443e76754ff00b3bdffd9242ade0a8be
3
+ size 438048639
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-base-uncased", "tokenizer_class": "BertTokenizer"}
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63bac170019cba931020037a3ad6efa5b4ccc16343ec3452877c6754904e42c7
3
+ size 2607
vocab.txt ADDED
The diff for this file is too large to render. See raw diff