Encoder-only (BERT): bidirectional attention, produces contextual representations; used for classification, embeddings, and search.
Decoder-only (GPT, Llama, Claude): causal attention and next-token prediction; the dominant design for text generation and chat.
Encoder-decoder (T5, original transformer): the encoder reads the input, the decoder generates the output while attending to it through cross-attention; used for translation and summarization.
Loading…