Model Pipeline - Hugging Face fine-tuning
This pipeline shows how a pre-trained language model from Hugging Face is fine-tuned on a new text dataset to improve its performance on a specific task, like sentiment analysis or question answering.
This pipeline shows how a pre-trained language model from Hugging Face is fine-tuned on a new text dataset to improve its performance on a specific task, like sentiment analysis or question answering.
Loss
0.7 |*
0.6 |**
0.5 |***
0.4 |****
0.3 |*****
0.2 |
+--------
1 2 3 Epochs| Epoch | Loss ↓ | Accuracy ↑ | Observation |
|---|---|---|---|
| 1 | 0.65 | 0.70 | Model starts learning, loss decreases from initial high value |
| 2 | 0.42 | 0.82 | Loss decreases further, accuracy improves significantly |
| 3 | 0.30 | 0.88 | Model converges with low loss and high accuracy |