Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use ozeniny/franco-sentiment-classifier-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ozeniny/franco-sentiment-classifier-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ozeniny/franco-sentiment-classifier-v2")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ozeniny/franco-sentiment-classifier-v2") model = AutoModelForSequenceClassification.from_pretrained("ozeniny/franco-sentiment-classifier-v2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
franco-sentiment-classifier-v2
This model is a fine-tuned version of ozeniny/xlm-roberta-arabizi-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.5003
- Accuracy: 0.8193
- F1 Macro: 0.8183
- F1 Positive: 0.8428
- F1 Neutral: 0.8244
- F1 Negative: 0.7876
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: 128
- eval_batch_size: 256
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_steps: 500
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Positive | F1 Neutral | F1 Negative |
|---|---|---|---|---|---|---|---|---|
| 0.5591 | 1.0 | 1157 | 0.5503 | 0.7859 | 0.7808 | 0.8146 | 0.8030 | 0.7249 |
| 0.4873 | 2.0 | 2314 | 0.4846 | 0.8076 | 0.8071 | 0.8326 | 0.8126 | 0.7761 |
| 0.4356 | 3.0 | 3471 | 0.4840 | 0.8113 | 0.8109 | 0.8389 | 0.8111 | 0.7828 |
| 0.4008 | 4.0 | 4628 | 0.4971 | 0.8148 | 0.8140 | 0.8387 | 0.8194 | 0.7837 |
| 0.3460 | 5.0 | 5785 | 0.5087 | 0.8129 | 0.8120 | 0.8360 | 0.8166 | 0.7835 |
Framework versions
- Transformers 5.10.2
- Pytorch 2.8.0+cu128
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- 1
Model tree for ozeniny/franco-sentiment-classifier-v2
Base model
ozeniny/xlm-roberta-arabizi-base