Instructions to use KodySimpson/emotion-classifier-demo with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use KodySimpson/emotion-classifier-demo with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="KodySimpson/emotion-classifier-demo")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("KodySimpson/emotion-classifier-demo") model = AutoModelForSequenceClassification.from_pretrained("KodySimpson/emotion-classifier-demo", device_map="auto") - Notebooks
- Google Colab
- Kaggle
|
Download README.md from KodySimpson/emotion-classifier-demo: direct link, hf CLI and curl.
- Browser
- Download file 1.83 kB
-
https://huggingface.co/KodySimpson/emotion-classifier-demo/resolve/main/README.md
- Command line
-
hf download hf://KodySimpson/emotion-classifier-demo/README.md
-
curl -L -o README.md https://huggingface.co/KodySimpson/emotion-classifier-demo/resolve/main/README.md
1.83 kB
metadata
library_name: transformers
license: mit
base_model: prajjwal1/bert-tiny
tags:
- generated_from_trainer
metrics:
- accuracy
- f1
model-index:
- name: emotion-classifier-demo
results: []
datasets:
- dair-ai/emotion
emotion-classifier-demo
This model is a fine-tuned version of prajjwal1/bert-tiny on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.3399
- Accuracy: 0.8915
- F1: 0.8918
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: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.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: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 |
|---|---|---|---|---|---|
| 1.0102 | 1.0 | 1000 | 0.7880 | 0.7795 | 0.7662 |
| 0.5796 | 2.0 | 2000 | 0.4849 | 0.868 | 0.8676 |
| 0.4245 | 3.0 | 3000 | 0.3851 | 0.8865 | 0.8866 |
| 0.3527 | 4.0 | 4000 | 0.3508 | 0.889 | 0.8889 |
| 0.3237 | 5.0 | 5000 | 0.3399 | 0.8915 | 0.8918 |
Framework versions
- Transformers 4.52.4
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.1