alfredplpl commited on
Commit
31b5b40
·
verified ·
1 Parent(s): 1b3f612

Upload ModernBertForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +90 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForSequenceClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "cls",
12
+ "cls_token_id": 6,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "dtype": "bfloat16",
16
+ "embedding_dropout": 0.0,
17
+ "eos_token_id": 2,
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": 3072,
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
+ "sliding_attention",
58
+ "sliding_attention",
59
+ "full_attention"
60
+ ],
61
+ "local_attention": 128,
62
+ "max_position_embeddings": 8192,
63
+ "mlp_bias": false,
64
+ "mlp_dropout": 0.0,
65
+ "model_type": "modernbert",
66
+ "norm_bias": false,
67
+ "norm_eps": 1e-05,
68
+ "num_attention_heads": 12,
69
+ "num_hidden_layers": 25,
70
+ "pad_token_id": 3,
71
+ "position_embedding_type": "rope",
72
+ "problem_type": "single_label_classification",
73
+ "repad_logits_with_grad": false,
74
+ "rope_parameters": {
75
+ "full_attention": {
76
+ "rope_theta": 160000.0,
77
+ "rope_type": "default"
78
+ },
79
+ "sliding_attention": {
80
+ "rope_theta": 10000.0,
81
+ "rope_type": "default"
82
+ }
83
+ },
84
+ "sep_token_id": 4,
85
+ "sparse_pred_ignore_index": -100,
86
+ "sparse_prediction": false,
87
+ "tie_word_embeddings": true,
88
+ "transformers_version": "5.20.2",
89
+ "vocab_size": 102400
90
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:19422ca2d7758fc0573508d0abf0a2d6861d7465663c2148feeb4c0b54f15d79
3
+ size 630424396