pogzyb commited on
Commit
6418c7b
1 Parent(s): 3ed5170

Add config

Browse files

Add custom id2label and label2id configs.

Files changed (1) hide show
  1. config.json +43 -0
config.json ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "./trainer-3",
3
+ "architectures": [
4
+ "MarkupLMForSequenceClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "id2label": {
15
+ "0": "negative",
16
+ "1": "phish"
17
+ },
18
+ "initializer_range": 0.02,
19
+ "intermediate_size": 3072,
20
+ "label2id": {
21
+ "negative": 0,
22
+ "phish": 1
23
+ },
24
+ "layer_norm_eps": 1e-05,
25
+ "max_depth": 50,
26
+ "max_position_embeddings": 514,
27
+ "max_xpath_subs_unit_embeddings": 1024,
28
+ "max_xpath_tag_unit_embeddings": 256,
29
+ "model_type": "markuplm",
30
+ "num_attention_heads": 12,
31
+ "num_hidden_layers": 12,
32
+ "pad_token_id": 1,
33
+ "position_embedding_type": "absolute",
34
+ "problem_type": "single_label_classification",
35
+ "subs_pad_id": 1001,
36
+ "tag_pad_id": 216,
37
+ "torch_dtype": "float32",
38
+ "transformers_version": "4.38.2",
39
+ "type_vocab_size": 1,
40
+ "use_cache": true,
41
+ "vocab_size": 50267,
42
+ "xpath_unit_hidden_size": 32
43
+ }