kugler commited on
Commit
364cea3
·
verified ·
1 Parent(s): 2a62fcb

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

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_amdi_tiny
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_tiny
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.6469
25
+ - Accuracy: 0.8376
26
+ - F1: 0.8366
27
+ - Precision: 0.8446
28
+ - Recall: 0.8376
29
+ - F1 Macro: 0.8202
30
+ - Precision Macro: 0.7900
31
+ - Recall Macro: 0.8625
32
+ - F1 Micro: 0.8376
33
+ - Precision Micro: 0.8376
34
+ - Recall Micro: 0.8376
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
+ | 2.7014 | 0.8584 | 100 | 1.1834 | 0.6919 | 0.6499 | 0.6573 | 0.6919 | 0.4964 | 0.5670 | 0.4997 | 0.6919 | 0.6919 | 0.6919 |
70
+ | 0.7696 | 1.7167 | 200 | 0.5970 | 0.8241 | 0.8188 | 0.8227 | 0.8241 | 0.7784 | 0.7603 | 0.8062 | 0.8241 | 0.8241 | 0.8241 |
71
+ | 0.4739 | 2.5751 | 300 | 0.5408 | 0.8321 | 0.8290 | 0.8381 | 0.8321 | 0.8082 | 0.7815 | 0.8508 | 0.8321 | 0.8321 | 0.8321 |
72
+ | 0.3743 | 3.4335 | 400 | 0.5343 | 0.8426 | 0.8385 | 0.8480 | 0.8426 | 0.8269 | 0.8046 | 0.8598 | 0.8426 | 0.8426 | 0.8426 |
73
+ | 0.2931 | 4.2918 | 500 | 0.5188 | 0.8469 | 0.8465 | 0.8516 | 0.8469 | 0.8312 | 0.8133 | 0.8552 | 0.8469 | 0.8469 | 0.8469 |
74
+ | 0.2175 | 5.1502 | 600 | 0.5697 | 0.8426 | 0.8419 | 0.8506 | 0.8426 | 0.8295 | 0.8093 | 0.8572 | 0.8426 | 0.8426 | 0.8426 |
75
+ | 0.1689 | 6.0086 | 700 | 0.5781 | 0.8426 | 0.8421 | 0.8470 | 0.8426 | 0.8322 | 0.8164 | 0.8540 | 0.8426 | 0.8426 | 0.8426 |
76
+ | 0.1174 | 6.8670 | 800 | 0.6469 | 0.8376 | 0.8366 | 0.8446 | 0.8376 | 0.8202 | 0.7900 | 0.8625 | 0.8376 | 0.8376 | 0.8376 |
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,112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ },
54
+ "initializer_range": 0.02,
55
+ "intermediate_size": 4096,
56
+ "label2id": {
57
+ "LABEL_0": 0,
58
+ "LABEL_1": 1,
59
+ "LABEL_10": 10,
60
+ "LABEL_11": 11,
61
+ "LABEL_12": 12,
62
+ "LABEL_13": 13,
63
+ "LABEL_14": 14,
64
+ "LABEL_15": 15,
65
+ "LABEL_16": 16,
66
+ "LABEL_17": 17,
67
+ "LABEL_18": 18,
68
+ "LABEL_19": 19,
69
+ "LABEL_2": 2,
70
+ "LABEL_20": 20,
71
+ "LABEL_21": 21,
72
+ "LABEL_22": 22,
73
+ "LABEL_23": 23,
74
+ "LABEL_24": 24,
75
+ "LABEL_25": 25,
76
+ "LABEL_26": 26,
77
+ "LABEL_27": 27,
78
+ "LABEL_28": 28,
79
+ "LABEL_29": 29,
80
+ "LABEL_3": 3,
81
+ "LABEL_30": 30,
82
+ "LABEL_31": 31,
83
+ "LABEL_32": 32,
84
+ "LABEL_33": 33,
85
+ "LABEL_34": 34,
86
+ "LABEL_35": 35,
87
+ "LABEL_36": 36,
88
+ "LABEL_37": 37,
89
+ "LABEL_38": 38,
90
+ "LABEL_39": 39,
91
+ "LABEL_4": 4,
92
+ "LABEL_40": 40,
93
+ "LABEL_5": 5,
94
+ "LABEL_6": 6,
95
+ "LABEL_7": 7,
96
+ "LABEL_8": 8,
97
+ "LABEL_9": 9
98
+ },
99
+ "layer_norm_eps": 1e-12,
100
+ "max_position_embeddings": 512,
101
+ "model_type": "bert",
102
+ "num_attention_heads": 16,
103
+ "num_hidden_layers": 24,
104
+ "pad_token_id": 0,
105
+ "position_embedding_type": "absolute",
106
+ "problem_type": "single_label_classification",
107
+ "torch_dtype": "float32",
108
+ "transformers_version": "4.45.2",
109
+ "type_vocab_size": 2,
110
+ "use_cache": true,
111
+ "vocab_size": 31102
112
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2f28a321bd43f053daf6fbfff6965b58fabd767425c40672dd34503d3bcbc72a
3
+ size 1343158348
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:cc85a9e36c69ee86b1d656b8ce222521e40e32e1c2a0bebfb7f6bced9da1a42f
3
+ size 5176
vocab.txt ADDED
The diff for this file is too large to render. See raw diff