Upload ModernBertForSequenceClassification
Browse files- config.json +35 -15
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -1,35 +1,55 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
| 6 |
-
"
|
| 7 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"gradient_checkpointing": false,
|
| 9 |
-
"
|
| 10 |
-
"hidden_dropout_prob": 0.1,
|
| 11 |
"hidden_size": 768,
|
| 12 |
"id2label": {
|
| 13 |
"0": "small_llm",
|
| 14 |
"1": "large_llm"
|
| 15 |
},
|
|
|
|
| 16 |
"initializer_range": 0.02,
|
| 17 |
-
"intermediate_size":
|
| 18 |
"label2id": {
|
| 19 |
"large_llm": "1",
|
| 20 |
"small_llm": "0"
|
| 21 |
},
|
| 22 |
-
"layer_norm_eps": 1e-
|
| 23 |
-
"
|
| 24 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 25 |
"num_attention_heads": 12,
|
| 26 |
-
"num_hidden_layers":
|
| 27 |
-
"pad_token_id":
|
| 28 |
"position_embedding_type": "absolute",
|
| 29 |
"problem_type": "single_label_classification",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
"torch_dtype": "float32",
|
| 31 |
"transformers_version": "4.48.0.dev0",
|
| 32 |
-
"
|
| 33 |
-
"use_cache": true,
|
| 34 |
-
"vocab_size": 30522
|
| 35 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "answerdotai/ModernBERT-base",
|
| 3 |
"architectures": [
|
| 4 |
+
"ModernBertForSequenceClassification"
|
| 5 |
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
+
"bos_token_id": 50281,
|
| 9 |
+
"classifier_activation": "gelu",
|
| 10 |
+
"classifier_bias": false,
|
| 11 |
+
"classifier_dropout": 0.0,
|
| 12 |
+
"classifier_pooling": "mean",
|
| 13 |
+
"cls_token_id": 50281,
|
| 14 |
+
"decoder_bias": true,
|
| 15 |
+
"deterministic_flash_attn": false,
|
| 16 |
+
"embedding_dropout": 0.0,
|
| 17 |
+
"eos_token_id": 50282,
|
| 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": "small_llm",
|
| 25 |
"1": "large_llm"
|
| 26 |
},
|
| 27 |
+
"initializer_cutoff_factor": 2.0,
|
| 28 |
"initializer_range": 0.02,
|
| 29 |
+
"intermediate_size": 1152,
|
| 30 |
"label2id": {
|
| 31 |
"large_llm": "1",
|
| 32 |
"small_llm": "0"
|
| 33 |
},
|
| 34 |
+
"layer_norm_eps": 1e-05,
|
| 35 |
+
"local_attention": 128,
|
| 36 |
+
"local_rope_theta": 10000.0,
|
| 37 |
+
"max_position_embeddings": 8192,
|
| 38 |
+
"mlp_bias": false,
|
| 39 |
+
"mlp_dropout": 0.0,
|
| 40 |
+
"model_type": "modernbert",
|
| 41 |
+
"norm_bias": false,
|
| 42 |
+
"norm_eps": 1e-05,
|
| 43 |
"num_attention_heads": 12,
|
| 44 |
+
"num_hidden_layers": 22,
|
| 45 |
+
"pad_token_id": 50283,
|
| 46 |
"position_embedding_type": "absolute",
|
| 47 |
"problem_type": "single_label_classification",
|
| 48 |
+
"reference_compile": true,
|
| 49 |
+
"sep_token_id": 50282,
|
| 50 |
+
"sparse_pred_ignore_index": -100,
|
| 51 |
+
"sparse_prediction": false,
|
| 52 |
"torch_dtype": "float32",
|
| 53 |
"transformers_version": "4.48.0.dev0",
|
| 54 |
+
"vocab_size": 50368
|
|
|
|
|
|
|
| 55 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce1d0ad2daa505af06ddaae7913045801ac80144ca826c39f1a5c4dc6a4d359f
|
| 3 |
+
size 598439784
|