Skip to content
AI360Xpert
Glossary
Definition

GPT

A decoder-only, causally-masked transformer trained on one objective: predict the next token, everywhere, in any text.

GPT stacks causally-masked transformer blocks, so every position can attend to itself and everything before it, never anything after. It trains on a single unsupervised objective, next-token prediction, which scales to nearly unlimited unlabeled text and turns out to implicitly teach grammar, facts, and reasoning patterns along the way.

At inference, the same forward pass runs one step at a time: predict a token, append it, feed the sequence back in, repeat.