facebook/xnli
Viewer • Updated • 6.4M • 21.6k • 72
How to use semindan/xnli_m_bert_only_zh with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="semindan/xnli_m_bert_only_zh") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("semindan/xnli_m_bert_only_zh")
model = AutoModelForSequenceClassification.from_pretrained("semindan/xnli_m_bert_only_zh")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.6394 | 1.0 | 3068 | 0.6471 | 0.7277 |
| 0.5624 | 2.0 | 6136 | 0.5779 | 0.7631 |
| 0.4797 | 3.0 | 9204 | 0.6200 | 0.7470 |
| 0.395 | 4.0 | 12272 | 0.6384 | 0.7494 |
| 0.3193 | 5.0 | 15340 | 0.7014 | 0.7618 |
| 0.2476 | 6.0 | 18408 | 0.8153 | 0.7418 |
| 0.1902 | 7.0 | 21476 | 0.8486 | 0.7446 |
| 0.1467 | 8.0 | 24544 | 0.9420 | 0.7506 |
| 0.1114 | 9.0 | 27612 | 1.1149 | 0.7506 |
| 0.0848 | 10.0 | 30680 | 1.1968 | 0.7458 |