
opt
Language388 ops125.2M params
Open-source decoder-only transformer suite for causal language modeling, 125M to 175B parameters.
Language · 388 operations Checked
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.
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
How this diagram was made
transformers.OPTForCausalLM()
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.
AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.