Text Classification
Transformers
Safetensors
xlm-roberta
Generated from Trainer
text-embeddings-inference
Instructions to use UmairHere/urdu-multiclass-classifier-balanced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use UmairHere/urdu-multiclass-classifier-balanced with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="UmairHere/urdu-multiclass-classifier-balanced")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("UmairHere/urdu-multiclass-classifier-balanced") model = AutoModelForSequenceClassification.from_pretrained("UmairHere/urdu-multiclass-classifier-balanced", device_map="auto") - Notebooks
- Google Colab
- Kaggle
urdu-multiclass-classifier-balanced
This model is a fine-tuned version of xlm-roberta-base on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1254
- Accuracy: 0.9729
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: 1e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 32
- 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: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| No log | 1.0 | 393 | 0.1275 | 0.9662 |
| 0.6584 | 2.0 | 786 | 0.1306 | 0.9639 |
| 0.1961 | 3.0 | 1179 | 0.1164 | 0.9711 |
| 0.1203 | 4.0 | 1572 | 0.1258 | 0.9711 |
| 0.1203 | 5.0 | 1965 | 0.1254 | 0.9729 |
Framework versions
- Transformers 5.2.0
- Pytorch 2.9.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.2
- Downloads last month
- 11
Model tree for UmairHere/urdu-multiclass-classifier-balanced
Base model
FacebookAI/xlm-roberta-base