facebook/xnli
Viewer โข Updated โข 6.4M โข 40k โข 76
How to use semindan/xnli_xlm_r_only_en with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="semindan/xnli_xlm_r_only_en") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("semindan/xnli_xlm_r_only_en")
model = AutoModelForSequenceClassification.from_pretrained("semindan/xnli_xlm_r_only_en", device_map="auto")This model is a fine-tuned version of xlm-roberta-base on the xnli dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.5771 | 1.0 | 3068 | 0.4557 | 0.8229 |
| 0.4272 | 2.0 | 6136 | 0.4174 | 0.8305 |
| 0.3599 | 3.0 | 9204 | 0.4471 | 0.8353 |
| 0.3064 | 4.0 | 12272 | 0.4394 | 0.8446 |
| 0.2604 | 5.0 | 15340 | 0.4544 | 0.8482 |
| 0.2226 | 6.0 | 18408 | 0.5036 | 0.8494 |
| 0.1907 | 7.0 | 21476 | 0.5139 | 0.8522 |
| 0.1654 | 8.0 | 24544 | 0.5454 | 0.8486 |
| 0.1441 | 9.0 | 27612 | 0.5828 | 0.8498 |
| 0.1304 | 10.0 | 30680 | 0.5994 | 0.8506 |