AI Glossary

Decoder

What does “Decoder” mean?

Decoder: Within a transformer, the decoder generates output one token at a time, with each step able to see only what came before it. Decoder-only designs power most chatbots and text generators, including the GPT family and Llama.

Decoder visual guide: Within a transformer, the decoder generates output one token at a time, with each step able to see only what came before it. Decoder-only designs power most chatbots and text generators, including the GPT family and Llama.
Visual guide Open full size (new tab)

What is an example of “Decoder”?

When a chatbot writes a reply word by word, it is running a decoder that repeatedly predicts the next token from everything written so far.