Text Classification
Transformers
Safetensors
deberta-v2
Generated from Trainer
text-embeddings-inference
Instructions to use mhdafifan/mdeberta-fiqhqa-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mhdafifan/mdeberta-fiqhqa-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mhdafifan/mdeberta-fiqhqa-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mhdafifan/mdeberta-fiqhqa-classifier") model = AutoModelForSequenceClassification.from_pretrained("mhdafifan/mdeberta-fiqhqa-classifier") - Notebooks
- Google Colab
- Kaggle
mdeberta-fiqhqa-classifier
This model is a fine-tuned version of microsoft/mdeberta-v3-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.5483
- Accuracy: 0.8435
- F1 Macro: 0.7795
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
- num_epochs: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Macro |
|---|---|---|---|---|---|
| 1.536 | 1.0 | 57 | 1.5099 | 0.4609 | 0.1052 |
| 1.5084 | 2.0 | 114 | 1.2667 | 0.5478 | 0.2103 |
| 1.1274 | 3.0 | 171 | 0.8767 | 0.7043 | 0.4012 |
| 0.8127 | 4.0 | 228 | 0.6585 | 0.8348 | 0.7690 |
| 0.4821 | 5.0 | 285 | 0.4825 | 0.8522 | 0.7798 |
| 0.3559 | 6.0 | 342 | 0.5199 | 0.8348 | 0.7681 |
| 0.2817 | 7.0 | 399 | 0.5483 | 0.8435 | 0.7795 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.9.1+cu128
- Datasets 4.4.1
- Tokenizers 0.22.1
- Downloads last month
- 3
Model tree for mhdafifan/mdeberta-fiqhqa-classifier
Base model
microsoft/mdeberta-v3-base