Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use flaaa31/sentiment_model_for_hf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flaaa31/sentiment_model_for_hf with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="flaaa31/sentiment_model_for_hf")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("flaaa31/sentiment_model_for_hf") model = AutoModelForSequenceClassification.from_pretrained("flaaa31/sentiment_model_for_hf", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sentiment_model_for_hf
This model is a fine-tuned version of cardiffnlp/twitter-roberta-base-sentiment-latest on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.9413
- Accuracy: 0.746
- F1: 0.7454
- Precision: 0.7451
- Recall: 0.746
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: 16
- eval_batch_size: 16
- 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: 500
- num_epochs: 3
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.6881 | 1.0 | 1250 | 0.5987 | 0.733 | 0.7315 | 0.7505 | 0.733 |
| 0.4569 | 2.0 | 2500 | 0.6451 | 0.743 | 0.7427 | 0.7448 | 0.743 |
| 0.0882 | 3.0 | 3750 | 0.9413 | 0.746 | 0.7454 | 0.7451 | 0.746 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.9.0+cpu
- Datasets 4.3.0
- Tokenizers 0.22.1
- Downloads last month
- 51