Papers › OPT: Open Pre-trained Transformer Language Models

OPT: Open Pre-trained Transformer Language Models

2 May 2022arXiv:2205.01068archive 2025-07-28

Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, Todor Mihaylov, Myle Ott, Sam Shleifer, Kurt Shuster, Daniel Simig, Punit Singh Koura, Anjali Sridhar, Tianlu Wang, Luke Zettlemoyer

Large language models, which are often trained for hundreds of thousands of compute days, have shown remarkable capabilities for zero- and few-shot learning. Given their computational cost, these models are difficult to replicate without significant capital. For the few that are available through APIs, no access is granted to the full model weights, making them difficult to study. We present Open Pre-trained Transformers (OPT), a suite of decoder-only pre-trained transformers ranging from 125M to 175B parameters, which we aim to fully and responsibly share with interested researchers. We show that OPT-175B is comparable to GPT-3, while requiring only 1/7th the carbon footprint to develop. We are also releasing our logbook detailing the infrastructure challenges we faced, along with code for experimenting with all of the released models.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2205.01068")

Code

Syntology Ran 6 of 24 code samples harvested from 5 repositories linked to this paper; 18 have no recorded run. Of those that ran: 6 ran with no contract checked.

By repository: official repository: 12 samples from 1 repository, 3 ran; community (archive-listed): 12 samples from 4 repositories, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

facebookresearch/metaseq officialmentioned in paperpytorchMIT report
ecolab-postech/owq mentioned on GitHubpytorch report
liangyuwang/zo2 mentioned on GitHubpytorch report
mthcom/hscore-dataset-pruning mentioned on GitHubpytorchApache-2.0 report
pku-alignment/safe-rlhf mentioned on GitHubpytorchApache-2.0 report
xvyaward/owq mentioned on GitHubpytorch report
znhy1024/protoco mentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

24 samples harvested; 6 ran; 0 honoured the contract we drafted; 18 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

6ran
18unverified

Licence: 16 of the 24 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 5 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

find_offsets facebookresearch/metaseq/metaseq/file_chunker_utils.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 840d9070e4fd8ba6 · report
url_to_filename facebookresearch/metaseq/metaseq/file_utils.py official repository ran fingerprinted MIT recorded; this copy not marked cleared · pointer only · 9418b43048e4e4ec · report
with_incremental_state facebookresearch/metaseq/metaseq/incremental_decoding_utils.py official repository ran MIT recorded; this copy not marked cleared · pointer only · 1dcaa0202f989ada · report
cached_path facebookresearch/metaseq/metaseq/file_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · fb80a6deb3bee2c5 · report
checkpoint_paths facebookresearch/metaseq/metaseq/checkpoint_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · c570c23ad25ca1ab · report
gelu facebookresearch/metaseq/metaseq/modules/activation_functions.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 04b65716e8591ed3 · report
gelu_back facebookresearch/metaseq/metaseq/modules/activation_functions.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 81272627e6280106 · report
get_next_token facebookresearch/metaseq/metaseq/hub_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 70652fe4ded4564b · report
load_archive_file facebookresearch/metaseq/metaseq/file_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 0d372aa1e290a613 · report
relu_squared facebookresearch/metaseq/metaseq/modules/activation_functions.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 684b43f1cd6f7e56 · report
setup_vocab_and_merges facebookresearch/metaseq/metaseq/hub_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · 54309a919eca36b7 · report
tensorize_input facebookresearch/metaseq/metaseq/hub_utils.py official repository unverified MIT recorded; this copy not marked cleared · pointer only · e7743da916a7857a · report
LoRALinear znhy1024/protoco/models/lora.py community (archive-listed) ran fingerprinted no licence file found · pointer only · e32e446737bb12b7 · report
QuantLinear ecolab-postech/owq/owq/quant.py community (archive-listed) ran · metamorphic tier: deterministic no licence file found · pointer only · be9074477838726e · report
QuantMatMul ecolab-postech/owq/owq/quant.py community (archive-listed) ran no licence file found · pointer only · f5d0291b559e1a6a · report
Quantizer xvyaward/owq/owq/quant.py community (archive-listed) unverified no licence file found · pointer only · 352d10b844458470 · report
add_to_rewards mthcom/hscore-dataset-pruning/create_scores.py community (archive-listed) unverified Apache-2.0 (permissive) · 00c32fbe5c2af279 · report
flatten_outputs mthcom/hscore-dataset-pruning/create_scores.py community (archive-listed) unverified Apache-2.0 (permissive) · 8ce19774aeb3fda0 · report
flatten_outputs mthcom/hscore-dataset-pruning/create_scores_race.py community (archive-listed) unverified Apache-2.0 (permissive) · 84c5f4182ed8c57d · report
flatten_outputs mthcom/hscore-dataset-pruning/create_scores_squad.py community (archive-listed) unverified Apache-2.0 (permissive) · be1104875f8a36ce · report
load_labels mthcom/hscore-dataset-pruning/create_scores.py community (archive-listed) unverified Apache-2.0 (permissive) · 559cff9b7463d528 · report
load_labels mthcom/hscore-dataset-pruning/create_scores_race.py community (archive-listed) unverified Apache-2.0 (permissive) · 9387fa891879e614 · report
postprocess_qa_predictions mthcom/hscore-dataset-pruning/utils_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · 6eff2c131107723d · report
postprocess_qa_predictions_with_beam_search mthcom/hscore-dataset-pruning/utils_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · 8c51f5aaf2f659e2 · report

Tasks

DecoderHate Speech DetectionLanguage ModellingStereotypical Bias Analysis

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Hate Speech Detection Ethos Binary OPT-175B (few-shot) F1-score 0.759 #4 of 12 Archive leaderboard report
Hate Speech Detection Ethos Binary OPT-175B (one-shot) F1-score 0.713 #6 of 12 Archive leaderboard report
Hate Speech Detection Ethos Binary OPT-175B (zero-shot) F1-score 0.667 #7 of 12 Archive leaderboard report
Hate Speech Detection Ethos Binary Davinci (zero-shot) F1-score 0.628 #10 of 12 Archive leaderboard report
Hate Speech Detection Ethos Binary Davinci (one-shot) F1-score 0.616 #11 of 12 Archive leaderboard report
Hate Speech Detection Ethos Binary Davinci (few-shot) F1-score 0.354 #12 of 12 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Age 64.4 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Disability 76.7 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Gender 62.6 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Nationality 61.6 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Overall 67.2 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Physical Appearance 74.6 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Race/Color 64.7 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Religion 62.6 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Sexual Orientation 76.2 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs GPT-3 Socioeconomic status 73.8 #2 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Age 67.8 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Disability 76.7 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Gender 65.7 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Nationality 62.9 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Overall 69.5 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Physical Appearance 76.2 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Race/Color 68.6 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Religion 65.7 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Sexual Orientation 78.6 #3 of 4 Archive leaderboard report
Stereotypical Bias Analysis CrowS-Pairs OPT-175B Socioeconomic status 76.2 #3 of 4 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Introduced by this paper: OPT

AdamAttentionAttention DropoutBPECosine AnnealingDense ConnectionsDropoutGPT-3Layer NormalizationLinear LayerLinear Warmup With Cosine AnnealingMulti-Head AttentionOPTResidual ConnectionSoftmaxWeight Decay

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections