Align label mapping with mnli 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 `mnli` 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 +7 -7
config.json
CHANGED
@@ -15,17 +15,17 @@
|
|
15 |
"hidden_dropout_prob": 0,
|
16 |
"hidden_size": 768,
|
17 |
"id2label": {
|
18 |
-
"0": "
|
19 |
-
"1": "
|
20 |
-
"2": "
|
21 |
},
|
22 |
"initializer_range": 0.02,
|
23 |
"inner_group_num": 1,
|
24 |
"intermediate_size": 3072,
|
25 |
"label2id": {
|
26 |
-
"
|
27 |
-
"
|
28 |
-
"
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
@@ -42,4 +42,4 @@
|
|
42 |
"transformers_version": "4.9.1",
|
43 |
"type_vocab_size": 2,
|
44 |
"vocab_size": 30000
|
45 |
-
}
|
|
|
15 |
"hidden_dropout_prob": 0,
|
16 |
"hidden_size": 768,
|
17 |
"id2label": {
|
18 |
+
"0": "entailment",
|
19 |
+
"1": "neutral",
|
20 |
+
"2": "contradiction"
|
21 |
},
|
22 |
"initializer_range": 0.02,
|
23 |
"inner_group_num": 1,
|
24 |
"intermediate_size": 3072,
|
25 |
"label2id": {
|
26 |
+
"entailment": 0,
|
27 |
+
"neutral": 1,
|
28 |
+
"contradiction": 2
|
29 |
},
|
30 |
"layer_norm_eps": 1e-12,
|
31 |
"max_position_embeddings": 512,
|
|
|
42 |
"transformers_version": "4.9.1",
|
43 |
"type_vocab_size": 2,
|
44 |
"vocab_size": 30000
|
45 |
+
}
|