All models

gpt_neo

EleutherAI's open GPT-2 and GPT-3 alternative, with local attention in every other layer.

Language · 1,101 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 (54 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
1.3B
Operations
1,101
Framework
PyTorch
Recurrent
No
Published
2021
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
m5233
Graph hash
57776fb9fa77c227b7f470b6a6cd3cb57757a9e3ba8f7381fbf8b0325556d7a7
Skeleton hash
73925a298e983cff1c637332966e2bfb966dc8196b2d15413131a1b31ff0bf80
Architecture hash
466f4cb680017282e7983cc4838258dc6ce370ba611a989babd627d982ffce84
Diagram SHA-256
05c2faa14ae7d2cef92973d42178e0d860def36746d656653d821f850b63ad71
TorchLens version
2.36.0
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-Neo is an open-source alternative to the GPT-2 and GPT-3 models, originally built with Mesh TensorFlow for TPUs. Its one architectural twist is local attention in every other layer, used for efficiency.

The original models were trained on the Pile, a diverse dataset consisting of 22 smaller high-quality datasets, and all the original checkpoints sit under the EleutherAI organization. Because GPT-Neo uses absolute position embeddings, inputs should be padded on the right.

The library's examples run the 1.3B and 2.7B checkpoints; the member traced here is the causal language model built from a default configuration.

Key idea. A GPT-style decoder with local attention in every other layer, trained openly on the Pile.

  • gpt-neo
  • gpt neo
  • gptneo
  • eleutherai
  • the pile
  • open-source gpt-3
  • gpt-2 alternative
  • local attention
  • text generation
  • gpt-neo-1.3b
  • gpt-neo-2.7b
  • mesh tensorflow

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