Dense decoder transformers
The GPT design: one stack of transformer layers predicting the next token. 308 models on EveryLLM so far.
The dense decoder transformer is the design behind GPT and most chatbots. It is a single stack of identical transformer layers that reads the tokens so far and predicts the next one, with a mask that stops each position from looking ahead. Dense means every parameter is used for every token, unlike in a mixture of experts. GPT-3, PaLM, Llama 3, Chinchilla, Gemma, Phi and OLMo are dense decoders.
Inside each layer
Each layer has two parts. Self-attention lets every token weigh every earlier token and gather what it needs; a feed-forward network then transforms each token's vector on its own. The transformer was introduced by Google researchers in the June 2017 paper Attention Is All You Need, for translation, and OpenAI's GPT-1 (2018) kept only its decoder half. Llama 3.1 405B, released in July 2024, stacks 126 such layers.
Why it won
A decoder trains on any text without labels, because the next token is always the answer to predict, and it scales smoothly: scaling laws published by OpenAI in 2020 and DeepMind in 2022 showed the error falling predictably with more parameters, data and compute. Its weak point is cost. Attention grows with the square of the context length, and every parameter must be read for every token, which is why mixtures of experts became popular.
Famous dense decoder models
Still to be written: OLMo (language model).
Further reading
Nothing matches those filters yet. Take one off, or check back: new pages are written every day.