AndreaMaugeri71295 commited on
Commit
1a70cc1
·
verified ·
1 Parent(s): 8af2602

End of training

Browse files
README.md ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: transformers
3
+ license: apache-2.0
4
+ base_model: yonigo/distilbert-base-multilingual-cased-pii
5
+ tags:
6
+ - generated_from_trainer
7
+ metrics:
8
+ - precision
9
+ - recall
10
+ - f1
11
+ - accuracy
12
+ model-index:
13
+ - name: PII_classification_m1
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
+ # PII_classification_m1
21
+
22
+ This model is a fine-tuned version of [yonigo/distilbert-base-multilingual-cased-pii](https://huggingface.co/yonigo/distilbert-base-multilingual-cased-pii) on an unknown dataset.
23
+ It achieves the following results on the evaluation set:
24
+ - Loss: 0.5114
25
+ - Precision: 0.2198
26
+ - Recall: 0.2152
27
+ - F1: 0.2175
28
+ - Accuracy: 0.8536
29
+
30
+ ## Model description
31
+
32
+ More information needed
33
+
34
+ ## Intended uses & limitations
35
+
36
+ More information needed
37
+
38
+ ## Training and evaluation data
39
+
40
+ More information needed
41
+
42
+ ## Training procedure
43
+
44
+ ### Training hyperparameters
45
+
46
+ The following hyperparameters were used during training:
47
+ - learning_rate: 3e-05
48
+ - train_batch_size: 4
49
+ - eval_batch_size: 4
50
+ - seed: 42
51
+ - optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
52
+ - lr_scheduler_type: linear
53
+ - num_epochs: 8
54
+
55
+ ### Training results
56
+
57
+ | Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
58
+ |:-------------:|:-----:|:-----:|:---------------:|:---------:|:------:|:------:|:--------:|
59
+ | 0.5054 | 1.0 | 5036 | 0.4803 | 0.1488 | 0.1167 | 0.1308 | 0.8323 |
60
+ | 0.4305 | 2.0 | 10072 | 0.4536 | 0.1928 | 0.1756 | 0.1838 | 0.8416 |
61
+ | 0.3903 | 3.0 | 15108 | 0.4378 | 0.2003 | 0.1759 | 0.1873 | 0.8495 |
62
+ | 0.3317 | 4.0 | 20144 | 0.4314 | 0.2001 | 0.1782 | 0.1885 | 0.8501 |
63
+ | 0.2925 | 5.0 | 25180 | 0.4395 | 0.2194 | 0.2068 | 0.2130 | 0.8523 |
64
+ | 0.2609 | 6.0 | 30216 | 0.4759 | 0.2195 | 0.2129 | 0.2162 | 0.8529 |
65
+ | 0.2272 | 7.0 | 35252 | 0.4924 | 0.2228 | 0.2140 | 0.2183 | 0.8531 |
66
+ | 0.2059 | 8.0 | 40288 | 0.5114 | 0.2198 | 0.2152 | 0.2175 | 0.8536 |
67
+
68
+
69
+ ### Framework versions
70
+
71
+ - Transformers 4.50.0
72
+ - Pytorch 2.6.0+cu124
73
+ - Datasets 3.4.1
74
+ - Tokenizers 0.21.1
config.json ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertForTokenClassification"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "hidden_dim": 3072,
10
+ "id2label": {
11
+ "0": "O",
12
+ "1": "B-EMAIL",
13
+ "2": "I-EMAIL",
14
+ "3": "B-IDCARD",
15
+ "4": "I-IDCARD",
16
+ "5": "B-SOCIALNUMBER",
17
+ "6": "I-SOCIALNUMBER",
18
+ "7": "B-TEL",
19
+ "8": "I-TEL",
20
+ "9": "B-IP",
21
+ "10": "I-IP",
22
+ "11": "B-TIME",
23
+ "12": "B-DRIVERLICENSE",
24
+ "13": "I-DRIVERLICENSE",
25
+ "14": "B-DATE",
26
+ "15": "I-DATE",
27
+ "16": "B-PASSPORT",
28
+ "17": "I-PASSPORT",
29
+ "18": "B-USERNAME",
30
+ "19": "I-USERNAME",
31
+ "20": "B-PASS",
32
+ "21": "I-PASS",
33
+ "22": "B-SEX",
34
+ "23": "I-SEX",
35
+ "24": "B-TITLE",
36
+ "25": "B-BOD",
37
+ "26": "I-BOD",
38
+ "27": "I-TITLE",
39
+ "28": "B-LASTNAME1",
40
+ "29": "I-LASTNAME1",
41
+ "30": "I-TIME",
42
+ "31": "B-GIVENNAME1",
43
+ "32": "I-GIVENNAME1",
44
+ "33": "B-COUNTRY",
45
+ "34": "B-BUILDING",
46
+ "35": "I-BUILDING",
47
+ "36": "B-STREET",
48
+ "37": "I-STREET",
49
+ "38": "B-CITY",
50
+ "39": "I-CITY",
51
+ "40": "B-STATE",
52
+ "41": "I-STATE",
53
+ "42": "B-POSTCODE",
54
+ "43": "I-POSTCODE",
55
+ "44": "B-SECADDRESS",
56
+ "45": "I-SECADDRESS",
57
+ "46": "I-COUNTRY"
58
+ },
59
+ "initializer_range": 0.02,
60
+ "label2id": {
61
+ "B-BOD": 25,
62
+ "B-BUILDING": 34,
63
+ "B-CITY": 38,
64
+ "B-COUNTRY": 33,
65
+ "B-DATE": 14,
66
+ "B-DRIVERLICENSE": 12,
67
+ "B-EMAIL": 1,
68
+ "B-GIVENNAME1": 31,
69
+ "B-IDCARD": 3,
70
+ "B-IP": 9,
71
+ "B-LASTNAME1": 28,
72
+ "B-PASS": 20,
73
+ "B-PASSPORT": 16,
74
+ "B-POSTCODE": 42,
75
+ "B-SECADDRESS": 44,
76
+ "B-SEX": 22,
77
+ "B-SOCIALNUMBER": 5,
78
+ "B-STATE": 40,
79
+ "B-STREET": 36,
80
+ "B-TEL": 7,
81
+ "B-TIME": 11,
82
+ "B-TITLE": 24,
83
+ "B-USERNAME": 18,
84
+ "I-BOD": 26,
85
+ "I-BUILDING": 35,
86
+ "I-CITY": 39,
87
+ "I-COUNTRY": 46,
88
+ "I-DATE": 15,
89
+ "I-DRIVERLICENSE": 13,
90
+ "I-EMAIL": 2,
91
+ "I-GIVENNAME1": 32,
92
+ "I-IDCARD": 4,
93
+ "I-IP": 10,
94
+ "I-LASTNAME1": 29,
95
+ "I-PASS": 21,
96
+ "I-PASSPORT": 17,
97
+ "I-POSTCODE": 43,
98
+ "I-SECADDRESS": 45,
99
+ "I-SEX": 23,
100
+ "I-SOCIALNUMBER": 6,
101
+ "I-STATE": 41,
102
+ "I-STREET": 37,
103
+ "I-TEL": 8,
104
+ "I-TIME": 30,
105
+ "I-TITLE": 27,
106
+ "I-USERNAME": 19,
107
+ "O": 0
108
+ },
109
+ "max_position_embeddings": 512,
110
+ "model_type": "distilbert",
111
+ "n_heads": 12,
112
+ "n_layers": 6,
113
+ "output_past": true,
114
+ "pad_token_id": 0,
115
+ "qa_dropout": 0.1,
116
+ "seq_classif_dropout": 0.2,
117
+ "sinusoidal_pos_embds": false,
118
+ "tie_weights_": true,
119
+ "torch_dtype": "float32",
120
+ "transformers_version": "4.50.0",
121
+ "vocab_size": 119547
122
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6efc2847d3c64568e2e636615cc9ca36eb47f6317cb530d61bd3bd78c8945645
3
+ size 539093252
runs/Mar26_20-13-25_a8c7e18bb442/events.out.tfevents.1743020011.a8c7e18bb442.1086.0 ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:537a6ee9b09533eadb97bc5d6b22b297290ed619079c3cf4881aa314203e44d2
3
+ size 28246
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
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_lower_case": false,
47
+ "extra_special_tokens": {},
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "DistilBertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eebc2eb87d3a2f2fd8b2bd9e34e7438beeab0ff33d1609e20dfe9b2d49f3a8f1
3
+ size 5368
vocab.txt ADDED
The diff for this file is too large to render. See raw diff