Decoder-Only Architecture
Domain: LLM Concepts
π― Motivation
Modern LLMs like GPT use only the decoder part of the original transformer. Itβs designed for generating text token by token.
π Concrete Example
GPT-4, GLM, and Llama are decoder-only. They take your prompt and generate the next tokens one at a time. The encoder (used for understanding) is removed - the decoder alone is powerful enough.
π Analogy
A chef who only cooks (generates) but doesnβt need a separate taster (encoder). Modern LLMs found that the cooking (generation) process alone, at scale, produces great results.