Create config.json
Browse files- config.json +26 -18
config.json
CHANGED
|
@@ -1,27 +1,35 @@
|
|
| 1 |
{
|
| 2 |
-
"
|
| 3 |
"architectures": [
|
| 4 |
-
"BertForSequenceClassification"
|
| 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": 768,
|
| 12 |
-
"
|
|
|
|
| 13 |
"intermediate_size": 3072,
|
|
|
|
|
|
|
| 14 |
"layer_norm_eps": 1e-12,
|
| 15 |
"max_position_embeddings": 512,
|
| 16 |
-
"
|
| 17 |
-
"num_attention_heads": 12,
|
| 18 |
-
"num_hidden_layers": 12,
|
| 19 |
-
"pad_token_id": 0,
|
| 20 |
-
"position_embedding_type": "absolute",
|
| 21 |
-
"problem_type": "single_label_classification",
|
| 22 |
-
"torch_dtype": "float32",
|
| 23 |
-
"transformers_version": "4.42.4",
|
| 24 |
"type_vocab_size": 2,
|
| 25 |
-
"
|
| 26 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 27 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"model_type": "bert",
|
| 3 |
"architectures": [
|
| 4 |
+
"BertForSequenceClassification" // Cambia esto si tu modelo realiza una tarea diferente
|
| 5 |
],
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
"hidden_size": 768,
|
| 7 |
+
"num_attention_heads": 12,
|
| 8 |
+
"num_hidden_layers": 12,
|
| 9 |
"intermediate_size": 3072,
|
| 10 |
+
"hidden_act": "gelu",
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
"layer_norm_eps": 1e-12,
|
| 13 |
"max_position_embeddings": 512,
|
| 14 |
+
"vocab_size": 30522,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
"type_vocab_size": 2,
|
| 16 |
+
"task_specific_params": {
|
| 17 |
+
"text-classification": {
|
| 18 |
+
"num_labels": 2 // Ajusta este número según la cantidad de clases en tu tarea
|
| 19 |
+
}
|
| 20 |
+
},
|
| 21 |
+
"attention_probs_dropout_prob": 0.1,
|
| 22 |
+
"hidden_dropout_prob": 0.1,
|
| 23 |
+
"pad_token_id": 0,
|
| 24 |
+
"bos_token_id": 101,
|
| 25 |
+
"eos_token_id": 102,
|
| 26 |
+
"id2label": {
|
| 27 |
+
"0": "LABEL_0", // Ajusta estos valores según las etiquetas de tu tarea
|
| 28 |
+
"1": "LABEL_1"
|
| 29 |
+
},
|
| 30 |
+
"label2id": {
|
| 31 |
+
"LABEL_0": 0,
|
| 32 |
+
"LABEL_1": 1
|
| 33 |
+
},
|
| 34 |
+
"finetuning_task": "text-classification"
|
| 35 |
}
|