Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use Carlosdca/sentiment-xlm-batch4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Carlosdca/sentiment-xlm-batch4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Carlosdca/sentiment-xlm-batch4")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Carlosdca/sentiment-xlm-batch4") model = AutoModelForSequenceClassification.from_pretrained("Carlosdca/sentiment-xlm-batch4", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sentiment-xlm-batch4
This model is a fine-tuned version of xlm-roberta-large on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.6739
- Accuracy: 0.5764
- F1 Macro: 0.3656
- F1 Weighted: 0.4215
- Precision Macro: 0.2882
- Recall Macro: 0.5
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: 4
- eval_batch_size: 4
- 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: linear
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro | F1 Weighted | Precision Macro | Recall Macro |
|---|---|---|---|---|---|---|---|---|
| 0.7408 | 1.0 | 656 | 0.6764 | 0.5747 | 0.3650 | 0.4195 | 0.2873 | 0.5 |
| 0.7165 | 2.0 | 1312 | 0.6979 | 0.4253 | 0.2984 | 0.2538 | 0.2127 | 0.5 |
| 0.7071 | 3.0 | 1968 | 0.7222 | 0.4253 | 0.2984 | 0.2538 | 0.2127 | 0.5 |
| 0.705 | 4.0 | 2624 | 0.6976 | 0.4253 | 0.2984 | 0.2538 | 0.2127 | 0.5 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 8
Model tree for Carlosdca/sentiment-xlm-batch4
Base model
FacebookAI/xlm-roberta-large