kugler commited on
Commit
2808dbd
·
verified ·
1 Parent(s): 6f8fdb8

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

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_amdi_small
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_amdi_small
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.6371
25
+ - Accuracy: 0.8443
26
+ - F1: 0.8414
27
+ - Precision: 0.8523
28
+ - Recall: 0.8443
29
+ - F1 Macro: 0.7742
30
+ - Precision Macro: 0.7539
31
+ - Recall Macro: 0.8118
32
+ - F1 Micro: 0.8443
33
+ - Precision Micro: 0.8443
34
+ - Recall Micro: 0.8443
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: 32
55
+ - eval_batch_size: 32
56
+ - seed: 42
57
+ - gradient_accumulation_steps: 4
58
+ - total_train_batch_size: 128
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: 10
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
+ | 3.1817 | 0.6483 | 100 | 1.7424 | 0.6200 | 0.5455 | 0.5576 | 0.6200 | 0.2894 | 0.3465 | 0.2954 | 0.6200 | 0.6200 | 0.6200 |
70
+ | 1.0711 | 1.2966 | 200 | 0.7171 | 0.8140 | 0.7971 | 0.7992 | 0.8140 | 0.5958 | 0.5870 | 0.6238 | 0.8140 | 0.8140 | 0.8140 |
71
+ | 0.649 | 1.9449 | 300 | 0.6003 | 0.8275 | 0.8184 | 0.8282 | 0.8275 | 0.6797 | 0.6812 | 0.7138 | 0.8275 | 0.8275 | 0.8275 |
72
+ | 0.4903 | 2.5932 | 400 | 0.5668 | 0.8336 | 0.8268 | 0.8375 | 0.8336 | 0.6942 | 0.6869 | 0.7271 | 0.8336 | 0.8336 | 0.8336 |
73
+ | 0.4095 | 3.2415 | 500 | 0.5511 | 0.8387 | 0.8351 | 0.8398 | 0.8387 | 0.7224 | 0.7198 | 0.7414 | 0.8387 | 0.8387 | 0.8387 |
74
+ | 0.3586 | 3.8898 | 600 | 0.5313 | 0.8415 | 0.8360 | 0.8452 | 0.8415 | 0.7188 | 0.7075 | 0.7481 | 0.8415 | 0.8415 | 0.8415 |
75
+ | 0.2813 | 4.5381 | 700 | 0.5442 | 0.8485 | 0.8451 | 0.8502 | 0.8485 | 0.7290 | 0.7355 | 0.7419 | 0.8485 | 0.8485 | 0.8485 |
76
+ | 0.2543 | 5.1864 | 800 | 0.5736 | 0.8494 | 0.8461 | 0.8515 | 0.8494 | 0.7812 | 0.7708 | 0.8047 | 0.8494 | 0.8494 | 0.8494 |
77
+ | 0.1928 | 5.8347 | 900 | 0.5791 | 0.8448 | 0.8419 | 0.8484 | 0.8448 | 0.7646 | 0.7536 | 0.7899 | 0.8448 | 0.8448 | 0.8448 |
78
+ | 0.1645 | 6.4830 | 1000 | 0.6371 | 0.8443 | 0.8414 | 0.8523 | 0.8443 | 0.7742 | 0.7539 | 0.8118 | 0.8443 | 0.8443 | 0.8443 |
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,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
77
+ "initializer_range": 0.02,
78
+ "intermediate_size": 4096,
79
+ "label2id": {
80
+ "LABEL_0": 0,
81
+ "LABEL_1": 1,
82
+ "LABEL_10": 10,
83
+ "LABEL_11": 11,
84
+ "LABEL_12": 12,
85
+ "LABEL_13": 13,
86
+ "LABEL_14": 14,
87
+ "LABEL_15": 15,
88
+ "LABEL_16": 16,
89
+ "LABEL_17": 17,
90
+ "LABEL_18": 18,
91
+ "LABEL_19": 19,
92
+ "LABEL_2": 2,
93
+ "LABEL_20": 20,
94
+ "LABEL_21": 21,
95
+ "LABEL_22": 22,
96
+ "LABEL_23": 23,
97
+ "LABEL_24": 24,
98
+ "LABEL_25": 25,
99
+ "LABEL_26": 26,
100
+ "LABEL_27": 27,
101
+ "LABEL_28": 28,
102
+ "LABEL_29": 29,
103
+ "LABEL_3": 3,
104
+ "LABEL_30": 30,
105
+ "LABEL_31": 31,
106
+ "LABEL_32": 32,
107
+ "LABEL_33": 33,
108
+ "LABEL_34": 34,
109
+ "LABEL_35": 35,
110
+ "LABEL_36": 36,
111
+ "LABEL_37": 37,
112
+ "LABEL_38": 38,
113
+ "LABEL_39": 39,
114
+ "LABEL_4": 4,
115
+ "LABEL_40": 40,
116
+ "LABEL_41": 41,
117
+ "LABEL_42": 42,
118
+ "LABEL_43": 43,
119
+ "LABEL_44": 44,
120
+ "LABEL_45": 45,
121
+ "LABEL_46": 46,
122
+ "LABEL_47": 47,
123
+ "LABEL_48": 48,
124
+ "LABEL_49": 49,
125
+ "LABEL_5": 5,
126
+ "LABEL_50": 50,
127
+ "LABEL_51": 51,
128
+ "LABEL_52": 52,
129
+ "LABEL_53": 53,
130
+ "LABEL_54": 54,
131
+ "LABEL_55": 55,
132
+ "LABEL_56": 56,
133
+ "LABEL_57": 57,
134
+ "LABEL_58": 58,
135
+ "LABEL_59": 59,
136
+ "LABEL_6": 6,
137
+ "LABEL_60": 60,
138
+ "LABEL_61": 61,
139
+ "LABEL_62": 62,
140
+ "LABEL_63": 63,
141
+ "LABEL_7": 7,
142
+ "LABEL_8": 8,
143
+ "LABEL_9": 9
144
+ },
145
+ "layer_norm_eps": 1e-12,
146
+ "max_position_embeddings": 512,
147
+ "model_type": "bert",
148
+ "num_attention_heads": 16,
149
+ "num_hidden_layers": 24,
150
+ "pad_token_id": 0,
151
+ "position_embedding_type": "absolute",
152
+ "problem_type": "single_label_classification",
153
+ "torch_dtype": "float32",
154
+ "transformers_version": "4.45.2",
155
+ "type_vocab_size": 2,
156
+ "use_cache": true,
157
+ "vocab_size": 31102
158
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c17b0ce5033387a36fe83a5104c9182258e5c1d94c50cdaeb346f6515ec9ddf2
3
+ size 1343252648
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:8507961993ac7613b701b11a3e9dae232b096bb19f4bae84cd112c7f62583db5
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff