Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use nguyentatdat/roberta_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nguyentatdat/roberta_classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="nguyentatdat/roberta_classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("nguyentatdat/roberta_classification") model = AutoModelForSequenceClassification.from_pretrained("nguyentatdat/roberta_classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
roberta_classification
This model is a fine-tuned version of FacebookAI/xlm-roberta-large on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.0822
- Accuracy: 0.9878
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: 128
- 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: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.0637 | 1.0 | 879 | 0.0325 | 0.9889 |
| 0.0175 | 2.0 | 1758 | 0.0439 | 0.9901 |
| 0.008 | 3.0 | 2637 | 0.0617 | 0.9876 |
| 0.0035 | 4.0 | 3516 | 0.0726 | 0.9881 |
| 0.0013 | 5.0 | 4395 | 0.0822 | 0.9878 |
Framework versions
- Transformers 4.46.2
- Pytorch 2.5.1+cu124
- Datasets 3.1.0
- Tokenizers 0.20.1
- Downloads last month
- 5
Model tree for nguyentatdat/roberta_classification
Base model
FacebookAI/xlm-roberta-large