Lesson 8 of 12 · 2 min
GPT vs BERT vs T5
| Model | Architecture | Training | Use |
|---|---|---|---|
| BERT | Encoder only | Masked LM | Classification, NER, Q&A |
| GPT | Decoder only | Next token prediction | Text generation |
| T5 | Encoder-Decoder | Text-to-text | Translation, summarisation, Q&A |
| Flan-T5 | T5 fine-tuned on instructions | 1800+ tasks | Zero-shot task following |
