Align label mapping with mnli config of glue dataset

#1
by lewtun HF staff - opened
Files changed (1) hide show
  1. config.json +7 -7
config.json CHANGED
@@ -9,15 +9,15 @@
9
  "dropout": 0.1,
10
  "hidden_dim": 3072,
11
  "id2label": {
12
- "0": "LABEL_0",
13
- "1": "LABEL_1",
14
- "2": "LABEL_2"
15
  },
16
  "initializer_range": 0.02,
17
  "label2id": {
18
- "LABEL_0": 0,
19
- "LABEL_1": 1,
20
- "LABEL_2": 2
21
  },
22
  "max_position_embeddings": 512,
23
  "model_type": "distilbert",
@@ -32,4 +32,4 @@
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.10.2",
34
  "vocab_size": 30522
35
- }
 
9
  "dropout": 0.1,
10
  "hidden_dim": 3072,
11
  "id2label": {
12
+ "0": "entailment",
13
+ "1": "neutral",
14
+ "2": "contradiction"
15
  },
16
  "initializer_range": 0.02,
17
  "label2id": {
18
+ "entailment": 0,
19
+ "neutral": 1,
20
+ "contradiction": 2
21
  },
22
  "max_position_embeddings": 512,
23
  "model_type": "distilbert",
 
32
  "torch_dtype": "float32",
33
  "transformers_version": "4.10.2",
34
  "vocab_size": 30522
35
+ }