All models

openai-gpt

A Transformer decoder language model trained to predict the next word.

Language · 586 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (34 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Parameters
116.5M
Operations
586
Framework
PyTorch
Recurrent
No
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m7862
Graph hash
110c16bfe863e94a921c7bcf1d6c69fe25a1f525adce5216a531d1b78dde0df7
Skeleton hash
015146ef4563416aa9935acd4b665d41c9a35688b964db3d5e8092918e4b9301
Architecture hash
e4ccfe6ae4f6fa73925da26eb3282938e24a305b47ffe5874b1fb6d3281215e0
Diagram SHA-256
a44d48828102ed637e94191d7b165ac9e8d153ce356411bcd26c7ee11670117d
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

transformers.AutoModelForCausalLM.from_config()

What it is

GPT, short for Generative Pre-trained Transformer, is a model focused on learning text representations and transferring them to tasks. It trains the Transformer decoder to predict the next word and is then fine-tuned on labeled data.

It is suited to natural language understanding tasks such as textual entailment, question answering, semantic similarity and document classification. GPT uses absolute position embeddings, so inputs should be padded on the right.

Key idea. GPT trains a Transformer decoder to predict the next word and then fine-tunes it on labeled data.

  • gpt
  • openai gpt
  • openai-gpt
  • generative pre-trained transformer
  • causal language model
  • text generation
  • next word prediction
  • transformer decoder

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.