Instructions to use saiyiram/indicbertv2-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saiyiram/indicbertv2-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="saiyiram/indicbertv2-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("saiyiram/indicbertv2-classifier") model = AutoModelForSequenceClassification.from_pretrained("saiyiram/indicbertv2-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
indicbertv2-classifier
This model is a fine-tuned version of ai4bharat/IndicBERTv2-MLM-only on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1700
- Accuracy: 0.9806
- Macro Precision: 0.9776
- Macro Recall: 0.9786
- Macro F1: 0.9781
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: 32
- eval_batch_size: 64
- 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
- lr_scheduler_warmup_steps: 500
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Macro Precision | Macro Recall | Macro F1 |
|---|---|---|---|---|---|---|---|
| 2.2237 | 1.0 | 168 | 0.5106 | 0.9641 | 0.9625 | 0.9631 | 0.9613 |
| 0.1990 | 2.0 | 336 | 0.1719 | 0.9761 | 0.9732 | 0.9741 | 0.9732 |
| 0.1149 | 3.0 | 504 | 0.1700 | 0.9806 | 0.9776 | 0.9786 | 0.9781 |
Framework versions
- Transformers 5.16.1
- Pytorch 2.10.0+cu128
- Datasets 5.0.1
- Tokenizers 0.23.2
- Downloads last month
- 21
Model tree for saiyiram/indicbertv2-classifier
Base model
ai4bharat/IndicBERTv2-MLM-only