SeverityPredictor / config.json
AliArshad's picture
Update config.json
fc34d4c
raw
history blame
987 Bytes
{
"_name_or_path": "xlnet-base-cased",
"architectures": [
"XLNetForSequenceClassification"
],
"attention_probs_dropout_prob": 0.1,
"classifier_dropout": null,
"gradient_checkpointing": false,
"hidden_act": "gelu",
"hidden_dropout_prob": 0.1,
"hidden_size": 1024, // Changed to match XLNet's hidden size for sequence classification
"id2label": {
"0": "non-severe",
"1": "severe"
},
"initializer_range": 0.02,
"intermediate_size": 4096,
"label2id": {
"non-severe": 0,
"severe": 1
},
"layer_norm_eps": 1e-12,
"max_position_embeddings": 512,
"model_type": "xlnet", // Fixed typo in model_type
"num_attention_heads": 16,
"num_hidden_layers": 24,
"pad_token_id": 5,
"position_embedding_type": "absolute",
"problem_type": "single_label_classification",
"torch_dtype": "float32",
"transformers_version": "4.21.2",
"type_vocab_size": 2,
"use_cache": true,
"vocab_size": 32000 // Changed to match XLNet's vocab size
}