Instructions to use Ysfxjo/marbert-saudi-complaint-topic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ysfxjo/marbert-saudi-complaint-topic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Ysfxjo/marbert-saudi-complaint-topic")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Ysfxjo/marbert-saudi-complaint-topic") model = AutoModelForSequenceClassification.from_pretrained("Ysfxjo/marbert-saudi-complaint-topic") - Notebooks
- Google Colab
- Kaggle
marbert-saudi-complaint-topic
This model is a fine-tuned version of UBC-NLP/MARBERTv2 on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1191
- Accuracy: 0.985
- Precision: 0.9851
- Recall: 0.9850
- F1: 0.9850
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: 32
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH 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: 0.06
- num_epochs: 20
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.1782 | 1.0 | 2000 | 0.1090 | 0.9715 | 0.9716 | 0.9715 | 0.9715 |
| 0.0729 | 2.0 | 4000 | 0.0752 | 0.9838 | 0.9840 | 0.9838 | 0.9838 |
| 0.0518 | 3.0 | 6000 | 0.0787 | 0.9855 | 0.9855 | 0.9855 | 0.9855 |
| 0.0346 | 4.0 | 8000 | 0.0826 | 0.986 | 0.9861 | 0.986 | 0.9860 |
| 0.0240 | 5.0 | 10000 | 0.0689 | 0.9885 | 0.9885 | 0.9885 | 0.9885 |
| 0.0250 | 6.0 | 12000 | 0.0857 | 0.9888 | 0.9888 | 0.9888 | 0.9887 |
| 0.0125 | 7.0 | 14000 | 0.0953 | 0.9875 | 0.9875 | 0.9875 | 0.9875 |
| 0.0128 | 8.0 | 16000 | 0.0919 | 0.9885 | 0.9885 | 0.9885 | 0.9885 |
Framework versions
- Transformers 5.7.0
- Pytorch 2.4.1+cu124
- Datasets 4.8.5
- Tokenizers 0.22.2
- Downloads last month
- 432
Model tree for Ysfxjo/marbert-saudi-complaint-topic
Base model
UBC-NLP/MARBERTv2