Text Classification
Transformers
PyTorch
distilbert
Generated from Trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use richardchai/distilbert-emotion with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use richardchai/distilbert-emotion with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="richardchai/distilbert-emotion")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("richardchai/distilbert-emotion") model = AutoModelForSequenceClassification.from_pretrained("richardchai/distilbert-emotion") - Notebooks
- Google Colab
- Kaggle
Commit ·
bd24ac2
1
Parent(s): 4b225ef
Training completed! - 3 epochs
Browse files
README.md
CHANGED
|
@@ -5,9 +5,24 @@ tags:
|
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
| 7 |
- emotion
|
|
|
|
|
|
|
| 8 |
model-index:
|
| 9 |
- name: distilbert-emotion
|
| 10 |
-
results:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
@@ -16,6 +31,9 @@ should probably proofread and complete it, then remove this comment. -->
|
|
| 16 |
# distilbert-emotion
|
| 17 |
|
| 18 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
## Model description
|
| 21 |
|
|
@@ -40,18 +58,20 @@ The following hyperparameters were used during training:
|
|
| 40 |
- seed: 42
|
| 41 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 42 |
- lr_scheduler_type: linear
|
| 43 |
-
- num_epochs:
|
| 44 |
|
| 45 |
### Training results
|
| 46 |
|
| 47 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 48 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 49 |
-
| No log | 1.0 | 250 | 0.
|
|
|
|
|
|
|
| 50 |
|
| 51 |
|
| 52 |
### Framework versions
|
| 53 |
|
| 54 |
- Transformers 4.34.1
|
| 55 |
-
- Pytorch 2.
|
| 56 |
- Datasets 2.14.5
|
| 57 |
- Tokenizers 0.14.1
|
|
|
|
| 5 |
- generated_from_trainer
|
| 6 |
datasets:
|
| 7 |
- emotion
|
| 8 |
+
metrics:
|
| 9 |
+
- accuracy
|
| 10 |
model-index:
|
| 11 |
- name: distilbert-emotion
|
| 12 |
+
results:
|
| 13 |
+
- task:
|
| 14 |
+
name: Text Classification
|
| 15 |
+
type: text-classification
|
| 16 |
+
dataset:
|
| 17 |
+
name: emotion
|
| 18 |
+
type: emotion
|
| 19 |
+
config: split
|
| 20 |
+
split: validation
|
| 21 |
+
args: split
|
| 22 |
+
metrics:
|
| 23 |
+
- name: Accuracy
|
| 24 |
+
type: accuracy
|
| 25 |
+
value: 0.9385
|
| 26 |
---
|
| 27 |
|
| 28 |
<!-- This model card has been generated automatically according to the information the Trainer had access to. You
|
|
|
|
| 31 |
# distilbert-emotion
|
| 32 |
|
| 33 |
This model is a fine-tuned version of [distilbert-base-uncased](https://huggingface.co/distilbert-base-uncased) on the emotion dataset.
|
| 34 |
+
It achieves the following results on the evaluation set:
|
| 35 |
+
- Loss: 0.1333
|
| 36 |
+
- Accuracy: 0.9385
|
| 37 |
|
| 38 |
## Model description
|
| 39 |
|
|
|
|
| 58 |
- seed: 42
|
| 59 |
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
|
| 60 |
- lr_scheduler_type: linear
|
| 61 |
+
- num_epochs: 3
|
| 62 |
|
| 63 |
### Training results
|
| 64 |
|
| 65 |
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|
| 66 |
|:-------------:|:-----:|:----:|:---------------:|:--------:|
|
| 67 |
+
| No log | 1.0 | 250 | 0.1954 | 0.926 |
|
| 68 |
+
| 0.3494 | 2.0 | 500 | 0.1472 | 0.937 |
|
| 69 |
+
| 0.3494 | 3.0 | 750 | 0.1333 | 0.9385 |
|
| 70 |
|
| 71 |
|
| 72 |
### Framework versions
|
| 73 |
|
| 74 |
- Transformers 4.34.1
|
| 75 |
+
- Pytorch 2.1.0+cpu
|
| 76 |
- Datasets 2.14.5
|
| 77 |
- Tokenizers 0.14.1
|