facebook/xnli
Viewer • Updated • 6.4M • 21.8k • 72
How to use semindan/xnli_m_bert_only_sw with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="semindan/xnli_m_bert_only_sw") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("semindan/xnli_m_bert_only_sw")
model = AutoModelForSequenceClassification.from_pretrained("semindan/xnli_m_bert_only_sw")This model is a fine-tuned version of bert-base-multilingual-cased 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.8323 | 1.0 | 3068 | 0.8640 | 0.6217 |
| 0.7614 | 2.0 | 6136 | 0.7812 | 0.6598 |
| 0.6875 | 3.0 | 9204 | 0.8466 | 0.6394 |
| 0.6065 | 4.0 | 12272 | 0.8354 | 0.6538 |
| 0.5219 | 5.0 | 15340 | 0.8810 | 0.6550 |
| 0.4317 | 6.0 | 18408 | 0.9880 | 0.6554 |
| 0.3532 | 7.0 | 21476 | 1.1403 | 0.6390 |
| 0.2893 | 8.0 | 24544 | 1.1935 | 0.6390 |
| 0.2351 | 9.0 | 27612 | 1.3805 | 0.6390 |
| 0.1928 | 10.0 | 30680 | 1.5193 | 0.6289 |