facebook/xnli
Viewer • Updated • 6.4M • 21k • 72
How to use semindan/xnli_m_bert_only_fr with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="semindan/xnli_m_bert_only_fr") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("semindan/xnli_m_bert_only_fr")
model = AutoModelForSequenceClassification.from_pretrained("semindan/xnli_m_bert_only_fr", device_map="auto")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.6184 | 1.0 | 3068 | 0.6251 | 0.7373 |
| 0.5293 | 2.0 | 6136 | 0.5669 | 0.7635 |
| 0.4343 | 3.0 | 9204 | 0.6161 | 0.7651 |
| 0.3456 | 4.0 | 12272 | 0.6650 | 0.7631 |
| 0.2677 | 5.0 | 15340 | 0.7249 | 0.7755 |
| 0.2022 | 6.0 | 18408 | 0.8638 | 0.7590 |
| 0.1488 | 7.0 | 21476 | 0.9073 | 0.7763 |
| 0.1096 | 8.0 | 24544 | 1.0603 | 0.7586 |
| 0.0813 | 9.0 | 27612 | 1.1546 | 0.7687 |
| 0.0599 | 10.0 | 30680 | 1.2262 | 0.7675 |