afaji commited on
Commit
e44676e
1 Parent(s): 0d6eaaf

afaji/summerschool-bert-massive

Browse files
README.md ADDED
@@ -0,0 +1,75 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: bert-base-uncased
4
+ tags:
5
+ - generated_from_trainer
6
+ metrics:
7
+ - accuracy
8
+ - f1
9
+ model-index:
10
+ - name: summerschool-bert-massive
11
+ results: []
12
+ ---
13
+
14
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
+ should probably proofread and complete it, then remove this comment. -->
16
+
17
+ # summerschool-bert-massive
18
+
19
+ This model is a fine-tuned version of [bert-base-uncased](https://huggingface.co/bert-base-uncased) on an unknown dataset.
20
+ It achieves the following results on the evaluation set:
21
+ - Loss: 0.8479
22
+ - Accuracy: 0.8283
23
+ - F1: 0.8139
24
+
25
+ ## Model description
26
+
27
+ More information needed
28
+
29
+ ## Intended uses & limitations
30
+
31
+ More information needed
32
+
33
+ ## Training and evaluation data
34
+
35
+ More information needed
36
+
37
+ ## Training procedure
38
+
39
+ ### Training hyperparameters
40
+
41
+ The following hyperparameters were used during training:
42
+ - learning_rate: 2e-05
43
+ - train_batch_size: 16
44
+ - eval_batch_size: 16
45
+ - seed: 42
46
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
47
+ - lr_scheduler_type: linear
48
+ - num_epochs: 2
49
+
50
+ ### Training results
51
+
52
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
53
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|
54
+ | 3.8604 | 0.1389 | 100 | 3.3964 | 0.2720 | 0.2091 |
55
+ | 3.046 | 0.2778 | 200 | 2.5353 | 0.4870 | 0.3971 |
56
+ | 2.3977 | 0.4167 | 300 | 2.0141 | 0.6193 | 0.5592 |
57
+ | 1.9293 | 0.5556 | 400 | 1.6738 | 0.6803 | 0.6328 |
58
+ | 1.6997 | 0.6944 | 500 | 1.4307 | 0.7334 | 0.6937 |
59
+ | 1.505 | 0.8333 | 600 | 1.2759 | 0.7772 | 0.7469 |
60
+ | 1.3531 | 0.9722 | 700 | 1.1656 | 0.7757 | 0.7445 |
61
+ | 1.1651 | 1.1111 | 800 | 1.0720 | 0.7914 | 0.7707 |
62
+ | 1.0441 | 1.25 | 900 | 0.9979 | 0.8032 | 0.7838 |
63
+ | 1.0021 | 1.3889 | 1000 | 0.9496 | 0.8146 | 0.7977 |
64
+ | 0.9732 | 1.5278 | 1100 | 0.8996 | 0.8278 | 0.8116 |
65
+ | 0.9025 | 1.6667 | 1200 | 0.8816 | 0.8214 | 0.8053 |
66
+ | 0.8952 | 1.8056 | 1300 | 0.8612 | 0.8273 | 0.8128 |
67
+ | 0.8435 | 1.9444 | 1400 | 0.8479 | 0.8283 | 0.8139 |
68
+
69
+
70
+ ### Framework versions
71
+
72
+ - Transformers 4.41.2
73
+ - Pytorch 2.3.0+cu121
74
+ - Datasets 2.20.0
75
+ - Tokenizers 0.19.1
config.json ADDED
@@ -0,0 +1,151 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "10": "LABEL_10",
24
+ "11": "LABEL_11",
25
+ "12": "LABEL_12",
26
+ "13": "LABEL_13",
27
+ "14": "LABEL_14",
28
+ "15": "LABEL_15",
29
+ "16": "LABEL_16",
30
+ "17": "LABEL_17",
31
+ "18": "LABEL_18",
32
+ "19": "LABEL_19",
33
+ "20": "LABEL_20",
34
+ "21": "LABEL_21",
35
+ "22": "LABEL_22",
36
+ "23": "LABEL_23",
37
+ "24": "LABEL_24",
38
+ "25": "LABEL_25",
39
+ "26": "LABEL_26",
40
+ "27": "LABEL_27",
41
+ "28": "LABEL_28",
42
+ "29": "LABEL_29",
43
+ "30": "LABEL_30",
44
+ "31": "LABEL_31",
45
+ "32": "LABEL_32",
46
+ "33": "LABEL_33",
47
+ "34": "LABEL_34",
48
+ "35": "LABEL_35",
49
+ "36": "LABEL_36",
50
+ "37": "LABEL_37",
51
+ "38": "LABEL_38",
52
+ "39": "LABEL_39",
53
+ "40": "LABEL_40",
54
+ "41": "LABEL_41",
55
+ "42": "LABEL_42",
56
+ "43": "LABEL_43",
57
+ "44": "LABEL_44",
58
+ "45": "LABEL_45",
59
+ "46": "LABEL_46",
60
+ "47": "LABEL_47",
61
+ "48": "LABEL_48",
62
+ "49": "LABEL_49",
63
+ "50": "LABEL_50",
64
+ "51": "LABEL_51",
65
+ "52": "LABEL_52",
66
+ "53": "LABEL_53",
67
+ "54": "LABEL_54",
68
+ "55": "LABEL_55",
69
+ "56": "LABEL_56",
70
+ "57": "LABEL_57",
71
+ "58": "LABEL_58",
72
+ "59": "LABEL_59"
73
+ },
74
+ "initializer_range": 0.02,
75
+ "intermediate_size": 3072,
76
+ "label2id": {
77
+ "LABEL_0": 0,
78
+ "LABEL_1": 1,
79
+ "LABEL_10": 10,
80
+ "LABEL_11": 11,
81
+ "LABEL_12": 12,
82
+ "LABEL_13": 13,
83
+ "LABEL_14": 14,
84
+ "LABEL_15": 15,
85
+ "LABEL_16": 16,
86
+ "LABEL_17": 17,
87
+ "LABEL_18": 18,
88
+ "LABEL_19": 19,
89
+ "LABEL_2": 2,
90
+ "LABEL_20": 20,
91
+ "LABEL_21": 21,
92
+ "LABEL_22": 22,
93
+ "LABEL_23": 23,
94
+ "LABEL_24": 24,
95
+ "LABEL_25": 25,
96
+ "LABEL_26": 26,
97
+ "LABEL_27": 27,
98
+ "LABEL_28": 28,
99
+ "LABEL_29": 29,
100
+ "LABEL_3": 3,
101
+ "LABEL_30": 30,
102
+ "LABEL_31": 31,
103
+ "LABEL_32": 32,
104
+ "LABEL_33": 33,
105
+ "LABEL_34": 34,
106
+ "LABEL_35": 35,
107
+ "LABEL_36": 36,
108
+ "LABEL_37": 37,
109
+ "LABEL_38": 38,
110
+ "LABEL_39": 39,
111
+ "LABEL_4": 4,
112
+ "LABEL_40": 40,
113
+ "LABEL_41": 41,
114
+ "LABEL_42": 42,
115
+ "LABEL_43": 43,
116
+ "LABEL_44": 44,
117
+ "LABEL_45": 45,
118
+ "LABEL_46": 46,
119
+ "LABEL_47": 47,
120
+ "LABEL_48": 48,
121
+ "LABEL_49": 49,
122
+ "LABEL_5": 5,
123
+ "LABEL_50": 50,
124
+ "LABEL_51": 51,
125
+ "LABEL_52": 52,
126
+ "LABEL_53": 53,
127
+ "LABEL_54": 54,
128
+ "LABEL_55": 55,
129
+ "LABEL_56": 56,
130
+ "LABEL_57": 57,
131
+ "LABEL_58": 58,
132
+ "LABEL_59": 59,
133
+ "LABEL_6": 6,
134
+ "LABEL_7": 7,
135
+ "LABEL_8": 8,
136
+ "LABEL_9": 9
137
+ },
138
+ "layer_norm_eps": 1e-12,
139
+ "max_position_embeddings": 512,
140
+ "model_type": "bert",
141
+ "num_attention_heads": 12,
142
+ "num_hidden_layers": 12,
143
+ "pad_token_id": 0,
144
+ "position_embedding_type": "absolute",
145
+ "problem_type": "single_label_classification",
146
+ "torch_dtype": "float32",
147
+ "transformers_version": "4.41.2",
148
+ "type_vocab_size": 2,
149
+ "use_cache": true,
150
+ "vocab_size": 30522
151
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2cab05d5d8ae6c3c051a1e01d5e28804fd2f66cc05d6f838169a005226ae505
3
+ size 438137056
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:586b9eed430ee82f629e8c70b634adf259b24b0aa1a12f0deb27e16ebc656f31
3
+ size 5048
vocab.txt ADDED
The diff for this file is too large to render. See raw diff