Text Classification
Transformers
TensorBoard
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use cz-score/distilbert-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use cz-score/distilbert-emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="cz-score/distilbert-emotion")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("cz-score/distilbert-emotion") model = AutoModelForSequenceClassification.from_pretrained("cz-score/distilbert-emotion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-emotion
This model is a fine-tuned version of distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.2722
- Accuracy: 0.9385
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: 64
- eval_batch_size: 64
- seed: 42
- optimizer: Use adamw_torch 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 |
|---|---|---|---|---|
| No log | 1.0 | 250 | 0.1649 | 0.93 |
| 0.1546 | 2.0 | 500 | 0.1498 | 0.942 |
| 0.1546 | 3.0 | 750 | 0.1444 | 0.9405 |
| 0.0812 | 4.0 | 1000 | 0.1424 | 0.9365 |
| 0.0812 | 5.0 | 1250 | 0.1911 | 0.9395 |
| 0.0419 | 6.0 | 1500 | 0.2071 | 0.943 |
| 0.0419 | 7.0 | 1750 | 0.2465 | 0.942 |
| 0.0176 | 8.0 | 2000 | 0.2591 | 0.9405 |
| 0.0176 | 9.0 | 2250 | 0.2647 | 0.9385 |
| 0.0097 | 10.0 | 2500 | 0.2722 | 0.9385 |
Framework versions
- Transformers 4.46.2
- Pytorch 2.5.1+cu121
- Datasets 3.1.0
- Tokenizers 0.20.3
- Downloads last month
- 5
Model tree for cz-score/distilbert-emotion
Base model
distilbert/distilbert-base-uncased