Text Classification
Transformers
TensorBoard
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use sfarrukhm/distilbert-base-uncased-finetuned-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sfarrukhm/distilbert-base-uncased-finetuned-emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="sfarrukhm/distilbert-base-uncased-finetuned-emotion")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("sfarrukhm/distilbert-base-uncased-finetuned-emotion") model = AutoModelForSequenceClassification.from_pretrained("sfarrukhm/distilbert-base-uncased-finetuned-emotion", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Muhammad Farrukh Mehmood commited on
Training completed!
Browse files
README.md
CHANGED
|
@@ -17,9 +17,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
-
- Loss: 0.
|
| 21 |
-
- Accuracy: 0.
|
| 22 |
-
- F1 Score: 0.
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
@@ -44,22 +44,18 @@ The following hyperparameters were used during training:
|
|
| 44 |
- seed: 42
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
-
- num_epochs:
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
|
| 53 |
-
|
|
| 54 |
-
| 0.
|
| 55 |
-
| 0.
|
| 56 |
-
| 0.
|
| 57 |
-
| 0.
|
| 58 |
-
| 0.
|
| 59 |
-
| 0.0888 | 7.0 | 1750 | 0.3017 | 0.903 | 0.9028 |
|
| 60 |
-
| 0.0739 | 8.0 | 2000 | 0.2829 | 0.9095 | 0.9096 |
|
| 61 |
-
| 0.0611 | 9.0 | 2250 | 0.3062 | 0.91 | 0.9102 |
|
| 62 |
-
| 0.0506 | 10.0 | 2500 | 0.3068 | 0.9085 | 0.9086 |
|
| 63 |
|
| 64 |
|
| 65 |
### Framework versions
|
|
|
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on an unknown dataset.
|
| 19 |
It achieves the following results on the evaluation set:
|
| 20 |
+
- Loss: 0.2905
|
| 21 |
+
- Accuracy: 0.896
|
| 22 |
+
- F1 Score: 0.8962
|
| 23 |
|
| 24 |
## Model description
|
| 25 |
|
|
|
|
| 44 |
- seed: 42
|
| 45 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 46 |
- lr_scheduler_type: linear
|
| 47 |
+
- num_epochs: 6
|
| 48 |
|
| 49 |
### Training results
|
| 50 |
|
| 51 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Score |
|
| 52 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|:--------:|
|
| 53 |
+
| 1.5116 | 1.0 | 250 | 1.2809 | 0.5315 | 0.4734 |
|
| 54 |
+
| 0.8731 | 2.0 | 500 | 0.5533 | 0.834 | 0.8273 |
|
| 55 |
+
| 0.4323 | 3.0 | 750 | 0.3940 | 0.863 | 0.8623 |
|
| 56 |
+
| 0.2737 | 4.0 | 1000 | 0.3179 | 0.89 | 0.8900 |
|
| 57 |
+
| 0.2098 | 5.0 | 1250 | 0.2963 | 0.8935 | 0.8932 |
|
| 58 |
+
| 0.1734 | 6.0 | 1500 | 0.2905 | 0.896 | 0.8962 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
|
| 60 |
|
| 61 |
### Framework versions
|
runs/Jul13_07-56-26_6d536e928978/events.out.tfevents.1720857423.6d536e928978.571.0
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a339776d739c577e63ff80f1167bf605ab0daf6ad45b72c1312539d72d6fbde7
|
| 3 |
+
size 8900
|