Instructions to use mhdafifan/indobert-fiqhqa-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mhdafifan/indobert-fiqhqa-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mhdafifan/indobert-fiqhqa-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("mhdafifan/indobert-fiqhqa-classifier") model = AutoModelForSequenceClassification.from_pretrained("mhdafifan/indobert-fiqhqa-classifier") - Notebooks
- Google Colab
- Kaggle
indobert-fiqhqa-classifier
This model is a fine-tuned version of indobenchmark/indobert-base-p1 on the FiqhQA dataset. It achieves the following results on the evaluation set:
- Loss: 0.5762
- Accuracy: 0.8957
- F1 Macro: 0.8678
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.4369 | 1.0 | 57 | 1.0035 | 0.6609 | 0.4960 |
| 0.5881 | 2.0 | 114 | 0.5461 | 0.8348 | 0.8113 |
| 0.3634 | 3.0 | 171 | 0.4560 | 0.8783 | 0.8628 |
| 0.1846 | 4.0 | 228 | 0.4769 | 0.8609 | 0.8336 |
| 0.0482 | 5.0 | 285 | 0.5326 | 0.8870 | 0.8639 |
| 0.025 | 6.0 | 342 | 0.5401 | 0.8957 | 0.8585 |
| 0.0257 | 7.0 | 399 | 0.5413 | 0.8957 | 0.8678 |
| 0.0194 | 8.0 | 456 | 0.5386 | 0.8870 | 0.8598 |
| 0.0106 | 9.0 | 513 | 0.5762 | 0.8957 | 0.8678 |
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/indobert-fiqhqa-classifier
Base model
indobenchmark/indobert-base-p1