AliArshad commited on
Commit
d4f3e13
1 Parent(s): fc34d4c

Update config.json

Browse files
Files changed (1) hide show
  1. config.json +31 -33
config.json CHANGED
@@ -1,35 +1,33 @@
1
  {
2
- "_name_or_path": "xlnet-base-cased",
3
- "architectures": [
4
- "XLNetForSequenceClassification"
5
- ],
6
- "attention_probs_dropout_prob": 0.1,
7
- "classifier_dropout": null,
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
  }
 
1
  {
2
+ "architectures": [
3
+ "XLNetForSequenceClassification"
4
+ ],
5
+ "model_type": "xlnet",
6
+ "xlnet_config": {
7
+ "attn_type": "bi",
8
+ "bi_data": false,
9
+ "clamp_len": -1,
10
+ "d_head": 64,
11
+ "d_inner": 4096,
12
+ "d_model": 768,
13
+ "dropout": 0.1,
14
+ "end_n_top": 5,
15
+ "initializer_range": 0.02,
16
+ "layer_norm_eps": 1e-12,
17
+ "mem_len": null,
18
+ "n_head": 12,
19
+ "n_layer": 12,
20
+ "reuse_len": null,
21
+ "same_length": false,
22
+ "start_n_top": 5,
23
+ "summary_activation": "tanh",
24
+ "summary_last_dropout": 0.1,
25
+ "summary_type": "last",
26
+ "summary_use_proj": true,
27
+ "vocab_size": 32000
28
+ },
29
+ "num_labels": 2,
30
+ "summary_type": "last",
31
+ "summary_use_proj": true,
32
+ "vocab_size": 32000
 
 
33
  }