Skip to main content

Review — GPT Transformer computation

Back to the lesson · Learning path plan

What to remember

  • The model builds input states from token IDs and incorporates position according to the architecture. The blocks refine one state per position.
  • Self-attention combines information across positions. The MLP transforms the state at each position independently. Residual connections and normalization accompany these transformations.
  • The output head projects final states into vocabulary logits. The decoding rule acts after this computation.

Recall from memory

Which part of a GPT block directly lets one position use another position’s content?

Show the answer

Self-attention. The block’s MLP processes positions independently with shared parameters.

Language · Français · English