Which model family generates text one token at a time and is used by most chat LLMs?
- Exam domain
- LLM fundamentals
- Difficulty
- Easy
- In this mock
- 6 questions on this domainPractise this domain
Why D is the answer
Decoder-only models
Decoder-only Transformers predict the next token from everything before it. Most chat and instruction models, including Llama, use this design.
Remember: Chat models are decoder-only.
In detail
- Decoder-only: generation.
- Encoder-only: understanding.
Every option, checked
Knowing why each wrong option fails is how you rule it out on exam day.
A. Encoder-only modelsWrong
Encoder-only models build representations for tasks like classification.
B. Encoder-decoder models onlyWrong
Encoder-decoder models suit translation and summarization, but most chat models are decoder-only.
C. Convolutional image modelsWrong
Image models are not text generators.
D. Decoder-only modelsRight
Chat models are decoder-only.
Use case
An illustrative scenario, not a real incident.
Illustrative: a team picks a decoder-only chat model for drafting and an embedding model for search.
See it in different ways
flowchart TD
Q{"What does the task produce?"}
Q -->|"A label"| A0["Encoder-only"]
Q -->|"New text from a prompt"| A1["Decoder-only"]
Q -->|"A translation"| A2["Encoder-decoder"]How to read this chart
- At "What does the task produce?": if "A label", go to "Encoder-only"; if "New text from a prompt", go to "Decoder-only"; if "A translation", go to "Encoder-decoder".
flowchart LR S0["Read the prompt"] --> S1["Predict a token"] --> S2["Append it"] --> S3["Repeat until stop"]
How to read this chart
- Read it in order: Read the prompt, then Predict a token, then Append it, then Repeat until stop.