Skip to content
StackDecode
LLM Library
Dense decoderClosed (API only)Architecture animation

GPT-3

Showed few-shot learning: giving examples in the prompt can replace fine-tuning.

At a glance

Made by
OpenAI
Released
2020
Type
Dense decoder
Access
Closed (API only)
Parameters
175B
Context window
2,048 tokens
Attention
Multi-head causal attention (with sparse patterns)

How it works

GPT-3 scaled the GPT-2 design to 175 billion parameters and 300 billion training tokens, and showed that a large enough model can pick up a task from a few examples in its prompt.

Architecture, step by step

A token travels from text in to prediction out. The boxed layers repeat many times.

× N layersText inTokenizerEmbedding + positionNormCausal self-attentionAdd (residual)NormFeed-forward (MLP)Add (residual)Final normLM head (vocabulary scores)Softmax, then sample next token

Raw text enters the system, for example "The cat sat on the".

stage:
1/12
part:
Text in
1/12

The green dot is one token travelling through the model. The boxed section repeats for every layer.

What stands out

  • 175B dense parameters
  • In-context learning
  • Available only through an API

Keep in mind

Weights were never released.

Related models