Skip to content

Glossary: Transformers Basics

Decoder-only model

Also written: decoder, decoder-only

A transformer made of causal-attention blocks that predicts the next token, like GPT and Llama. Most general-purpose models today are decoder-only and handle other tasks through prompts.

Where the book teaches it

Related terms

Causal maskEncoder-only modelEncoder-decoderPrompt