LickyArc commited on
Commit
c5df915
·
verified ·
1 Parent(s): d46d36b

Add modernBERT_optuna weights + eval metrics

Browse files
weights/modernBERT_optuna/config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50281,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "float32",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 50282,
18
+ "global_attn_every_n_layers": 3,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "safe",
24
+ "1": "unsafe"
25
+ },
26
+ "initializer_cutoff_factor": 2.0,
27
+ "initializer_range": 0.02,
28
+ "intermediate_size": 1152,
29
+ "label2id": {
30
+ "safe": 0,
31
+ "unsafe": 1
32
+ },
33
+ "layer_norm_eps": 1e-05,
34
+ "layer_types": [
35
+ "full_attention",
36
+ "sliding_attention",
37
+ "sliding_attention",
38
+ "full_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "full_attention",
42
+ "sliding_attention",
43
+ "sliding_attention",
44
+ "full_attention",
45
+ "sliding_attention",
46
+ "sliding_attention",
47
+ "full_attention",
48
+ "sliding_attention",
49
+ "sliding_attention",
50
+ "full_attention",
51
+ "sliding_attention",
52
+ "sliding_attention",
53
+ "full_attention",
54
+ "sliding_attention",
55
+ "sliding_attention",
56
+ "full_attention"
57
+ ],
58
+ "local_attention": 128,
59
+ "max_position_embeddings": 8192,
60
+ "mlp_bias": false,
61
+ "mlp_dropout": 0.0,
62
+ "model_type": "modernbert",
63
+ "norm_bias": false,
64
+ "norm_eps": 1e-05,
65
+ "num_attention_heads": 12,
66
+ "num_hidden_layers": 22,
67
+ "pad_token_id": 50283,
68
+ "position_embedding_type": "absolute",
69
+ "problem_type": "single_label_classification",
70
+ "rope_parameters": {
71
+ "full_attention": {
72
+ "rope_theta": 160000.0,
73
+ "rope_type": "default"
74
+ },
75
+ "sliding_attention": {
76
+ "rope_theta": 10000.0,
77
+ "rope_type": "default"
78
+ }
79
+ },
80
+ "sep_token_id": 50282,
81
+ "sparse_pred_ignore_index": -100,
82
+ "sparse_prediction": false,
83
+ "tie_word_embeddings": true,
84
+ "transformers_version": "5.6.2",
85
+ "use_cache": false,
86
+ "vocab_size": 50368
87
+ }
weights/modernBERT_optuna/eval_plot.png ADDED
weights/modernBERT_optuna/metrics.json ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "modernBERT_optuna",
3
+ "hf_id": "answerdotai/ModernBERT-base",
4
+ "metrics": {
5
+ "f1": 0.9554,
6
+ "f1_macro": 0.9551,
7
+ "accuracy": 0.9554,
8
+ "roc_auc": 0.9912,
9
+ "pr_auc": 0.9928,
10
+ "fpr_pct": 4.96,
11
+ "fnr_pct": 4.04,
12
+ "threshold": 0.5
13
+ },
14
+ "params": {
15
+ "name": "modernBERT_optuna",
16
+ "hf_id": "answerdotai/ModernBERT-base",
17
+ "epochs": 5,
18
+ "lr": 4.559530822577232e-05,
19
+ "batch": 32,
20
+ "weight_decay": 0.03634262654347977,
21
+ "unsafe_weight": 2.2064221280118774,
22
+ "label_smooth": 0.0014871788219294,
23
+ "warmup_ratio": 0.09508472345740192
24
+ }
25
+ }
weights/modernBERT_optuna/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:81f033315df47a094a086fd3029f4ebd19d00ffb93483773f872758eb4c48c2b
3
+ size 598439784
weights/modernBERT_optuna/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
weights/modernBERT_optuna/tokenizer_config.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "clean_up_tokenization_spaces": true,
4
+ "cls_token": "[CLS]",
5
+ "is_local": false,
6
+ "local_files_only": false,
7
+ "mask_token": "[MASK]",
8
+ "model_input_names": [
9
+ "input_ids",
10
+ "attention_mask"
11
+ ],
12
+ "model_max_length": 8192,
13
+ "pad_token": "[PAD]",
14
+ "sep_token": "[SEP]",
15
+ "tokenizer_class": "TokenizersBackend",
16
+ "unk_token": "[UNK]"
17
+ }