bhadresh-savani / distilbert-base-uncased-emotion

huggingface.co
Total runs: 37.1K
24-hour runs: 0
7-day runs: 9.6K
30-day runs: -20.0K
Model's Last Updated: August 14 2024
text-classification

Introduction of distilbert-base-uncased-emotion

Model Details of distilbert-base-uncased-emotion

Distilbert-base-uncased-emotion

Model description:

Distilbert is created with knowledge distillation during the pre-training phase which reduces the size of a BERT model by 40%, while retaining 97% of its language understanding. It's smaller, faster than Bert and any other Bert-based model.

Distilbert-base-uncased finetuned on the emotion dataset using HuggingFace Trainer with below Hyperparameters

 learning rate 2e-5, 
 batch size 64,
 num_train_epochs=8,
Model Performance Comparision on Emotion Dataset from Twitter:
Model Accuracy F1 Score Test Sample per Second
Distilbert-base-uncased-emotion 93.8 93.79 398.69
Bert-base-uncased-emotion 94.05 94.06 190.152
Roberta-base-emotion 93.95 93.97 195.639
Albert-base-v2-emotion 93.6 93.65 182.794
How to Use the model:
from transformers import pipeline
classifier = pipeline("text-classification",model='bhadresh-savani/distilbert-base-uncased-emotion', return_all_scores=True)
prediction = classifier("I love using transformers. The best part is wide range of support and its easy to use", )
print(prediction)

"""
Output:
[[
{'label': 'sadness', 'score': 0.0006792712374590337}, 
{'label': 'joy', 'score': 0.9959300756454468}, 
{'label': 'love', 'score': 0.0009452480007894337}, 
{'label': 'anger', 'score': 0.0018055217806249857}, 
{'label': 'fear', 'score': 0.00041110432357527316}, 
{'label': 'surprise', 'score': 0.0002288572577526793}
]]
"""
Dataset:

Twitter-Sentiment-Analysis .

Training procedure

Colab Notebook

Eval results
{
'test_accuracy': 0.938,
 'test_f1': 0.937932884041714,
 'test_loss': 0.1472451239824295,
 'test_mem_cpu_alloc_delta': 0,
 'test_mem_cpu_peaked_delta': 0,
 'test_mem_gpu_alloc_delta': 0,
 'test_mem_gpu_peaked_delta': 163454464,
 'test_runtime': 5.0164,
 'test_samples_per_second': 398.69
 }
Reference:

Runs of bhadresh-savani distilbert-base-uncased-emotion on huggingface.co

37.1K
Total runs
0
24-hour runs
4.4K
3-day runs
9.6K
7-day runs
-20.0K
30-day runs

More Information About distilbert-base-uncased-emotion huggingface.co Model

More distilbert-base-uncased-emotion license Visit here:

https://choosealicense.com/licenses/apache-2.0

distilbert-base-uncased-emotion huggingface.co

distilbert-base-uncased-emotion huggingface.co is an AI model on huggingface.co that provides distilbert-base-uncased-emotion's model effect (), which can be used instantly with this bhadresh-savani distilbert-base-uncased-emotion model. huggingface.co supports a free trial of the distilbert-base-uncased-emotion model, and also provides paid use of the distilbert-base-uncased-emotion. Support call distilbert-base-uncased-emotion model through api, including Node.js, Python, http.

distilbert-base-uncased-emotion huggingface.co Url

https://huggingface.co/bhadresh-savani/distilbert-base-uncased-emotion

bhadresh-savani distilbert-base-uncased-emotion online free

distilbert-base-uncased-emotion huggingface.co is an online trial and call api platform, which integrates distilbert-base-uncased-emotion's modeling effects, including api services, and provides a free online trial of distilbert-base-uncased-emotion, you can try distilbert-base-uncased-emotion online for free by clicking the link below.

bhadresh-savani distilbert-base-uncased-emotion online free url in huggingface.co:

https://huggingface.co/bhadresh-savani/distilbert-base-uncased-emotion

distilbert-base-uncased-emotion install

distilbert-base-uncased-emotion is an open source model from GitHub that offers a free installation service, and any user can find distilbert-base-uncased-emotion on GitHub to install. At the same time, huggingface.co provides the effect of distilbert-base-uncased-emotion install, users can directly use distilbert-base-uncased-emotion installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

distilbert-base-uncased-emotion install url in huggingface.co:

https://huggingface.co/bhadresh-savani/distilbert-base-uncased-emotion

Url of distilbert-base-uncased-emotion

distilbert-base-uncased-emotion huggingface.co Url

Provider of distilbert-base-uncased-emotion huggingface.co

bhadresh-savani
ORGANIZATIONS

Other API from bhadresh-savani