Text Classification
Transformers
PyTorch
TensorBoard
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use christinacdl/RoBERTa_Offensive_English_Twitter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use christinacdl/RoBERTa_Offensive_English_Twitter with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="christinacdl/RoBERTa_Offensive_English_Twitter")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("christinacdl/RoBERTa_Offensive_English_Twitter") model = AutoModelForSequenceClassification.from_pretrained("christinacdl/RoBERTa_Offensive_English_Twitter", device_map="auto") - Notebooks
- Google Colab
- Kaggle
RoBERTa_Offensive_English_Twitter
This model is a fine-tuned version of roberta-large on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2833
- Macro F1: 0.9212
- Micro F1: 0.9251
- Accuracy: 0.9251
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: 8
- eval_batch_size: 10
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 4
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Macro F1 | Micro F1 | Accuracy |
|---|---|---|---|---|---|---|
| 0.2991 | 1.0 | 4036 | 0.2859 | 0.8965 | 0.9007 | 0.9007 |
| 0.2573 | 2.0 | 8073 | 0.3038 | 0.9018 | 0.9053 | 0.9053 |
| 0.2005 | 3.0 | 12109 | 0.2800 | 0.9137 | 0.9174 | 0.9174 |
| 0.1617 | 4.0 | 16144 | 0.2833 | 0.9212 | 0.9251 | 0.9251 |
Framework versions
- Transformers 4.27.1
- Pytorch 2.0.1+cu118
- Datasets 2.9.0
- Tokenizers 0.13.3
- Downloads last month
- 3