GoktugD commited on
Commit
3d90785
·
verified ·
1 Parent(s): 0e5486d

Release Werea KVKK PII 150M research preview

Browse files
README.md ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: [tr]
3
+ license: apache-2.0
4
+ pipeline_tag: token-classification
5
+ base_model: ytu-ce-cosmos/modernbert-tr-base
6
+ library_name: transformers
7
+ tags: [kvkk, pii, ner, privacy, turkish, werea]
8
+ datasets: [Werea-co/Werea-KVKK-Bench]
9
+ ---
10
+ # Werea-KVKK-PII-150M
11
+
12
+ Research-preview Turkish PII recogniser for the Werea KVKK PrivacyOps project.
13
+ It detects PERSON, ADDRESS, EMAIL, PHONE_TR and HEALTH_DATA spans. The public
14
+ training set is deterministic and entirely synthetic; it contains no customer
15
+ records. Use the rules layer for checksummed identifiers and evaluate on your
16
+ own lawyer-reviewed corpus before production deployment.
17
+
18
+ Validation F1 on the synthetic split: **1.0000**.
19
+ This score must not be interpreted as real-world compliance performance.
20
+
21
+ The model cannot determine legal compliance or choose a legal basis. Human
22
+ review is mandatory. See the dataset card and Werea PrivacyOps documentation.
config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForTokenClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": null,
8
+ "classifier_activation": "silu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 2,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 50000,
18
+ "global_attn_every_n_layers": 3,
19
+ "global_rope_theta": 160000.0,
20
+ "gradient_checkpointing": false,
21
+ "hidden_activation": "gelu",
22
+ "hidden_size": 768,
23
+ "id2label": {
24
+ "0": "O",
25
+ "1": "B-ADDRESS",
26
+ "2": "I-ADDRESS",
27
+ "3": "B-EMAIL",
28
+ "4": "I-EMAIL",
29
+ "5": "B-HEALTH_DATA",
30
+ "6": "I-HEALTH_DATA",
31
+ "7": "B-PERSON",
32
+ "8": "I-PERSON",
33
+ "9": "B-PHONE_TR",
34
+ "10": "I-PHONE_TR"
35
+ },
36
+ "initializer_cutoff_factor": 2.0,
37
+ "initializer_range": 0.02,
38
+ "intermediate_size": 1152,
39
+ "label2id": {
40
+ "B-ADDRESS": 1,
41
+ "B-EMAIL": 3,
42
+ "B-HEALTH_DATA": 5,
43
+ "B-PERSON": 7,
44
+ "B-PHONE_TR": 9,
45
+ "I-ADDRESS": 2,
46
+ "I-EMAIL": 4,
47
+ "I-HEALTH_DATA": 6,
48
+ "I-PERSON": 8,
49
+ "I-PHONE_TR": 10,
50
+ "O": 0
51
+ },
52
+ "layer_norm_eps": 1e-05,
53
+ "local_attention": 128,
54
+ "local_rope_theta": 10000.0,
55
+ "max_position_embeddings": 8192,
56
+ "mlp_bias": false,
57
+ "mlp_dropout": 0.0,
58
+ "model_type": "modernbert",
59
+ "norm_bias": false,
60
+ "norm_eps": 1e-05,
61
+ "num_attention_heads": 12,
62
+ "num_hidden_layers": 22,
63
+ "pad_token_id": 0,
64
+ "position_embedding_type": "absolute",
65
+ "repad_logits_with_grad": false,
66
+ "sep_token_id": 3,
67
+ "sparse_pred_ignore_index": -100,
68
+ "sparse_prediction": false,
69
+ "transformers_version": "4.57.1",
70
+ "vocab_size": 50008
71
+ }
metrics.json ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "epoch": 3.0,
3
+ "eval_accuracy": 1.0,
4
+ "eval_f1": 1.0,
5
+ "eval_loss": 0.00014840990479569882,
6
+ "eval_precision": 1.0,
7
+ "eval_recall": 1.0,
8
+ "eval_runtime": 0.153,
9
+ "eval_samples_per_second": 784.567,
10
+ "eval_steps_per_second": 26.152
11
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3b1a47a777cf4b33f9bbc675f7f972abeab866fd9192ec6dc534241dd5d092d9
3
+ size 597361556
special_tokens_map.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "eos_token": {
10
+ "content": "[EOS]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "mask_token": {
17
+ "content": "[MASK]",
18
+ "lstrip": true,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "pad_token": {
24
+ "content": "[PAD]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "sep_token": {
31
+ "content": "[SEP]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "unk_token": {
38
+ "content": "[UNK]",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ }
44
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "1": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
36
+ "content": "[MASK]",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ },
43
+ "50000": {
44
+ "content": "[EOS]",
45
+ "lstrip": false,
46
+ "normalized": false,
47
+ "rstrip": false,
48
+ "single_word": false,
49
+ "special": true
50
+ }
51
+ },
52
+ "clean_up_tokenization_spaces": true,
53
+ "cls_token": "[CLS]",
54
+ "do_basic_tokenize": true,
55
+ "do_lower_case": false,
56
+ "eos_token": "[EOS]",
57
+ "extra_special_tokens": {},
58
+ "mask_token": "[MASK]",
59
+ "model_input_names": [
60
+ "input_ids",
61
+ "attention_mask"
62
+ ],
63
+ "model_max_length": 8192,
64
+ "never_split": null,
65
+ "pad_token": "[PAD]",
66
+ "sep_token": "[SEP]",
67
+ "strip_accents": false,
68
+ "tokenize_chinese_chars": false,
69
+ "tokenizer_class": "PreTrainedTokenizerFast",
70
+ "unk_token": "[UNK]"
71
+ }
training_args.bin ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7015a13568bb8c5411788167520bb74d2678063f1fd3e831c315fe785a377048
3
+ size 5905