Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use erostrate9/distillbert_imbalanced with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use erostrate9/distillbert_imbalanced with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="erostrate9/distillbert_imbalanced")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("erostrate9/distillbert_imbalanced") model = AutoModelForSequenceClassification.from_pretrained("erostrate9/distillbert_imbalanced", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distillbert_imbalanced
This model is a fine-tuned version of distilbert/distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.3462
- Accuracy: 0.9319
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: 5e-05
- train_batch_size: 4
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.01
- num_epochs: 2
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.1922 | 0.2 | 420 | 0.2553 | 0.9224 |
| 2.5824 | 0.4 | 840 | 0.4214 | 0.9024 |
| 0.0174 | 0.6 | 1260 | 0.2740 | 0.9262 |
| 0.094 | 0.8 | 1680 | 0.3481 | 0.9195 |
| 0.0032 | 1.0 | 2100 | 0.3049 | 0.9319 |
| 0.0026 | 1.2 | 2520 | 0.3188 | 0.9310 |
| 0.0007 | 1.4 | 2940 | 0.3281 | 0.9295 |
| 0.0008 | 1.6 | 3360 | 0.3427 | 0.9305 |
| 0.007 | 1.8 | 3780 | 0.3435 | 0.9319 |
| 0.0029 | 2.0 | 4200 | 0.3462 | 0.9319 |
Framework versions
- Transformers 4.38.2
- Pytorch 2.2.1+cu121
- Datasets 2.18.0
- Tokenizers 0.15.2
- Downloads last month
- 6
Model tree for erostrate9/distillbert_imbalanced
Base model
distilbert/distilbert-base-uncased