Commit
·
9986541
1
Parent(s):
4e4ff12
Update README.md
Browse files
README.md
CHANGED
|
@@ -20,12 +20,12 @@ Given two sentences (a premise and a hypothesis), the model outputs the logits o
|
|
| 20 |
|
| 21 |
You can test the model using the HuggingFace model widget on the side:
|
| 22 |
- Input two sentences (premise and hypothesis) one after the other.
|
| 23 |
-
- The model returns the probabilities of 3 labels: entailment, neutral and contradiction respectively.
|
| 24 |
|
| 25 |
-
To use the model locally:
|
| 26 |
```
|
| 27 |
-
import torch
|
| 28 |
-
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 29 |
|
| 30 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 31 |
|
|
|
|
| 20 |
|
| 21 |
You can test the model using the HuggingFace model widget on the side:
|
| 22 |
- Input two sentences (premise and hypothesis) one after the other.
|
| 23 |
+
- The model returns the probabilities of 3 labels: entailment(LABEL:0), neutral(LABEL:1) and contradiction(LABEL:2) respectively.
|
| 24 |
|
| 25 |
+
To use the model locally on your machine:
|
| 26 |
```
|
| 27 |
+
# import torch
|
| 28 |
+
# device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
|
| 29 |
|
| 30 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
| 31 |
|