kugler commited on
Commit
d28cc01
·
verified ·
1 Parent(s): 136d101

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

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: mit
4
+ base_model: FacebookAI/xlm-roberta-large
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - accuracy
9
+ - f1
10
+ - precision
11
+ - recall
12
+ model-index:
13
+ - name: xlmr_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
+ # xlmr_synset_classifier_marked
21
+
22
+ This model is a fine-tuned version of [FacebookAI/xlm-roberta-large](https://huggingface.co/FacebookAI/xlm-roberta-large) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.5065
25
+ - Accuracy: 0.8542
26
+ - F1: 0.8462
27
+ - Precision: 0.8503
28
+ - Recall: 0.8542
29
+ - F1 Macro: 0.6998
30
+ - Precision Macro: 0.6940
31
+ - Recall Macro: 0.7209
32
+ - F1 Micro: 0.8542
33
+ - Precision Micro: 0.8542
34
+ - Recall Micro: 0.8542
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: 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
+ | 3.4502 | 0.6221 | 100 | 1.8070 | 0.6245 | 0.5355 | 0.5022 | 0.6245 | 0.2357 | 0.2456 | 0.2565 | 0.6245 | 0.6245 | 0.6245 |
70
+ | 1.1977 | 1.2442 | 200 | 0.7296 | 0.8116 | 0.7934 | 0.8034 | 0.8116 | 0.5365 | 0.5496 | 0.5643 | 0.8116 | 0.8116 | 0.8116 |
71
+ | 0.724 | 1.8663 | 300 | 0.6379 | 0.8282 | 0.8150 | 0.8301 | 0.8282 | 0.5981 | 0.5903 | 0.6309 | 0.8282 | 0.8282 | 0.8282 |
72
+ | 0.5655 | 2.4883 | 400 | 0.5609 | 0.8398 | 0.8267 | 0.8326 | 0.8398 | 0.6235 | 0.6094 | 0.6519 | 0.8398 | 0.8398 | 0.8398 |
73
+ | 0.5095 | 3.1104 | 500 | 0.5166 | 0.8488 | 0.8389 | 0.8470 | 0.8488 | 0.6594 | 0.6492 | 0.6862 | 0.8488 | 0.8488 | 0.8488 |
74
+ | 0.4206 | 3.7325 | 600 | 0.4964 | 0.8479 | 0.8396 | 0.8412 | 0.8479 | 0.6778 | 0.6770 | 0.6923 | 0.8479 | 0.8479 | 0.8479 |
75
+ | 0.386 | 4.3546 | 700 | 0.5091 | 0.8502 | 0.8418 | 0.8468 | 0.8502 | 0.6949 | 0.6930 | 0.7146 | 0.8502 | 0.8502 | 0.8502 |
76
+ | 0.3463 | 4.9767 | 800 | 0.5065 | 0.8542 | 0.8462 | 0.8503 | 0.8542 | 0.6998 | 0.6940 | 0.7209 | 0.8542 | 0.8542 | 0.8542 |
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,181 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "FacebookAI/xlm-roberta-large",
3
+ "architectures": [
4
+ "XLMRobertaForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 1024,
13
+ "id2label": {
14
+ "0": "LABEL_0",
15
+ "1": "LABEL_1",
16
+ "2": "LABEL_2",
17
+ "3": "LABEL_3",
18
+ "4": "LABEL_4",
19
+ "5": "LABEL_5",
20
+ "6": "LABEL_6",
21
+ "7": "LABEL_7",
22
+ "8": "LABEL_8",
23
+ "9": "LABEL_9",
24
+ "10": "LABEL_10",
25
+ "11": "LABEL_11",
26
+ "12": "LABEL_12",
27
+ "13": "LABEL_13",
28
+ "14": "LABEL_14",
29
+ "15": "LABEL_15",
30
+ "16": "LABEL_16",
31
+ "17": "LABEL_17",
32
+ "18": "LABEL_18",
33
+ "19": "LABEL_19",
34
+ "20": "LABEL_20",
35
+ "21": "LABEL_21",
36
+ "22": "LABEL_22",
37
+ "23": "LABEL_23",
38
+ "24": "LABEL_24",
39
+ "25": "LABEL_25",
40
+ "26": "LABEL_26",
41
+ "27": "LABEL_27",
42
+ "28": "LABEL_28",
43
+ "29": "LABEL_29",
44
+ "30": "LABEL_30",
45
+ "31": "LABEL_31",
46
+ "32": "LABEL_32",
47
+ "33": "LABEL_33",
48
+ "34": "LABEL_34",
49
+ "35": "LABEL_35",
50
+ "36": "LABEL_36",
51
+ "37": "LABEL_37",
52
+ "38": "LABEL_38",
53
+ "39": "LABEL_39",
54
+ "40": "LABEL_40",
55
+ "41": "LABEL_41",
56
+ "42": "LABEL_42",
57
+ "43": "LABEL_43",
58
+ "44": "LABEL_44",
59
+ "45": "LABEL_45",
60
+ "46": "LABEL_46",
61
+ "47": "LABEL_47",
62
+ "48": "LABEL_48",
63
+ "49": "LABEL_49",
64
+ "50": "LABEL_50",
65
+ "51": "LABEL_51",
66
+ "52": "LABEL_52",
67
+ "53": "LABEL_53",
68
+ "54": "LABEL_54",
69
+ "55": "LABEL_55",
70
+ "56": "LABEL_56",
71
+ "57": "LABEL_57",
72
+ "58": "LABEL_58",
73
+ "59": "LABEL_59",
74
+ "60": "LABEL_60",
75
+ "61": "LABEL_61",
76
+ "62": "LABEL_62",
77
+ "63": "LABEL_63",
78
+ "64": "LABEL_64",
79
+ "65": "LABEL_65",
80
+ "66": "LABEL_66",
81
+ "67": "LABEL_67",
82
+ "68": "LABEL_68",
83
+ "69": "LABEL_69",
84
+ "70": "LABEL_70",
85
+ "71": "LABEL_71",
86
+ "72": "LABEL_72",
87
+ "73": "LABEL_73"
88
+ },
89
+ "initializer_range": 0.02,
90
+ "intermediate_size": 4096,
91
+ "label2id": {
92
+ "LABEL_0": 0,
93
+ "LABEL_1": 1,
94
+ "LABEL_10": 10,
95
+ "LABEL_11": 11,
96
+ "LABEL_12": 12,
97
+ "LABEL_13": 13,
98
+ "LABEL_14": 14,
99
+ "LABEL_15": 15,
100
+ "LABEL_16": 16,
101
+ "LABEL_17": 17,
102
+ "LABEL_18": 18,
103
+ "LABEL_19": 19,
104
+ "LABEL_2": 2,
105
+ "LABEL_20": 20,
106
+ "LABEL_21": 21,
107
+ "LABEL_22": 22,
108
+ "LABEL_23": 23,
109
+ "LABEL_24": 24,
110
+ "LABEL_25": 25,
111
+ "LABEL_26": 26,
112
+ "LABEL_27": 27,
113
+ "LABEL_28": 28,
114
+ "LABEL_29": 29,
115
+ "LABEL_3": 3,
116
+ "LABEL_30": 30,
117
+ "LABEL_31": 31,
118
+ "LABEL_32": 32,
119
+ "LABEL_33": 33,
120
+ "LABEL_34": 34,
121
+ "LABEL_35": 35,
122
+ "LABEL_36": 36,
123
+ "LABEL_37": 37,
124
+ "LABEL_38": 38,
125
+ "LABEL_39": 39,
126
+ "LABEL_4": 4,
127
+ "LABEL_40": 40,
128
+ "LABEL_41": 41,
129
+ "LABEL_42": 42,
130
+ "LABEL_43": 43,
131
+ "LABEL_44": 44,
132
+ "LABEL_45": 45,
133
+ "LABEL_46": 46,
134
+ "LABEL_47": 47,
135
+ "LABEL_48": 48,
136
+ "LABEL_49": 49,
137
+ "LABEL_5": 5,
138
+ "LABEL_50": 50,
139
+ "LABEL_51": 51,
140
+ "LABEL_52": 52,
141
+ "LABEL_53": 53,
142
+ "LABEL_54": 54,
143
+ "LABEL_55": 55,
144
+ "LABEL_56": 56,
145
+ "LABEL_57": 57,
146
+ "LABEL_58": 58,
147
+ "LABEL_59": 59,
148
+ "LABEL_6": 6,
149
+ "LABEL_60": 60,
150
+ "LABEL_61": 61,
151
+ "LABEL_62": 62,
152
+ "LABEL_63": 63,
153
+ "LABEL_64": 64,
154
+ "LABEL_65": 65,
155
+ "LABEL_66": 66,
156
+ "LABEL_67": 67,
157
+ "LABEL_68": 68,
158
+ "LABEL_69": 69,
159
+ "LABEL_7": 7,
160
+ "LABEL_70": 70,
161
+ "LABEL_71": 71,
162
+ "LABEL_72": 72,
163
+ "LABEL_73": 73,
164
+ "LABEL_8": 8,
165
+ "LABEL_9": 9
166
+ },
167
+ "layer_norm_eps": 1e-05,
168
+ "max_position_embeddings": 514,
169
+ "model_type": "xlm-roberta",
170
+ "num_attention_heads": 16,
171
+ "num_hidden_layers": 24,
172
+ "output_past": true,
173
+ "pad_token_id": 1,
174
+ "position_embedding_type": "absolute",
175
+ "problem_type": "single_label_classification",
176
+ "torch_dtype": "float32",
177
+ "transformers_version": "4.45.2",
178
+ "type_vocab_size": 1,
179
+ "use_cache": true,
180
+ "vocab_size": 250002
181
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b17d0839fa7365b2316d6d332957ff60c90a1803860c209f5a067705d943dd82
3
+ size 2239913872
special_tokens_map.json ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<s>",
3
+ "cls_token": "<s>",
4
+ "eos_token": "</s>",
5
+ "mask_token": {
6
+ "content": "<mask>",
7
+ "lstrip": true,
8
+ "normalized": false,
9
+ "rstrip": false,
10
+ "single_word": false
11
+ },
12
+ "pad_token": "<pad>",
13
+ "sep_token": "</s>",
14
+ "unk_token": "<unk>"
15
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3c088c06cf975b7097e469bd69630cdb0d675c6db1ce3af1042b6e19c6d01f22
3
+ size 17082999
tokenizer_config.json ADDED
@@ -0,0 +1,54 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": false,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "mask_token": "<mask>",
49
+ "model_max_length": 512,
50
+ "pad_token": "<pad>",
51
+ "sep_token": "</s>",
52
+ "tokenizer_class": "XLMRobertaTokenizer",
53
+ "unk_token": "<unk>"
54
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ebdb2186851fc25be1fc376363aef82b574af3ba431478ccda5bc55bfeae062a
3
+ size 5176