Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use adeshG07/roberta-sentiment-sarcasm-aware with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use adeshG07/roberta-sentiment-sarcasm-aware with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="adeshG07/roberta-sentiment-sarcasm-aware")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("adeshG07/roberta-sentiment-sarcasm-aware") model = AutoModelForSequenceClassification.from_pretrained("adeshG07/roberta-sentiment-sarcasm-aware", device_map="auto") - Notebooks
- Google Colab
- Kaggle
roberta-sentiment-sarcasm-aware
This model is a fine-tuned version of roberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0626
- Accuracy: 0.9745
- F1: 0.9748
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: 32
- eval_batch_size: 64
- 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
- lr_scheduler_warmup_steps: 500
- num_epochs: 2
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.0928 | 0.32 | 200 | 0.1096 | 0.9385 | 0.9254 |
| 0.0826 | 0.64 | 400 | 0.0937 | 0.943 | 0.9352 |
| 0.0874 | 0.96 | 600 | 0.0945 | 0.947 | 0.9374 |
| 0.0688 | 1.28 | 800 | 0.0677 | 0.967 | 0.9693 |
| 0.055 | 1.6 | 1000 | 0.0717 | 0.97 | 0.9694 |
| 0.0505 | 1.92 | 1200 | 0.0626 | 0.9745 | 0.9748 |
Framework versions
- Transformers 4.53.2
- Pytorch 2.6.0+cu124
- Datasets 2.14.4
- Tokenizers 0.21.2
- Downloads last month
- 13
Model tree for adeshG07/roberta-sentiment-sarcasm-aware
Base model
FacebookAI/roberta-base