nono1224 commited on
Commit
f8b6cfe
·
verified ·
1 Parent(s): 424b2f2

Upload ModernBertForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +39 -25
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,50 +1,64 @@
1
  {
2
- "_name_or_path": "studio-ousia/luke-large",
3
  "architectures": [
4
- "LukeForSequenceClassification"
5
  ],
 
 
6
  "attention_probs_dropout_prob": 0.2,
7
- "bert_model_name": "roberta-large",
8
- "bos_token_id": 0,
9
- "classifier_dropout": null,
10
- "entity_emb_size": 256,
11
- "entity_vocab_size": 500000,
 
 
 
 
12
  "eos_token_id": 2,
 
 
13
  "gradient_checkpointing": false,
14
- "hidden_act": "gelu",
15
  "hidden_dropout_prob": 0.2,
16
- "hidden_size": 1024,
17
  "id2label": {
18
  "0": "LABEL_0",
19
  "1": "LABEL_1",
20
  "2": "LABEL_2",
21
  "3": "LABEL_3",
22
- "4": "LABEL_4",
23
- "5": "LABEL_5"
24
  },
 
25
  "initializer_range": 0.02,
26
- "intermediate_size": 4096,
27
  "label2id": {
28
  "LABEL_0": 0,
29
  "LABEL_1": 1,
30
  "LABEL_2": 2,
31
  "LABEL_3": 3,
32
- "LABEL_4": 4,
33
- "LABEL_5": 5
34
  },
35
  "layer_norm_eps": 1e-05,
36
- "max_position_embeddings": 514,
37
- "model_type": "luke",
38
- "num_attention_heads": 16,
39
- "num_hidden_layers": 24,
40
- "output_past": true,
41
- "pad_token_id": 1,
42
- "position_embedding_type": "absolute",
 
 
 
 
 
43
  "problem_type": "single_label_classification",
 
 
 
 
 
44
  "torch_dtype": "float32",
45
  "transformers_version": "4.48.2",
46
- "type_vocab_size": 1,
47
- "use_cache": true,
48
- "use_entity_aware_attention": true,
49
- "vocab_size": 50267
50
  }
 
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.2,
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",
28
  "2": "LABEL_2",
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,
38
  "LABEL_2": 2,
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:2789271b3da8acf2ea0406c8a76c1d5883187284467614d93b5ce2300f8f28c7
3
- size 2238988792
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:42b720ac6d4739949b66bd018596995f7946bbc316596ded94bb3ba31cb6d791
3
+ size 529635372