nicolauduran45 commited on
Commit
502139e
·
verified ·
1 Parent(s): 2bc5004

Upload ModernBertForTokenClassification

Browse files
Files changed (2) hide show
  1. config.json +60 -0
  2. model.safetensors +3 -0
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ModernBertForTokenClassification"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 50281,
8
+ "classifier_activation": "gelu",
9
+ "classifier_bias": false,
10
+ "classifier_dropout": 0.0,
11
+ "classifier_pooling": "mean",
12
+ "cls_token_id": 50281,
13
+ "decoder_bias": true,
14
+ "deterministic_flash_attn": false,
15
+ "embedding_dropout": 0.0,
16
+ "eos_token_id": 50282,
17
+ "global_attn_every_n_layers": 3,
18
+ "global_rope_theta": 160000.0,
19
+ "gradient_checkpointing": false,
20
+ "hidden_activation": "gelu",
21
+ "hidden_size": 768,
22
+ "id2label": {
23
+ "0": "O",
24
+ "1": "B-CITATION-SPAN",
25
+ "2": "B-CITATION-REFEERENCE",
26
+ "3": "I-CITATION-SPAN",
27
+ "4": "I-CITATION-REFEERENCE"
28
+ },
29
+ "initializer_cutoff_factor": 2.0,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 1152,
32
+ "label2id": {
33
+ "B-CITATION-REFEERENCE": 2,
34
+ "B-CITATION-SPAN": 1,
35
+ "I-CITATION-REFEERENCE": 4,
36
+ "I-CITATION-SPAN": 3,
37
+ "O": 0
38
+ },
39
+ "layer_norm_eps": 1e-05,
40
+ "local_attention": 128,
41
+ "local_rope_theta": 10000.0,
42
+ "max_position_embeddings": 8192,
43
+ "mlp_bias": false,
44
+ "mlp_dropout": 0.0,
45
+ "model_type": "modernbert",
46
+ "norm_bias": false,
47
+ "norm_eps": 1e-05,
48
+ "num_attention_heads": 12,
49
+ "num_hidden_layers": 22,
50
+ "pad_token_id": 50283,
51
+ "position_embedding_type": "absolute",
52
+ "reference_compile": true,
53
+ "repad_logits_with_grad": false,
54
+ "sep_token_id": 50282,
55
+ "sparse_pred_ignore_index": -100,
56
+ "sparse_prediction": false,
57
+ "torch_dtype": "float32",
58
+ "transformers_version": "4.50.3",
59
+ "vocab_size": 50368
60
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e363dd03ffe0982e070f7c57c29052f8d63798e129a7bca0fdcdabf213b4c89f
3
+ size 598449012