tensorfolk

Transformer architecture

Almost every modern LLM is a decoder-only transformer: a stack of self-attention and feed-forward blocks that predicts the next token from all previous tokens.

Stable: this rarely changes. Reviewed 17 Oct 2026.

Key ideas

Common mistakes

Go deeper