All models

GPTQ

Open-source decoder-only transformer suite for causal language modeling, 125M to 175B parameters.

Language · 388 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 (31 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

Family
OPT
Parameters
125.2M
Operations
388
Framework
PyTorch
Recurrent
No
Published
2022
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
m13567
Graph hash
baeda429a36b76394c6356e30b61f43f18b577a75ed7dc833908db8be2884b11
Skeleton hash
e7ecde50b9e34049f82eb5caaa6a629652795d475e5e7d4269e1afff325afd0f
Architecture hash
2ecc77c952401163bed0a2eda4905924e667b605204e511c02f3032ce637904a
Diagram SHA-256
3e38d9e099cc6bf448a6ce26746c61d292b551fb6863742cf1645db67474075f
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.OPTForCausalLM()

What it is

About this model's family

OPT is a suite of open-source decoder-only pre-trained transformers for causal language modeling, with parameter counts from 125M to 175B. The models were released to enable responsible and reproducible research at scale. The documentation states that OPT-175B is comparable in performance to GPT-3 with only 1/7th the carbon footprint.

Two practical notes from the library docs. OPT adds an EOS token, </s>, to the beginning of every prompt. The documentation also shows the same model loaded with its weights quantized to 8 bits through bitsandbytes, since quantization reduces the memory burden of large models by representing the weights in a lower precision.

Key idea. An open suite of decoder-only pre-trained transformers, from 125M to 175B parameters, released so that research at scale can be responsible and reproducible.

  • OPT
  • OPT-125m
  • OPT-350m
  • OPT-13b
  • OPT-175B
  • facebook/opt
  • GPTQ
  • causal language model
  • decoder-only transformer
  • text generation

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