Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use PedroTC/xlm-roberta-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PedroTC/xlm-roberta-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="PedroTC/xlm-roberta-finetuned")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("PedroTC/xlm-roberta-finetuned") model = AutoModelForSequenceClassification.from_pretrained("PedroTC/xlm-roberta-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
xlm-roberta-finetuned
This model is a fine-tuned version of FacebookAI/xlm-roberta-large on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.8038
- Accuracy: 0.3810
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 2e-05
- train_batch_size: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 1.6621 | 1.0 | 11 | 1.6368 | 0.4286 |
| 1.6065 | 2.0 | 22 | 1.6309 | 0.4286 |
| 1.6154 | 3.0 | 33 | 1.6257 | 0.4286 |
| 1.5376 | 4.0 | 44 | 1.6387 | 0.5238 |
| 1.4245 | 5.0 | 55 | 1.7178 | 0.4286 |
| 1.5925 | 6.0 | 66 | 1.7002 | 0.4286 |
| 1.3655 | 7.0 | 77 | 1.7532 | 0.4286 |
| 1.2832 | 8.0 | 88 | 1.8747 | 0.3810 |
| 1.2686 | 9.0 | 99 | 1.8126 | 0.3810 |
| 1.027 | 10.0 | 110 | 1.8038 | 0.3810 |
Framework versions
- Transformers 4.48.3
- Pytorch 2.5.1+cu124
- Datasets 3.3.2
- Tokenizers 0.21.0
- Downloads last month
- 4
Model tree for PedroTC/xlm-roberta-finetuned
Base model
FacebookAI/xlm-roberta-large