Study
Transformers · GPT
GPT as a decoder-only Transformer trained to predict the next token; generating with GPT-2, measuring perplexity, and seeing why causal masking makes this possible.
- A decoder-only model is trained on one simple objective: predict the next token given everything before it.
- Perplexity is the exponential of the average next-token loss; lower means the text looks more expected to the model.