Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use AbrarAbhinaya/DistilbertScenario6-news-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AbrarAbhinaya/DistilbertScenario6-news-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="AbrarAbhinaya/DistilbertScenario6-news-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("AbrarAbhinaya/DistilbertScenario6-news-classifier") model = AutoModelForSequenceClassification.from_pretrained("AbrarAbhinaya/DistilbertScenario6-news-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
DistilbertScenario6-news-classifier
This model is a fine-tuned version of distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 2.2599
- Accuracy: 0.6637
- Precision: 0.7024
- Recall: 0.6637
- F1: 0.6732
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: 8
- eval_batch_size: 8
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- 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: cosine
- lr_scheduler_warmup_ratio: 0.2
- num_epochs: 6
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 3.1502 | 1.0 | 10452 | 2.4660 | 0.5884 | 0.6502 | 0.5884 | 0.6030 |
| 2.39 | 2.0 | 20904 | 2.3147 | 0.6235 | 0.6775 | 0.6235 | 0.6339 |
| 2.1944 | 3.0 | 31356 | 2.2647 | 0.6450 | 0.6954 | 0.6450 | 0.6568 |
| 2.0624 | 4.0 | 41808 | 2.2534 | 0.6560 | 0.7023 | 0.6560 | 0.6679 |
| 1.9719 | 5.0 | 52260 | 2.2555 | 0.6609 | 0.7019 | 0.6609 | 0.6711 |
| 1.924 | 6.0 | 62712 | 2.2599 | 0.6637 | 0.7024 | 0.6637 | 0.6732 |
Framework versions
- Transformers 4.57.1
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 4
Model tree for AbrarAbhinaya/DistilbertScenario6-news-classifier
Base model
distilbert/distilbert-base-uncased