fabikru commited on
Commit
1fb86a1
·
verified ·
1 Parent(s): 86dc9fa

Upload ModernBertForMaskedLM

Browse files
Files changed (2) hide show
  1. config.json +42 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForMaskedLM"
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": "cls",
12
+ "cls_token_id": 2,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "embedding_dropout": 0.0,
16
+ "eos_token_id": 50282,
17
+ "global_attn_every_n_layers": 1,
18
+ "global_rope_theta": 160000.0,
19
+ "hidden_activation": "gelu",
20
+ "hidden_size": 384,
21
+ "initializer_cutoff_factor": 2.0,
22
+ "initializer_range": 0.02,
23
+ "intermediate_size": 576,
24
+ "local_attention": 128,
25
+ "local_rope_theta": 10000.0,
26
+ "max_position_embeddings": 502,
27
+ "mlp_bias": false,
28
+ "mlp_dropout": 0.0,
29
+ "model_type": "modernbert",
30
+ "norm_bias": false,
31
+ "norm_eps": 1e-05,
32
+ "num_attention_heads": 6,
33
+ "num_hidden_layers": 12,
34
+ "pad_token_id": 1,
35
+ "repad_logits_with_grad": false,
36
+ "sep_token_id": 3,
37
+ "sparse_pred_ignore_index": -100,
38
+ "sparse_prediction": false,
39
+ "torch_dtype": "float32",
40
+ "transformers_version": "4.51.2",
41
+ "vocab_size": 82
42
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa8f0a3fb8aa1fb113188ec55e7fbe69b46e7eab0cb61755051222e9762bfa4c
3
+ size 60925776