facebook/xnli
Viewer • Updated • 6.4M • 21.8k • 72
How to use semindan/xnli_m_bert_only_en with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="semindan/xnli_m_bert_only_en") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("semindan/xnli_m_bert_only_en")
model = AutoModelForSequenceClassification.from_pretrained("semindan/xnli_m_bert_only_en")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.3328 | 1.0 | 3068 | 0.5433 | 0.8036 |
| 0.259 | 2.0 | 6136 | 0.5708 | 0.8008 |
| 0.2023 | 3.0 | 9204 | 0.6475 | 0.8048 |
| 0.1362 | 4.0 | 12272 | 0.7661 | 0.7972 |
| 0.0945 | 5.0 | 15340 | 0.8333 | 0.8008 |
| 0.0665 | 6.0 | 18408 | 0.9312 | 0.8092 |
| 0.0463 | 7.0 | 21476 | 1.0082 | 0.8076 |