kugler commited on
Commit
2067d68
·
verified ·
1 Parent(s): 39d615c

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

Browse files
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_pair
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_pair
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.4826
25
+ - Accuracy: 0.8551
26
+ - F1: 0.8501
27
+ - Precision: 0.8590
28
+ - Recall: 0.8551
29
+ - F1 Macro: 0.7419
30
+ - Precision Macro: 0.7334
31
+ - Recall Macro: 0.7673
32
+ - F1 Micro: 0.8551
33
+ - Precision Micro: 0.8551
34
+ - Recall Micro: 0.8551
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.7743 | 0.3891 | 100 | 1.0270 | 0.7995 | 0.7723 | 0.7757 | 0.7995 | 0.5034 | 0.5166 | 0.5282 | 0.7995 | 0.7995 | 0.7995 |
70
+ | 0.8957 | 0.7782 | 200 | 0.6587 | 0.8291 | 0.8176 | 0.8179 | 0.8291 | 0.5871 | 0.5863 | 0.6064 | 0.8291 | 0.8291 | 0.8291 |
71
+ | 0.6278 | 1.1673 | 300 | 0.5440 | 0.8457 | 0.8363 | 0.8395 | 0.8457 | 0.6407 | 0.6380 | 0.6622 | 0.8457 | 0.8457 | 0.8457 |
72
+ | 0.5132 | 1.5564 | 400 | 0.5295 | 0.8362 | 0.8275 | 0.8355 | 0.8362 | 0.6593 | 0.6525 | 0.6857 | 0.8362 | 0.8362 | 0.8362 |
73
+ | 0.4843 | 1.9455 | 500 | 0.4930 | 0.8511 | 0.8439 | 0.8500 | 0.8511 | 0.6777 | 0.6675 | 0.7028 | 0.8511 | 0.8511 | 0.8511 |
74
+ | 0.39 | 2.3346 | 600 | 0.4827 | 0.8564 | 0.8521 | 0.8555 | 0.8564 | 0.7073 | 0.6989 | 0.7287 | 0.8564 | 0.8564 | 0.8564 |
75
+ | 0.3536 | 2.7237 | 700 | 0.4818 | 0.8551 | 0.8492 | 0.8576 | 0.8551 | 0.7314 | 0.7421 | 0.7476 | 0.8551 | 0.8551 | 0.8551 |
76
+ | 0.3462 | 3.1128 | 800 | 0.4826 | 0.8551 | 0.8501 | 0.8590 | 0.8551 | 0.7419 | 0.7334 | 0.7673 | 0.8551 | 0.8551 | 0.8551 |
77
+
78
+
79
+ ### Framework versions
80
+
81
+ - Transformers 4.45.2
82
+ - Pytorch 2.3.1+cu121
83
+ - Datasets 2.20.0
84
+ - 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:1408a29c57d90e2df9c1f4c91cc3e0a90dfc4674f421fc351705f49f6dc10967
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:497cd48f2ce0437c5f80956fd25ff89733d0281e562238925af52523efc801f1
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff