QUESTION 12 OF 15

How does a decoder-only transformer generate text?

Reveal the answer and explore the explanation.

12
MediumHigh priority

How does a decoder-only transformer generate text?

Answer
Answer

Uses autoregressive transformer blocks to predict next tokens with causal attention.

Practical example

Generate a response conditioned on a preceding prompt.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As