facebook/xnli
Viewer • Updated • 6.4M • 22.1k • 72
How to use gayanin/bert-xnli-de-classifier with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="gayanin/bert-xnli-de-classifier") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("gayanin/bert-xnli-de-classifier")
model = AutoModelForSequenceClassification.from_pretrained("gayanin/bert-xnli-de-classifier", device_map="auto")This model is a fine-tuned version of bert-base-german-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.554 | 1.0 | 6136 | 0.5783 | 0.7675 |
| 0.4946 | 2.0 | 12272 | 0.5471 | 0.7892 |
| 0.3416 | 3.0 | 18408 | 0.5897 | 0.7807 |