Index Ai Academy
Glossary · Phase 5 · Transformers

GPT

Generative pre-trained transformer: a stack of transformer blocks trained to predict the next token.

Try it now

Set it to 50,257 / 1,024 / 768 / 12 and you get GPT-2 small's roughly 124 million. Width costs the most, because it's squared.

Learn it properly

The GPT architecture · A stack of decoder blocks that predicts the next token. 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