Shuu12121 commited on
Commit
9dd29f9
·
verified ·
1 Parent(s): 98fe971

Upload ModernBERT model

Browse files
added_tokens.json CHANGED
@@ -1,7 +1,4 @@
1
  {
2
- "</s>": 30001,
3
- "<mask>": 30004,
4
- "<pad>": 30003,
5
- "<s>": 30000,
6
- "<unk>": 30002
7
  }
 
1
  {
2
+ "</s>": 50001,
3
+ "<s>": 50000
 
 
 
4
  }
config.json CHANGED
@@ -5,7 +5,7 @@
5
  "attention_bias": false,
6
  "attention_dropout": 0.0,
7
  "attention_probs_dropout_prob": 0.1,
8
- "bos_token_id": 30000,
9
  "classifier_activation": "gelu",
10
  "classifier_bias": false,
11
  "classifier_dropout": 0.0,
@@ -14,15 +14,15 @@
14
  "decoder_bias": true,
15
  "deterministic_flash_attn": false,
16
  "embedding_dropout": 0.0,
17
- "eos_token_id": 30001,
18
  "global_attn_every_n_layers": 3,
19
  "global_rope_theta": 160000.0,
20
  "hidden_activation": "gelu",
21
  "hidden_dropout_prob": 0.1,
22
- "hidden_size": 512,
23
  "initializer_cutoff_factor": 2.0,
24
  "initializer_range": 0.02,
25
- "intermediate_size": 2048,
26
  "local_attention": 128,
27
  "local_attention_rope_theta": 10000,
28
  "local_attention_window": 128,
@@ -33,8 +33,8 @@
33
  "model_type": "modernbert",
34
  "norm_bias": false,
35
  "norm_eps": 1e-05,
36
- "num_attention_heads": 8,
37
- "num_hidden_layers": 6,
38
  "pad_token_id": 1,
39
  "repad_logits_with_grad": false,
40
  "rope_theta": 160000,
@@ -44,5 +44,5 @@
44
  "torch_dtype": "float32",
45
  "transformers_version": "4.53.1",
46
  "type_vocab_size": 2,
47
- "vocab_size": 30005
48
  }
 
5
  "attention_bias": false,
6
  "attention_dropout": 0.0,
7
  "attention_probs_dropout_prob": 0.1,
8
+ "bos_token_id": 50000,
9
  "classifier_activation": "gelu",
10
  "classifier_bias": false,
11
  "classifier_dropout": 0.0,
 
14
  "decoder_bias": true,
15
  "deterministic_flash_attn": false,
16
  "embedding_dropout": 0.0,
17
+ "eos_token_id": 50001,
18
  "global_attn_every_n_layers": 3,
19
  "global_rope_theta": 160000.0,
20
  "hidden_activation": "gelu",
21
  "hidden_dropout_prob": 0.1,
22
+ "hidden_size": 768,
23
  "initializer_cutoff_factor": 2.0,
24
  "initializer_range": 0.02,
25
+ "intermediate_size": 3072,
26
  "local_attention": 128,
27
  "local_attention_rope_theta": 10000,
28
  "local_attention_window": 128,
 
33
  "model_type": "modernbert",
34
  "norm_bias": false,
35
  "norm_eps": 1e-05,
36
+ "num_attention_heads": 12,
37
+ "num_hidden_layers": 12,
38
  "pad_token_id": 1,
39
  "repad_logits_with_grad": false,
40
  "rope_theta": 160000,
 
44
  "torch_dtype": "float32",
45
  "transformers_version": "4.53.1",
46
  "type_vocab_size": 2,
47
+ "vocab_size": 50005
48
  }
merges.txt CHANGED
The diff for this file is too large to render. See raw diff
 
special_tokens_map.json CHANGED
@@ -7,7 +7,7 @@
7
  "single_word": false
8
  },
9
  "cls_token": {
10
- "content": "<s>",
11
  "lstrip": false,
12
  "normalized": true,
13
  "rstrip": false,
@@ -21,28 +21,28 @@
21
  "single_word": false
22
  },
23
  "mask_token": {
24
- "content": "<mask>",
25
  "lstrip": true,
26
  "normalized": false,
27
  "rstrip": false,
28
  "single_word": false
29
  },
30
  "pad_token": {
31
- "content": "<pad>",
32
  "lstrip": false,
33
  "normalized": true,
34
  "rstrip": false,
35
  "single_word": false
36
  },
37
  "sep_token": {
38
- "content": "</s>",
39
  "lstrip": false,
40
  "normalized": true,
41
  "rstrip": false,
42
  "single_word": false
43
  },
44
  "unk_token": {
45
- "content": "<unk>",
46
  "lstrip": false,
47
  "normalized": true,
48
  "rstrip": false,
 
7
  "single_word": false
8
  },
9
  "cls_token": {
10
+ "content": "[CLS]",
11
  "lstrip": false,
12
  "normalized": true,
13
  "rstrip": false,
 
21
  "single_word": false
22
  },
23
  "mask_token": {
24
+ "content": "[MASK]",
25
  "lstrip": true,
26
  "normalized": false,
27
  "rstrip": false,
28
  "single_word": false
29
  },
30
  "pad_token": {
31
+ "content": "[PAD]",
32
  "lstrip": false,
33
  "normalized": true,
34
  "rstrip": false,
35
  "single_word": false
36
  },
37
  "sep_token": {
38
+ "content": "[SEP]",
39
  "lstrip": false,
40
  "normalized": true,
41
  "rstrip": false,
42
  "single_word": false
43
  },
44
  "unk_token": {
45
+ "content": "[UNK]",
46
  "lstrip": false,
47
  "normalized": true,
48
  "rstrip": false,
tokenizer.json CHANGED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json CHANGED
@@ -1,62 +1,78 @@
1
  {
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
- "30000": {
5
- "content": "<s>",
6
  "lstrip": false,
7
  "normalized": true,
8
  "rstrip": false,
9
  "single_word": false,
10
  "special": true
11
  },
12
- "30001": {
13
- "content": "</s>",
14
  "lstrip": false,
15
  "normalized": true,
16
  "rstrip": false,
17
  "single_word": false,
18
  "special": true
19
  },
20
- "30002": {
21
- "content": "<unk>",
22
  "lstrip": false,
23
  "normalized": true,
24
  "rstrip": false,
25
  "single_word": false,
26
  "special": true
27
  },
28
- "30003": {
29
- "content": "<pad>",
30
  "lstrip": false,
31
  "normalized": true,
32
  "rstrip": false,
33
  "single_word": false,
34
  "special": true
35
  },
36
- "30004": {
37
- "content": "<mask>",
38
  "lstrip": true,
39
  "normalized": false,
40
  "rstrip": false,
41
  "single_word": false,
42
  "special": true
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  }
44
  },
45
  "bos_token": "<s>",
46
  "clean_up_tokenization_spaces": false,
47
- "cls_token": "<s>",
48
  "eos_token": "</s>",
49
  "errors": "replace",
50
  "extra_special_tokens": {},
51
- "mask_token": "<mask>",
52
  "max_length": 256,
53
  "model_max_length": 1000000000000000019884624838656,
54
- "pad_token": "<pad>",
55
- "sep_token": "</s>",
56
  "stride": 0,
57
  "tokenizer_class": "RobertaTokenizer",
58
  "trim_offsets": true,
59
  "truncation_side": "right",
60
  "truncation_strategy": "longest_first",
61
- "unk_token": "<unk>"
62
  }
 
1
  {
2
  "add_prefix_space": false,
3
  "added_tokens_decoder": {
4
+ "0": {
5
+ "content": "[UNK]",
6
  "lstrip": false,
7
  "normalized": true,
8
  "rstrip": false,
9
  "single_word": false,
10
  "special": true
11
  },
12
+ "1": {
13
+ "content": "[PAD]",
14
  "lstrip": false,
15
  "normalized": true,
16
  "rstrip": false,
17
  "single_word": false,
18
  "special": true
19
  },
20
+ "2": {
21
+ "content": "[CLS]",
22
  "lstrip": false,
23
  "normalized": true,
24
  "rstrip": false,
25
  "single_word": false,
26
  "special": true
27
  },
28
+ "3": {
29
+ "content": "[SEP]",
30
  "lstrip": false,
31
  "normalized": true,
32
  "rstrip": false,
33
  "single_word": false,
34
  "special": true
35
  },
36
+ "4": {
37
+ "content": "[MASK]",
38
  "lstrip": true,
39
  "normalized": false,
40
  "rstrip": false,
41
  "single_word": false,
42
  "special": true
43
+ },
44
+ "50000": {
45
+ "content": "<s>",
46
+ "lstrip": false,
47
+ "normalized": true,
48
+ "rstrip": false,
49
+ "single_word": false,
50
+ "special": true
51
+ },
52
+ "50001": {
53
+ "content": "</s>",
54
+ "lstrip": false,
55
+ "normalized": true,
56
+ "rstrip": false,
57
+ "single_word": false,
58
+ "special": true
59
  }
60
  },
61
  "bos_token": "<s>",
62
  "clean_up_tokenization_spaces": false,
63
+ "cls_token": "[CLS]",
64
  "eos_token": "</s>",
65
  "errors": "replace",
66
  "extra_special_tokens": {},
67
+ "mask_token": "[MASK]",
68
  "max_length": 256,
69
  "model_max_length": 1000000000000000019884624838656,
70
+ "pad_token": "[PAD]",
71
+ "sep_token": "[SEP]",
72
  "stride": 0,
73
  "tokenizer_class": "RobertaTokenizer",
74
  "trim_offsets": true,
75
  "truncation_side": "right",
76
  "truncation_strategy": "longest_first",
77
+ "unk_token": "[UNK]"
78
  }
vocab.json CHANGED
The diff for this file is too large to render. See raw diff