Instructions to use lear-lab/modernbert_authentic_multirc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lear-lab/modernbert_authentic_multirc with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lear-lab/modernbert_authentic_multirc")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lear-lab/modernbert_authentic_multirc") model = AutoModelForSequenceClassification.from_pretrained("lear-lab/modernbert_authentic_multirc", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload ModernBertForSequenceClassification
Browse files- config.json +37 -8
- model.safetensors +1 -1
config.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"_name_or_path": "../../results/modernbert_multirc_reading_engagement/",
|
| 3 |
"architectures": [
|
| 4 |
"ModernBertForSequenceClassification"
|
| 5 |
],
|
|
@@ -13,10 +12,10 @@
|
|
| 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,
|
|
@@ -30,8 +29,31 @@
|
|
| 30 |
"LABEL_0": 0
|
| 31 |
},
|
| 32 |
"layer_norm_eps": 1e-05,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
"local_attention": 128,
|
| 34 |
-
"local_rope_theta": 10000.0,
|
| 35 |
"max_position_embeddings": 8192,
|
| 36 |
"mlp_bias": false,
|
| 37 |
"mlp_dropout": 0.0,
|
|
@@ -42,13 +64,20 @@
|
|
| 42 |
"num_hidden_layers": 22,
|
| 43 |
"pad_token_id": 50283,
|
| 44 |
"position_embedding_type": "absolute",
|
| 45 |
-
"
|
| 46 |
-
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
"sep_token_id": 50282,
|
| 49 |
"sparse_pred_ignore_index": -100,
|
| 50 |
"sparse_prediction": false,
|
| 51 |
-
"
|
| 52 |
-
"transformers_version": "
|
| 53 |
"vocab_size": 50368
|
| 54 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"ModernBertForSequenceClassification"
|
| 4 |
],
|
|
|
|
| 12 |
"cls_token_id": 50281,
|
| 13 |
"decoder_bias": true,
|
| 14 |
"deterministic_flash_attn": false,
|
| 15 |
+
"dtype": "float32",
|
| 16 |
"embedding_dropout": 0.0,
|
| 17 |
"eos_token_id": 50282,
|
| 18 |
"global_attn_every_n_layers": 3,
|
|
|
|
| 19 |
"gradient_checkpointing": false,
|
| 20 |
"hidden_activation": "gelu",
|
| 21 |
"hidden_size": 768,
|
|
|
|
| 29 |
"LABEL_0": 0
|
| 30 |
},
|
| 31 |
"layer_norm_eps": 1e-05,
|
| 32 |
+
"layer_types": [
|
| 33 |
+
"full_attention",
|
| 34 |
+
"sliding_attention",
|
| 35 |
+
"sliding_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"sliding_attention",
|
| 38 |
+
"sliding_attention",
|
| 39 |
+
"full_attention",
|
| 40 |
+
"sliding_attention",
|
| 41 |
+
"sliding_attention",
|
| 42 |
+
"full_attention",
|
| 43 |
+
"sliding_attention",
|
| 44 |
+
"sliding_attention",
|
| 45 |
+
"full_attention",
|
| 46 |
+
"sliding_attention",
|
| 47 |
+
"sliding_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"sliding_attention",
|
| 50 |
+
"sliding_attention",
|
| 51 |
+
"full_attention",
|
| 52 |
+
"sliding_attention",
|
| 53 |
+
"sliding_attention",
|
| 54 |
+
"full_attention"
|
| 55 |
+
],
|
| 56 |
"local_attention": 128,
|
|
|
|
| 57 |
"max_position_embeddings": 8192,
|
| 58 |
"mlp_bias": false,
|
| 59 |
"mlp_dropout": 0.0,
|
|
|
|
| 64 |
"num_hidden_layers": 22,
|
| 65 |
"pad_token_id": 50283,
|
| 66 |
"position_embedding_type": "absolute",
|
| 67 |
+
"rope_parameters": {
|
| 68 |
+
"full_attention": {
|
| 69 |
+
"rope_theta": 160000.0,
|
| 70 |
+
"rope_type": "default"
|
| 71 |
+
},
|
| 72 |
+
"sliding_attention": {
|
| 73 |
+
"rope_theta": 10000.0,
|
| 74 |
+
"rope_type": "default"
|
| 75 |
+
}
|
| 76 |
+
},
|
| 77 |
"sep_token_id": 50282,
|
| 78 |
"sparse_pred_ignore_index": -100,
|
| 79 |
"sparse_prediction": false,
|
| 80 |
+
"tie_word_embeddings": true,
|
| 81 |
+
"transformers_version": "5.16.1",
|
| 82 |
"vocab_size": 50368
|
| 83 |
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 598436708
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1f44c08a93391f7b96e997b2cbbc0984120dee0a434bbe7e99305dd4c0b60d77
|
| 3 |
size 598436708
|