Index Ai Academy
Glossary · Phase 5 · Transformers

Decoder

Also written: decoders, decoder-only

A transformer that reads left to right and predicts the next token; each token can only see the ones before it. GPT-style chat models are decoders.

Try it now

Communicate, then compute, with a skip connection around each. Stack dozens of these and you have a GPT.

Learn it properly

The transformer block · Attention, MLP, residuals and norms together. About 35 minutes.

Create a free account See what's in the lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write