Text Classification
Transformers
TensorBoard
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use JahBless/roberta_bias_5cls with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JahBless/roberta_bias_5cls with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="JahBless/roberta_bias_5cls")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("JahBless/roberta_bias_5cls") model = AutoModelForSequenceClassification.from_pretrained("JahBless/roberta_bias_5cls", device_map="auto") - Notebooks
- Google Colab
- Kaggle
roberta_bias_5cls
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.6460
- Accuracy: 0.8785
- F1: 0.8789
- Precision: 0.8804
- Recall: 0.8785
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: 16
- seed: 42
- optimizer: Use 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: 4
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.4587 | 1.0 | 1000 | 0.4554 | 0.8475 | 0.8470 | 0.8543 | 0.8475 |
| 0.3385 | 2.0 | 2000 | 0.4823 | 0.868 | 0.8687 | 0.8710 | 0.868 |
| 0.3519 | 3.0 | 3000 | 0.5443 | 0.8725 | 0.8738 | 0.8757 | 0.8725 |
| 0.157 | 4.0 | 4000 | 0.6460 | 0.8785 | 0.8789 | 0.8804 | 0.8785 |
Framework versions
- Transformers 4.51.3
- Pytorch 2.1.2
- Datasets 3.5.1
- Tokenizers 0.21.1
- Downloads last month
- 6
Model tree for JahBless/roberta_bias_5cls
Base model
FacebookAI/roberta-base