Update README.md
Browse files
README.md
CHANGED
|
@@ -26,7 +26,7 @@ This model classifies emotions in English text. It outputs the probability of fi
|
|
| 26 |
|
| 27 |
### Model Sources
|
| 28 |
|
| 29 |
-
- **Repository**: [https://huggingface.co/
|
| 30 |
|
| 31 |
---
|
| 32 |
|
|
@@ -57,8 +57,8 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
|
| 57 |
import torch
|
| 58 |
|
| 59 |
# Load the model and tokenizer
|
| 60 |
-
model = AutoModelForSequenceClassification.from_pretrained("
|
| 61 |
-
tokenizer = AutoTokenizer.from_pretrained("
|
| 62 |
|
| 63 |
# Input text
|
| 64 |
text = "I just got a promotion and I feel amazing!"
|
|
@@ -101,13 +101,6 @@ The model was trained on the **SemEval 2025** dataset, which consists of English
|
|
| 101 |
|
| 102 |
- **Labels**: anger, fear, joy, sadness, surprise
|
| 103 |
|
| 104 |
-
### Training Procedure
|
| 105 |
-
|
| 106 |
-
- **Training regime**: Mixed precision (FP16) training using the `transformers` library.
|
| 107 |
-
- **Optimizer**: AdamW
|
| 108 |
-
- **Epochs**: 4
|
| 109 |
-
- **Batch size**: 1
|
| 110 |
-
|
| 111 |
---
|
| 112 |
|
| 113 |
## Evaluation
|
|
@@ -130,17 +123,17 @@ If you use this model, please cite the following:
|
|
| 130 |
|
| 131 |
```
|
| 132 |
@misc{llama-emotion-classifier,
|
| 133 |
-
author = {
|
| 134 |
title = {LLaMA-3.2B Fine-tuned for Emotion Classification},
|
| 135 |
year = {2025},
|
| 136 |
publisher = {Hugging Face},
|
| 137 |
-
url = {https://huggingface.co/
|
| 138 |
}
|
| 139 |
```
|
| 140 |
|
| 141 |
**APA:**
|
| 142 |
|
| 143 |
-
Adrián Maldonado Robles. (2025). *LLaMA-3.2B Fine-tuned for Emotion Classification*. Hugging Face. Available at: https://huggingface.co/
|
| 144 |
|
| 145 |
---
|
| 146 |
|
|
|
|
| 26 |
|
| 27 |
### Model Sources
|
| 28 |
|
| 29 |
+
- **Repository**: [https://huggingface.co/gsi-upm/llama-3b-emotion-classifier]
|
| 30 |
|
| 31 |
---
|
| 32 |
|
|
|
|
| 57 |
import torch
|
| 58 |
|
| 59 |
# Load the model and tokenizer
|
| 60 |
+
model = AutoModelForSequenceClassification.from_pretrained("gsi-upm/llama-3b-emotion-classifier", num_labels=5)
|
| 61 |
+
tokenizer = AutoTokenizer.from_pretrained("gsi-upm/llama-3b-emotion-classifier")
|
| 62 |
|
| 63 |
# Input text
|
| 64 |
text = "I just got a promotion and I feel amazing!"
|
|
|
|
| 101 |
|
| 102 |
- **Labels**: anger, fear, joy, sadness, surprise
|
| 103 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
---
|
| 105 |
|
| 106 |
## Evaluation
|
|
|
|
| 123 |
|
| 124 |
```
|
| 125 |
@misc{llama-emotion-classifier,
|
| 126 |
+
author = {GSI-UPM},
|
| 127 |
title = {LLaMA-3.2B Fine-tuned for Emotion Classification},
|
| 128 |
year = {2025},
|
| 129 |
publisher = {Hugging Face},
|
| 130 |
+
url = {https://huggingface.co/gsi-upm/llama-3b-emotion-classifier}
|
| 131 |
}
|
| 132 |
```
|
| 133 |
|
| 134 |
**APA:**
|
| 135 |
|
| 136 |
+
Adrián Maldonado Robles. (2025). *LLaMA-3.2B Fine-tuned for Emotion Classification*. Hugging Face. Available at: https://huggingface.co/gsi-upm/llama-3b-emotion-classifier
|
| 137 |
|
| 138 |
---
|
| 139 |
|