speechbrain/common_language
Updated β’ 423 β’ 43
How to use ivanlau/language-detection-fine-tuned-on-xlm-roberta-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="ivanlau/language-detection-fine-tuned-on-xlm-roberta-base") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("ivanlau/language-detection-fine-tuned-on-xlm-roberta-base")
model = AutoModelForSequenceClassification.from_pretrained("ivanlau/language-detection-fine-tuned-on-xlm-roberta-base")This model is a fine-tuned version of xlm-roberta-base on the common_language dataset. It achieves the following results on the evaluation set:
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.1 | 1.0 | 22194 | 0.1886 | 0.9738 |