Align label mapping with qnli config of glue dataset
Browse filesHi there, your model is using a default label mapping. Accept this PR to align the label mapping with the `qnli` config of the `glue` dataset this model was trained on. This will enable your model to be evaluated by [Hugging Face's automatic model evaluator](https://huggingface.co/spaces/autoevaluate/model-evaluator?dataset=glue)
- config.json +10 -2
config.json
CHANGED
@@ -30,5 +30,13 @@
|
|
30 |
"torch_dtype": "float32",
|
31 |
"transformers_version": "4.15.0",
|
32 |
"type_vocab_size": 2,
|
33 |
-
"vocab_size": 30000
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
"torch_dtype": "float32",
|
31 |
"transformers_version": "4.15.0",
|
32 |
"type_vocab_size": 2,
|
33 |
+
"vocab_size": 30000,
|
34 |
+
"label2id": {
|
35 |
+
"entailment": 0,
|
36 |
+
"not_entailment": 1
|
37 |
+
},
|
38 |
+
"id2label": {
|
39 |
+
"0": "entailment",
|
40 |
+
"1": "not_entailment"
|
41 |
+
}
|
42 |
+
}
|