nono1224 commited on
Commit
ad354ec
·
verified ·
1 Parent(s): c908293

Upload ModernBertForSequenceClassification

Browse files
Files changed (2) hide show
  1. config.json +42 -27
  2. model.safetensors +2 -2
config.json CHANGED
@@ -1,12 +1,27 @@
1
  {
2
- "_name_or_path": "globis-university/deberta-v3-japanese-large",
3
  "architectures": [
4
- "DebertaV2ForSequenceClassification"
5
  ],
 
 
6
  "attention_probs_dropout_prob": 0.3,
7
- "hidden_act": "gelu",
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "hidden_dropout_prob": 0.2,
9
- "hidden_size": 1024,
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": 4096,
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-07,
27
- "max_position_embeddings": 512,
28
- "max_relative_positions": -1,
29
- "model_type": "deberta-v2",
30
- "norm_rel_ebd": "layer_norm",
31
- "num_attention_heads": 16,
32
- "num_hidden_layers": 24,
33
- "pad_token_id": 0,
34
- "pooler_dropout": 0,
35
- "pooler_hidden_act": "gelu",
36
- "pooler_hidden_size": 1024,
37
- "pos_att_type": [
38
- "p2c",
39
- "c2p"
40
- ],
41
- "position_biased_input": false,
42
- "position_buckets": 256,
43
- "relative_attention": true,
44
- "share_att_key": true,
45
  "torch_dtype": "float32",
46
- "transformers_version": "4.46.0",
47
- "type_vocab_size": 0,
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:42e38bcae631aeaeaec5e4234b44d5460ac9afc1693988bf04d1d03ea76b7637
3
- size 1412226948
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:28580676d63abba291ebaa93bc958a27f3c2dd98078b0b63335863fd15521fa5
3
+ size 529635372