Text Classification
Transformers
Safetensors
Indonesian
xlm-roberta
indonesian
fiqhqa
Generated from Trainer
text-embeddings-inference
Instructions to use mhdafifan/xlm-roberta-fiqhqa-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mhdafifan/xlm-roberta-fiqhqa-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mhdafifan/xlm-roberta-fiqhqa-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mhdafifan/xlm-roberta-fiqhqa-classifier") model = AutoModelForSequenceClassification.from_pretrained("mhdafifan/xlm-roberta-fiqhqa-classifier") - Notebooks
- Google Colab
- Kaggle
xlm-roberta-fiqhqa-classifier
This model is a fine-tuned version of FacebookAI/xlm-roberta-base on the FiqhQA dataset. It achieves the following results on the evaluation set:
- Loss: 0.7685
- Accuracy: 0.7476
- F1 Macro: 0.5505
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.7093 | 1.0 | 52 | 1.7213 | 0.3883 | 0.0799 |
| 1.6577 | 2.0 | 104 | 1.6202 | 0.4272 | 0.1555 |
| 1.588 | 3.0 | 156 | 1.4457 | 0.4951 | 0.2049 |
| 1.4404 | 4.0 | 208 | 1.3333 | 0.4854 | 0.2165 |
| 1.1642 | 5.0 | 260 | 0.9893 | 0.6990 | 0.4162 |
| 0.9214 | 6.0 | 312 | 0.8717 | 0.7087 | 0.4322 |
| 0.7215 | 7.0 | 364 | 0.8799 | 0.6990 | 0.4277 |
| 0.6669 | 8.0 | 416 | 0.7678 | 0.7282 | 0.4806 |
| 0.494 | 9.0 | 468 | 0.7999 | 0.7282 | 0.5089 |
| 0.4958 | 10.0 | 520 | 0.7685 | 0.7476 | 0.5505 |
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/xlm-roberta-fiqhqa-classifier
Base model
FacebookAI/xlm-roberta-base