kugler commited on
Commit
dad6748
·
verified ·
1 Parent(s): 0ae798f

kugler/gbert-large-AmDi-synset-classifier-marked

Browse files
README.md ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: deepset/gbert-large
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ - precision
11
+ - recall
12
+ model-index:
13
+ - name: gbert_synset_classifier_marked
14
+ results: []
15
+ ---
16
+
17
+ <!-- This model card has been generated automatically according to the information the Trainer had access to. You
18
+ should probably proofread and complete it, then remove this comment. -->
19
+
20
+ # gbert_synset_classifier_marked
21
+
22
+ This model is a fine-tuned version of [deepset/gbert-large](https://huggingface.co/deepset/gbert-large) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.5043
25
+ - Accuracy: 0.8515
26
+ - F1: 0.8487
27
+ - Precision: 0.8526
28
+ - Recall: 0.8515
29
+ - F1 Macro: 0.7531
30
+ - Precision Macro: 0.7471
31
+ - Recall Macro: 0.7706
32
+ - F1 Micro: 0.8515
33
+ - Precision Micro: 0.8515
34
+ - Recall Micro: 0.8515
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: 2e-05
54
+ - train_batch_size: 20
55
+ - eval_batch_size: 20
56
+ - seed: 42
57
+ - gradient_accumulation_steps: 4
58
+ - total_train_batch_size: 80
59
+ - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
60
+ - lr_scheduler_type: linear
61
+ - lr_scheduler_warmup_steps: 50
62
+ - num_epochs: 5
63
+ - mixed_precision_training: Native AMP
64
+
65
+ ### Training results
66
+
67
+ | Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall | F1 Macro | Precision Macro | Recall Macro | F1 Micro | Precision Micro | Recall Micro |
68
+ |:-------------:|:------:|:----:|:---------------:|:--------:|:------:|:---------:|:------:|:--------:|:---------------:|:------------:|:--------:|:---------------:|:------------:|
69
+ | 2.9643 | 0.3891 | 100 | 1.2450 | 0.7537 | 0.7157 | 0.7077 | 0.7537 | 0.4231 | 0.4210 | 0.4559 | 0.7537 | 0.7537 | 0.7537 |
70
+ | 0.9779 | 0.7782 | 200 | 0.6959 | 0.8138 | 0.8009 | 0.8022 | 0.8138 | 0.5690 | 0.5784 | 0.5873 | 0.8138 | 0.8138 | 0.8138 |
71
+ | 0.6664 | 1.1673 | 300 | 0.5947 | 0.8313 | 0.8222 | 0.8313 | 0.8313 | 0.6503 | 0.6570 | 0.6716 | 0.8313 | 0.8313 | 0.8313 |
72
+ | 0.5523 | 1.5564 | 400 | 0.5216 | 0.8448 | 0.8365 | 0.8405 | 0.8448 | 0.6824 | 0.6759 | 0.7057 | 0.8448 | 0.8448 | 0.8448 |
73
+ | 0.5126 | 1.9455 | 500 | 0.5216 | 0.8484 | 0.8417 | 0.8499 | 0.8484 | 0.7004 | 0.6848 | 0.7357 | 0.8484 | 0.8484 | 0.8484 |
74
+ | 0.4103 | 2.3346 | 600 | 0.5001 | 0.8533 | 0.8497 | 0.8579 | 0.8533 | 0.7212 | 0.7252 | 0.7375 | 0.8533 | 0.8533 | 0.8533 |
75
+ | 0.3733 | 2.7237 | 700 | 0.5010 | 0.8466 | 0.8403 | 0.8484 | 0.8466 | 0.7325 | 0.7274 | 0.7538 | 0.8466 | 0.8466 | 0.8466 |
76
+ | 0.3654 | 3.1128 | 800 | 0.4934 | 0.8524 | 0.8478 | 0.8547 | 0.8524 | 0.7439 | 0.7411 | 0.7630 | 0.8524 | 0.8524 | 0.8524 |
77
+ | 0.2761 | 3.5019 | 900 | 0.5038 | 0.8533 | 0.8495 | 0.8536 | 0.8533 | 0.7611 | 0.7527 | 0.7808 | 0.8533 | 0.8533 | 0.8533 |
78
+ | 0.274 | 3.8911 | 1000 | 0.5043 | 0.8515 | 0.8487 | 0.8526 | 0.8515 | 0.7531 | 0.7471 | 0.7706 | 0.8515 | 0.8515 | 0.8515 |
79
+
80
+
81
+ ### Framework versions
82
+
83
+ - Transformers 4.45.2
84
+ - Pytorch 2.3.1+cu121
85
+ - Datasets 2.20.0
86
+ - Tokenizers 0.20.3
config.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "deepset/gbert-large",
3
+ "architectures": [
4
+ "BertForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 1024,
11
+ "id2label": {
12
+ "0": "LABEL_0",
13
+ "1": "LABEL_1",
14
+ "2": "LABEL_2",
15
+ "3": "LABEL_3",
16
+ "4": "LABEL_4",
17
+ "5": "LABEL_5",
18
+ "6": "LABEL_6",
19
+ "7": "LABEL_7",
20
+ "8": "LABEL_8",
21
+ "9": "LABEL_9",
22
+ "10": "LABEL_10",
23
+ "11": "LABEL_11",
24
+ "12": "LABEL_12",
25
+ "13": "LABEL_13",
26
+ "14": "LABEL_14",
27
+ "15": "LABEL_15",
28
+ "16": "LABEL_16",
29
+ "17": "LABEL_17",
30
+ "18": "LABEL_18",
31
+ "19": "LABEL_19",
32
+ "20": "LABEL_20",
33
+ "21": "LABEL_21",
34
+ "22": "LABEL_22",
35
+ "23": "LABEL_23",
36
+ "24": "LABEL_24",
37
+ "25": "LABEL_25",
38
+ "26": "LABEL_26",
39
+ "27": "LABEL_27",
40
+ "28": "LABEL_28",
41
+ "29": "LABEL_29",
42
+ "30": "LABEL_30",
43
+ "31": "LABEL_31",
44
+ "32": "LABEL_32",
45
+ "33": "LABEL_33",
46
+ "34": "LABEL_34",
47
+ "35": "LABEL_35",
48
+ "36": "LABEL_36",
49
+ "37": "LABEL_37",
50
+ "38": "LABEL_38",
51
+ "39": "LABEL_39",
52
+ "40": "LABEL_40",
53
+ "41": "LABEL_41",
54
+ "42": "LABEL_42",
55
+ "43": "LABEL_43",
56
+ "44": "LABEL_44",
57
+ "45": "LABEL_45",
58
+ "46": "LABEL_46",
59
+ "47": "LABEL_47",
60
+ "48": "LABEL_48",
61
+ "49": "LABEL_49",
62
+ "50": "LABEL_50",
63
+ "51": "LABEL_51",
64
+ "52": "LABEL_52",
65
+ "53": "LABEL_53",
66
+ "54": "LABEL_54",
67
+ "55": "LABEL_55",
68
+ "56": "LABEL_56",
69
+ "57": "LABEL_57",
70
+ "58": "LABEL_58",
71
+ "59": "LABEL_59",
72
+ "60": "LABEL_60",
73
+ "61": "LABEL_61",
74
+ "62": "LABEL_62",
75
+ "63": "LABEL_63",
76
+ "64": "LABEL_64",
77
+ "65": "LABEL_65",
78
+ "66": "LABEL_66",
79
+ "67": "LABEL_67",
80
+ "68": "LABEL_68",
81
+ "69": "LABEL_69",
82
+ "70": "LABEL_70",
83
+ "71": "LABEL_71",
84
+ "72": "LABEL_72",
85
+ "73": "LABEL_73"
86
+ },
87
+ "initializer_range": 0.02,
88
+ "intermediate_size": 4096,
89
+ "label2id": {
90
+ "LABEL_0": 0,
91
+ "LABEL_1": 1,
92
+ "LABEL_10": 10,
93
+ "LABEL_11": 11,
94
+ "LABEL_12": 12,
95
+ "LABEL_13": 13,
96
+ "LABEL_14": 14,
97
+ "LABEL_15": 15,
98
+ "LABEL_16": 16,
99
+ "LABEL_17": 17,
100
+ "LABEL_18": 18,
101
+ "LABEL_19": 19,
102
+ "LABEL_2": 2,
103
+ "LABEL_20": 20,
104
+ "LABEL_21": 21,
105
+ "LABEL_22": 22,
106
+ "LABEL_23": 23,
107
+ "LABEL_24": 24,
108
+ "LABEL_25": 25,
109
+ "LABEL_26": 26,
110
+ "LABEL_27": 27,
111
+ "LABEL_28": 28,
112
+ "LABEL_29": 29,
113
+ "LABEL_3": 3,
114
+ "LABEL_30": 30,
115
+ "LABEL_31": 31,
116
+ "LABEL_32": 32,
117
+ "LABEL_33": 33,
118
+ "LABEL_34": 34,
119
+ "LABEL_35": 35,
120
+ "LABEL_36": 36,
121
+ "LABEL_37": 37,
122
+ "LABEL_38": 38,
123
+ "LABEL_39": 39,
124
+ "LABEL_4": 4,
125
+ "LABEL_40": 40,
126
+ "LABEL_41": 41,
127
+ "LABEL_42": 42,
128
+ "LABEL_43": 43,
129
+ "LABEL_44": 44,
130
+ "LABEL_45": 45,
131
+ "LABEL_46": 46,
132
+ "LABEL_47": 47,
133
+ "LABEL_48": 48,
134
+ "LABEL_49": 49,
135
+ "LABEL_5": 5,
136
+ "LABEL_50": 50,
137
+ "LABEL_51": 51,
138
+ "LABEL_52": 52,
139
+ "LABEL_53": 53,
140
+ "LABEL_54": 54,
141
+ "LABEL_55": 55,
142
+ "LABEL_56": 56,
143
+ "LABEL_57": 57,
144
+ "LABEL_58": 58,
145
+ "LABEL_59": 59,
146
+ "LABEL_6": 6,
147
+ "LABEL_60": 60,
148
+ "LABEL_61": 61,
149
+ "LABEL_62": 62,
150
+ "LABEL_63": 63,
151
+ "LABEL_64": 64,
152
+ "LABEL_65": 65,
153
+ "LABEL_66": 66,
154
+ "LABEL_67": 67,
155
+ "LABEL_68": 68,
156
+ "LABEL_69": 69,
157
+ "LABEL_7": 7,
158
+ "LABEL_70": 70,
159
+ "LABEL_71": 71,
160
+ "LABEL_72": 72,
161
+ "LABEL_73": 73,
162
+ "LABEL_8": 8,
163
+ "LABEL_9": 9
164
+ },
165
+ "layer_norm_eps": 1e-12,
166
+ "max_position_embeddings": 512,
167
+ "model_type": "bert",
168
+ "num_attention_heads": 16,
169
+ "num_hidden_layers": 24,
170
+ "pad_token_id": 0,
171
+ "position_embedding_type": "absolute",
172
+ "problem_type": "single_label_classification",
173
+ "torch_dtype": "float32",
174
+ "transformers_version": "4.45.2",
175
+ "type_vocab_size": 2,
176
+ "use_cache": true,
177
+ "vocab_size": 31102
178
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a2ddace13f62c922990267f7c481a91c864b1a6de1770f2d160357d6d78a20ad
3
+ size 1343293648
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.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "101": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "102": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "103": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "104": {
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": false,
48
+ "mask_token": "[MASK]",
49
+ "max_len": 512,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": false,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c3edd9a9a0c5f72afeb6f13a16942feee4ff84dca8d512412cf1c8b2c2127bd3
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff