Upload ModernBertForSequenceClassification
Browse files- config.json +42 -27
- model.safetensors +2 -2
config.json
CHANGED
|
@@ -1,12 +1,27 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "
|
| 3 |
"architectures": [
|
| 4 |
-
"
|
| 5 |
],
|
|
|
|
|
|
|
| 6 |
"attention_probs_dropout_prob": 0.3,
|
| 7 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
"hidden_dropout_prob": 0.2,
|
| 9 |
-
"hidden_size":
|
| 10 |
"id2label": {
|
| 11 |
"0": "LABEL_0",
|
| 12 |
"1": "LABEL_1",
|
|
@@ -14,8 +29,9 @@
|
|
| 14 |
"3": "LABEL_3",
|
| 15 |
"4": "LABEL_4"
|
| 16 |
},
|
|
|
|
| 17 |
"initializer_range": 0.02,
|
| 18 |
-
"intermediate_size":
|
| 19 |
"label2id": {
|
| 20 |
"LABEL_0": 0,
|
| 21 |
"LABEL_1": 1,
|
|
@@ -23,27 +39,26 @@
|
|
| 23 |
"LABEL_3": 3,
|
| 24 |
"LABEL_4": 4
|
| 25 |
},
|
| 26 |
-
"layer_norm_eps": 1e-
|
| 27 |
-
"
|
| 28 |
-
"
|
| 29 |
-
"
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
-
"
|
| 33 |
-
"
|
| 34 |
-
"
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
-
"
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
"
|
| 42 |
-
"
|
| 43 |
-
"
|
| 44 |
-
"
|
| 45 |
"torch_dtype": "float32",
|
| 46 |
-
"transformers_version": "4.
|
| 47 |
-
"
|
| 48 |
-
"vocab_size": 48000
|
| 49 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"_name_or_path": "sbintuitions/modernbert-ja-130m",
|
| 3 |
"architectures": [
|
| 4 |
+
"ModernBertForSequenceClassification"
|
| 5 |
],
|
| 6 |
+
"attention_bias": false,
|
| 7 |
+
"attention_dropout": 0.0,
|
| 8 |
"attention_probs_dropout_prob": 0.3,
|
| 9 |
+
"bos_token_id": 1,
|
| 10 |
+
"classifier_activation": "gelu",
|
| 11 |
+
"classifier_bias": false,
|
| 12 |
+
"classifier_dropout": 0.0,
|
| 13 |
+
"classifier_pooling": "cls",
|
| 14 |
+
"cls_token_id": 6,
|
| 15 |
+
"decoder_bias": true,
|
| 16 |
+
"deterministic_flash_attn": false,
|
| 17 |
+
"embedding_dropout": 0.0,
|
| 18 |
+
"eos_token_id": 2,
|
| 19 |
+
"global_attn_every_n_layers": 3,
|
| 20 |
+
"global_rope_theta": 160000.0,
|
| 21 |
+
"gradient_checkpointing": false,
|
| 22 |
+
"hidden_activation": "gelu",
|
| 23 |
"hidden_dropout_prob": 0.2,
|
| 24 |
+
"hidden_size": 512,
|
| 25 |
"id2label": {
|
| 26 |
"0": "LABEL_0",
|
| 27 |
"1": "LABEL_1",
|
|
|
|
| 29 |
"3": "LABEL_3",
|
| 30 |
"4": "LABEL_4"
|
| 31 |
},
|
| 32 |
+
"initializer_cutoff_factor": 2.0,
|
| 33 |
"initializer_range": 0.02,
|
| 34 |
+
"intermediate_size": 2048,
|
| 35 |
"label2id": {
|
| 36 |
"LABEL_0": 0,
|
| 37 |
"LABEL_1": 1,
|
|
|
|
| 39 |
"LABEL_3": 3,
|
| 40 |
"LABEL_4": 4
|
| 41 |
},
|
| 42 |
+
"layer_norm_eps": 1e-05,
|
| 43 |
+
"local_attention": 128,
|
| 44 |
+
"local_rope_theta": 10000.0,
|
| 45 |
+
"max_position_embeddings": 8192,
|
| 46 |
+
"mlp_bias": false,
|
| 47 |
+
"mlp_dropout": 0.0,
|
| 48 |
+
"model_type": "modernbert",
|
| 49 |
+
"norm_bias": false,
|
| 50 |
+
"norm_eps": 1e-05,
|
| 51 |
+
"num_attention_heads": 8,
|
| 52 |
+
"num_hidden_layers": 19,
|
| 53 |
+
"pad_token_id": 3,
|
| 54 |
+
"position_embedding_type": "rope",
|
| 55 |
+
"problem_type": "single_label_classification",
|
| 56 |
+
"reference_compile": false,
|
| 57 |
+
"repad_logits_with_grad": false,
|
| 58 |
+
"sep_token_id": 4,
|
| 59 |
+
"sparse_pred_ignore_index": -100,
|
| 60 |
+
"sparse_prediction": false,
|
| 61 |
"torch_dtype": "float32",
|
| 62 |
+
"transformers_version": "4.48.2",
|
| 63 |
+
"vocab_size": 102400
|
|
|
|
| 64 |
}
|
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:28580676d63abba291ebaa93bc958a27f3c2dd98078b0b63335863fd15521fa5
|
| 3 |
+
size 529635372
|