Instructions to use tadiecool29/afriberta-stl-large-stance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tadiecool29/afriberta-stl-large-stance with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tadiecool29/afriberta-stl-large-stance", device_map="auto") - Notebooks
- Google Colab
- Kaggle
afriberta-stl-large-stance
This model is a fine-tuned version of castorini/afriberta_large on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.7849
- Sentiment Precision: 0.7643
- Sentiment Recall: 0.7555
- F1: 0.7584
- Sentiment Acc: 0.7509
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 | Sentiment Precision | Sentiment Recall | F1 | Sentiment Acc |
|---|---|---|---|---|---|---|---|
| 0.7995 | 1.0 | 402 | 0.7067 | 0.7215 | 0.7335 | 0.7226 | 0.7195 |
| 0.6619 | 2.0 | 804 | 0.6548 | 0.7646 | 0.7507 | 0.7564 | 0.7494 |
| 0.4693 | 3.0 | 1206 | 0.6765 | 0.7655 | 0.7457 | 0.7521 | 0.7431 |
| 0.3433 | 4.0 | 1608 | 0.7269 | 0.7800 | 0.7613 | 0.7688 | 0.7606 |
| 0.2107 | 5.0 | 2010 | 0.7575 | 0.7807 | 0.7746 | 0.7773 | 0.7706 |
| 0.1952 | 6.0 | 2412 | 0.7683 | 0.7815 | 0.7745 | 0.7776 | 0.7706 |
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/afriberta-stl-large-stance
Base model
castorini/afriberta_large