Pretrained models: BERT & GPT
Step 8 of 10 in NLP · Concept · Medium
Pretrain on huge text (BERT fills in blanks, GPT predicts the next token), then reuse. Changed NLP from task-specific models to fine-tuning one model.
Build it
Probe BERT and GPT-2
Use BERT for fill-in-the-blank and GPT-2 for continuation on 10 prompts each.
Done when: Examples where each excels and fails.
Case study: BERT in Google Search (2019)
- BERT helped understand about 1 in 10 English queries.
- Prepositions like 'to' and 'for' finally changed results.
- Serving needed specialized hardware (TPUs) for latency.
Resources
- Wikipedia: BERT (language model) Article
- The Illustrated Transformer Article
- Attention Is All You Need Paper
- Karpathy: nanoGPT Article
Earn this star
On the map, you log what you built. Finish the step and its star lights.
Open this step on the map