Natural Language Processing
Collection
12 items
•
Updated
•
1
This model is a fine-tuned version of bert-tiny on amazon-polarity dataset. It achieves the following results on the evaluation set:
TinyBERT is 7.5 times smaller and 9.4 times faster on inference compared to its teacher BERT model (while DistilBERT is 40% smaller and 1.6 times faster than BERT). This model was trained using the entire dataset (3.6M of samples) in constrast to the distilbert model which was trained on only 10% of the dataset.
While this model may not be as accurate as the distilbert model, its performance should be enough for most use cases.
from transformers import pipeline
# Create the pipeline
sentiment_classifier = pipeline('text-classification', model='AdamCodd/tinybert-sentiment-amazon')
# Now you can use the pipeline to classify emotions
result = sentiment_classifier("This product doesn't fit me at all.")
print(result)
#[{'label': 'negative', 'score': 0.9969743490219116}]
More information needed
The following hyperparameters were used during training:
If you want to support me, you can here.
Base model
prajjwal1/bert-tiny