Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use Lyubka/ctx-xlmr with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lyubka/ctx-xlmr with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Lyubka/ctx-xlmr")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Lyubka/ctx-xlmr") model = AutoModelForSequenceClassification.from_pretrained("Lyubka/ctx-xlmr", device_map="auto") - Notebooks
- Google Colab
- Kaggle
ctx-xlmr
This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.5708
- Accuracy: 0.7992
- Recall Neg: 0.8071
- Recall Neu: 0.7885
- Recall Pos: 0.7971
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: 16
- eval_batch_size: 64
- seed: 42
- optimizer: Use 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_steps: 0.06
- num_epochs: 4
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Recall Neg | Recall Neu | Recall Pos |
|---|---|---|---|---|---|---|---|
| 0.6546 | 1.0 | 536 | 0.6082 | 0.7831 | 0.7661 | 0.6827 | 0.8564 |
| 0.4562 | 2.0 | 1072 | 0.5708 | 0.7992 | 0.8071 | 0.7885 | 0.7971 |
| 0.3201 | 3.0 | 1608 | 0.6602 | 0.7999 | 0.8125 | 0.7436 | 0.8187 |
| 0.2651 | 4.0 | 2144 | 0.7677 | 0.8083 | 0.8161 | 0.7436 | 0.8366 |
Framework versions
- Transformers 5.13.0
- Pytorch 2.12.1+cu130
- Datasets 5.0.0
- Tokenizers 0.22.2
- Downloads last month
- 4
Model tree for Lyubka/ctx-xlmr
Base model
FacebookAI/xlm-roberta-base