Text Classification
Transformers
PyTorch
distilbert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use Seher99/Emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Seher99/Emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Seher99/Emotion")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Seher99/Emotion") model = AutoModelForSequenceClassification.from_pretrained("Seher99/Emotion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md
Browse files123---license: mit---123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475---license: apache-2.0tags:- generated_from_trainerdatasets:- emotionmetrics:- accuracymodel-index:- name: distilbert-emotionresults:- task:name: Text Classificationtype: text-classificationdataset:name: emotiontype: emotionconfig: splitsplit: validationargs: splitmetrics:- name: Accuracytype: accuracyvalue: 0.939---<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. --># distilbert-emotionThis model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.It achieves the following results on the evaluation set:- Loss: 0.1375- Accuracy: 0.939## Model descriptionMore information needed## Intended uses & limitationsMore information needed## Training and evaluation dataMore information needed## Training procedure### Training hyperparametersThe following hyperparameters were used during training:- learning_rate: 5e-05- train_batch_size: 64- eval_batch_size: 64- seed: 42- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08- lr_scheduler_type: linear- num_epochs: 2### Training results| Training Loss | Epoch | Step | Validation Loss | Accuracy ||:-------------:|:-----:|:----:|:---------------:|:--------:|| No log | 1.0 | 250 | 0.1948 | 0.924 || 0.3384 | 2.0 | 500 | 0.1375 | 0.939 |### Framework versions- Transformers 4.28.0- Pytorch 2.1.1+cu121- Datasets 2.16.1- Tokenizers 0.13.3
README.md+73-1