synapti commited on
Commit
40410b8
·
verified ·
1 Parent(s): 0109bd8

Add ONNX model export: config.json

Browse files
Files changed (1) hide show
  1. onnx/config.json +58 -0
onnx/config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_attn_implementation_autoset": true,
3
+ "_name_or_path": "synapti/nci-binary-detector-v2",
4
+ "architectures": [
5
+ "ModernBertForSequenceClassification"
6
+ ],
7
+ "attention_bias": false,
8
+ "attention_dropout": 0.0,
9
+ "bos_token_id": 50281,
10
+ "classifier_activation": "gelu",
11
+ "classifier_bias": false,
12
+ "classifier_dropout": 0.0,
13
+ "classifier_pooling": "mean",
14
+ "cls_token_id": 50281,
15
+ "decoder_bias": true,
16
+ "deterministic_flash_attn": false,
17
+ "dtype": "float32",
18
+ "embedding_dropout": 0.0,
19
+ "eos_token_id": 50282,
20
+ "global_attn_every_n_layers": 3,
21
+ "global_rope_theta": 160000.0,
22
+ "gradient_checkpointing": false,
23
+ "hidden_activation": "gelu",
24
+ "hidden_size": 768,
25
+ "id2label": {
26
+ "0": "no_propaganda",
27
+ "1": "has_propaganda"
28
+ },
29
+ "initializer_cutoff_factor": 2.0,
30
+ "initializer_range": 0.02,
31
+ "intermediate_size": 1152,
32
+ "label2id": {
33
+ "has_propaganda": 1,
34
+ "no_propaganda": 0
35
+ },
36
+ "layer_norm_eps": 1e-05,
37
+ "local_attention": 128,
38
+ "local_rope_theta": 10000.0,
39
+ "max_position_embeddings": 8192,
40
+ "mlp_bias": false,
41
+ "mlp_dropout": 0.0,
42
+ "model_type": "modernbert",
43
+ "norm_bias": false,
44
+ "norm_eps": 1e-05,
45
+ "num_attention_heads": 12,
46
+ "num_hidden_layers": 22,
47
+ "pad_token_id": 50283,
48
+ "position_embedding_type": "absolute",
49
+ "problem_type": "single_label_classification",
50
+ "reference_compile": false,
51
+ "repad_logits_with_grad": false,
52
+ "sep_token_id": 50282,
53
+ "sparse_pred_ignore_index": -100,
54
+ "sparse_prediction": false,
55
+ "torch_dtype": "float32",
56
+ "transformers_version": "4.49.0",
57
+ "vocab_size": 50368
58
+ }