Instructions to use yasminwee/sentiment-xlmroberta-model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use yasminwee/sentiment-xlmroberta-model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="yasminwee/sentiment-xlmroberta-model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("yasminwee/sentiment-xlmroberta-model") model = AutoModelForSequenceClassification.from_pretrained("yasminwee/sentiment-xlmroberta-model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sentiment-xlmroberta-model
This model is a fine-tuned version of xlm-roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2942
- Accuracy: 0.909
- F1: 0.9094
- Precision: 0.9054
- Recall: 0.9134
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: 5e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 4
- total_train_batch_size: 64
- 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
- lr_scheduler_warmup_steps: 500
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.1446 | 1.0 | 1563 | 0.3038 | 0.8888 | 0.8905 | 0.8766 | 0.9050 |
| 0.0999 | 2.0 | 3126 | 0.2631 | 0.9049 | 0.9047 | 0.9068 | 0.9025 |
| 0.0743 | 2.9984 | 4686 | 0.2942 | 0.909 | 0.9094 | 0.9054 | 0.9134 |
Framework versions
- Transformers 4.51.3
- Pytorch 2.6.0+cu124
- Datasets 2.14.4
- Tokenizers 0.21.1
- Downloads last month
- 7
Model tree for yasminwee/sentiment-xlmroberta-model
Base model
FacebookAI/xlm-roberta-base