Upload ModernBertForMaskedLM
Browse files- config.json +44 -0
- model.safetensors +3 -0
config.json
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 50281,
|
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": 3,
|
18 |
+
"global_rope_theta": 160000.0,
|
19 |
+
"hidden_activation": "gelu",
|
20 |
+
"hidden_size": 256,
|
21 |
+
"initializer_cutoff_factor": 2.0,
|
22 |
+
"initializer_range": 0.02,
|
23 |
+
"intermediate_size": 512,
|
24 |
+
"local_attention": 128,
|
25 |
+
"local_rope_theta": 10000.0,
|
26 |
+
"max_position_embeddings": 512,
|
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": 8,
|
33 |
+
"num_hidden_layers": 8,
|
34 |
+
"pad_token_id": 6,
|
35 |
+
"reference_compile": true,
|
36 |
+
"repad_logits_with_grad": false,
|
37 |
+
"sep_token_id": 50282,
|
38 |
+
"sparse_pred_ignore_index": -100,
|
39 |
+
"sparse_prediction": false,
|
40 |
+
"torch_dtype": "float32",
|
41 |
+
"transformers_version": "4.48.3",
|
42 |
+
"type_vocab_size": 1,
|
43 |
+
"vocab_size": 10
|
44 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:020b10510d02fc0e8b2de38f2b7236b4f40aa79bf3bb6469b079380a33d602d3
|
3 |
+
size 21267600
|