Text Classification
Transformers
Safetensors
roberta
Generated from Trainer
text-embeddings-inference
Instructions to use dinnifrisya/sentiment-fyp-roberta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dinnifrisya/sentiment-fyp-roberta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dinnifrisya/sentiment-fyp-roberta")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dinnifrisya/sentiment-fyp-roberta") model = AutoModelForSequenceClassification.from_pretrained("dinnifrisya/sentiment-fyp-roberta", device_map="auto") - Notebooks
- Google Colab
- Kaggle
sentiment-fyp-roberta
This model is a fine-tuned version of roberta-base on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.8099
- Accuracy: 0.6616
- F1: 0.5809
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: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.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: 937
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 0.8681 | 1.0 | 1875 | 0.8831 | 0.6112 | 0.4708 |
| 0.8310 | 2.0 | 3750 | 0.8389 | 0.6426 | 0.5508 |
| 0.8027 | 3.0 | 5625 | 0.8059 | 0.6586 | 0.5474 |
| 0.7173 | 4.0 | 7500 | 0.8012 | 0.6564 | 0.5715 |
| 0.7227 | 5.0 | 9375 | 0.8099 | 0.6616 | 0.5809 |
Framework versions
- Transformers 5.9.0
- Pytorch 2.12.0+cu130
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 2
Model tree for dinnifrisya/sentiment-fyp-roberta
Base model
FacebookAI/roberta-base