Update config.json
Browse files- config.json +11 -11
config.json
CHANGED
@@ -8,28 +8,28 @@
|
|
8 |
"gradient_checkpointing": false,
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
-
"hidden_size":
|
12 |
"id2label": {
|
13 |
-
"0": "
|
14 |
-
"1": "
|
15 |
},
|
16 |
"initializer_range": 0.02,
|
17 |
-
"intermediate_size":
|
18 |
"label2id": {
|
19 |
-
"
|
20 |
-
"
|
21 |
},
|
22 |
"layer_norm_eps": 1e-12,
|
23 |
"max_position_embeddings": 512,
|
24 |
-
"model_type": "
|
25 |
-
"num_attention_heads":
|
26 |
-
"num_hidden_layers":
|
27 |
-
"pad_token_id":
|
28 |
"position_embedding_type": "absolute",
|
29 |
"problem_type": "single_label_classification",
|
30 |
"torch_dtype": "float32",
|
31 |
"transformers_version": "4.21.2",
|
32 |
"type_vocab_size": 2,
|
33 |
"use_cache": true,
|
34 |
-
"vocab_size":
|
35 |
}
|
|
|
8 |
"gradient_checkpointing": false,
|
9 |
"hidden_act": "gelu",
|
10 |
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 1024, // Changed to match XLNet's hidden size for sequence classification
|
12 |
"id2label": {
|
13 |
+
"0": "non-severe",
|
14 |
+
"1": "severe"
|
15 |
},
|
16 |
"initializer_range": 0.02,
|
17 |
+
"intermediate_size": 4096,
|
18 |
"label2id": {
|
19 |
+
"non-severe": 0,
|
20 |
+
"severe": 1
|
21 |
},
|
22 |
"layer_norm_eps": 1e-12,
|
23 |
"max_position_embeddings": 512,
|
24 |
+
"model_type": "xlnet", // Fixed typo in model_type
|
25 |
+
"num_attention_heads": 16,
|
26 |
+
"num_hidden_layers": 24,
|
27 |
+
"pad_token_id": 5,
|
28 |
"position_embedding_type": "absolute",
|
29 |
"problem_type": "single_label_classification",
|
30 |
"torch_dtype": "float32",
|
31 |
"transformers_version": "4.21.2",
|
32 |
"type_vocab_size": 2,
|
33 |
"use_cache": true,
|
34 |
+
"vocab_size": 32000 // Changed to match XLNet's vocab size
|
35 |
}
|