Instructions to use Cathy/reranking_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Cathy/reranking_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Cathy/reranking_model")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Cathy/reranking_model") model = AutoModelForSequenceClassification.from_pretrained("Cathy/reranking_model") - Notebooks
- Google Colab
- Kaggle
update label2id
Browse files- config.json +6 -6
config.json
CHANGED
|
@@ -13,16 +13,16 @@
|
|
| 13 |
"hidden_dropout_prob": 0.1,
|
| 14 |
"hidden_size": 1024,
|
| 15 |
"id2label": {
|
| 16 |
-
"0":
|
| 17 |
-
"1":
|
| 18 |
-
"2":
|
| 19 |
},
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"intermediate_size": 4096,
|
| 22 |
"label2id": {
|
| 23 |
-
"
|
| 24 |
-
"
|
| 25 |
-
"
|
| 26 |
},
|
| 27 |
"layer_norm_eps": 1e-05,
|
| 28 |
"max_position_embeddings": 514,
|
|
|
|
| 13 |
"hidden_dropout_prob": 0.1,
|
| 14 |
"hidden_size": 1024,
|
| 15 |
"id2label": {
|
| 16 |
+
"0": "contradiction",
|
| 17 |
+
"1": "neutral",
|
| 18 |
+
"2": "entailment"
|
| 19 |
},
|
| 20 |
"initializer_range": 0.02,
|
| 21 |
"intermediate_size": 4096,
|
| 22 |
"label2id": {
|
| 23 |
+
"contradiction": 0,
|
| 24 |
+
"neutral": 1,
|
| 25 |
+
"entailment": 2
|
| 26 |
},
|
| 27 |
"layer_norm_eps": 1e-05,
|
| 28 |
"max_position_embeddings": 514,
|