Instructions to use tadiecool29/MTL-afriberta-base-stance-sentiment with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tadiecool29/MTL-afriberta-base-stance-sentiment with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tadiecool29/MTL-afriberta-base-stance-sentiment", device_map="auto") - Notebooks
- Google Colab
- Kaggle
MTL-afriberta-base-stance-sentiment
This model is a fine-tuned version of castorini/afriberta_base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 1.4347
- Stance F1: 0.7627
- Sentiment F1: 0.7060
- F1: 0.7343
- Stance Acc: 0.7544
- Sentiment Acc: 0.7107
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: 1e-05
- train_batch_size: 16
- eval_batch_size: 32
- 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: cosine
- lr_scheduler_warmup_steps: 300
- num_epochs: 6
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Stance F1 | Sentiment F1 | F1 | Stance Acc | Sentiment Acc |
|---|---|---|---|---|---|---|---|---|
| 1.5937 | 1.0 | 402 | 1.5011 | 0.7256 | 0.6592 | 0.6924 | 0.7219 | 0.6746 |
| 1.3405 | 2.0 | 804 | 1.3649 | 0.7521 | 0.6976 | 0.7249 | 0.7444 | 0.7020 |
| 1.0650 | 3.0 | 1206 | 1.3510 | 0.7560 | 0.6886 | 0.7223 | 0.7494 | 0.6983 |
| 0.8675 | 4.0 | 1608 | 1.4288 | 0.7561 | 0.7036 | 0.7299 | 0.7469 | 0.7082 |
| 0.7447 | 5.0 | 2010 | 1.4309 | 0.7626 | 0.7050 | 0.7338 | 0.7544 | 0.7082 |
| 0.6772 | 6.0 | 2412 | 1.4347 | 0.7627 | 0.7060 | 0.7343 | 0.7544 | 0.7107 |
Framework versions
- Transformers 5.15.0
- Pytorch 2.11.0+cu128
- Datasets 4.0.0
- Tokenizers 0.22.2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for tadiecool29/MTL-afriberta-base-stance-sentiment
Base model
castorini/afriberta_base