Encoder, decoder and hybrid model architectures
easy 6 minModel architecture determines which positions can interact and how information survives generation.
Remember it
The few things worth knowing cold, and how to make them stick.
Memory hook
Model architecture determines which positions can interact and how information survives generation. A bidirectional encoder can read both sides of an observed token and output a representation for classification or retrieval. A causal decoder predicts the next token using only its available prefix. An encoder–decoder processes a source once and uses a separate decoder with cross-attention to generate a target sequence.