From: openai-community <huggingface.co/openai-community>Newsgroups: alt.freeweights.textSubject:

gpt2-large

Date: 2026-11-15Commit: 32b71b1Signed: 2DC28CC7B26A283B ✓

Text generation model with 812M parameters. Onnx and safetensors weights, 26.3 GB in all. Published by openai-community under MIT.

812M params26.3GBgpt2-largeonnx safetensorspermissive
FactsParams812MSize26.3 GBFormatsonnx, safetensorsTasktext generationLicenseMITFrom sourcepermissive
$ fw get openai-community/gpt2-large
# manifest sha256 2c08522dc14e… · 26.3 GB · 29 files
$ fw verify ./gpt2-large openai-community/gpt2-large
From sourceHosted (signed)openai-community/gpt2-largeLast check: 2026-11-15 02:26 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Runs withAIBrixBentoMLCTranslate2ExLlamaV2ExLlamaV3exofastllmFlashInfergpu-unlockKTransformersLitServeLMCacheLMDeployLocalAImistral.rsMLC LLMMooncakeONNX Runtime GenAIOpenVINOSGLangText Generation WebUItinygradTransformers.jsTransformersTriton Inference ServerUltralyticsvLLMXinferenceFine-tune withAccelerateAlignment HandbookAxolotlColossal-AIDeepSpeedEasyR1FlashAttentionH2O LLM StudioJAXKerasLiger KernelLitGPTLLaMA-FactoryMegatron-LMms-swiftnanotronOLMo-coreOpenRLHFOumiPEFTPyTorch Lightningsd-scriptsSimpleTunerTorchTitantorchtuneTransformer EngineTRLUnslothverlConvert withAQLMAutoRoundCore ML ToolsExecuTorchGPTQModelLLM CompressormergekitNeural CompressorOliveONNXOptimum QuantoOptimumsafetensorsTensorRT Model OptimizertorchaoEvaluate withAutoevalsDeepEvalEvaluateHELMLightEvallm-evaluation-harnessOpenCompassOpikRagassimple-evalsSWE-benchTruLensWeaveScan withAgentDojoAI Fairness 360DeepTeamDetoxifyFairlearngarakGiskardGuardrailsMCP ScannerModelScanNeMo GuardrailspicklescanpromptfooWorks withAgent Development KitAG2Google AI Edge GalleryAiderany-llmAnythingLLMBAMLbrowser-useCAMELHugging Face Chat UIChatboxCherry StudioClineCodex CLICogneeCrewAIDeerFlowDSPyEnchantedGemini CLIGitHub MCP ServergooseGPT ResearcherGradioGraphitiGuidanceHollamaInstructorKilo CodeLangflowLangGraphLiteLLMLlamaIndexLLMLocalAGILoLLMs WebUIMCP Python SDKMem0MetaGPTNextChatOllama JavaScriptOllama PythonOpenAI Agents SDKopencodeOpenHandsotermOutlinesPage AssistPlaywright MCPPortkey AI GatewayPrivateGPTQwen CodeRWKV RunnerSemantic KernelsmolagentsStrands AgentsVaneXGrammar

Overview

Size
26.3 GB
Weights
3.25 GB (safetensors)
Parameters
812M
Formats
onnx, safetensors
Task
text generation
License
MIT (permissive)
Files
29, each with a sha256
Publisher
openai-community
Added
2026-11-15
Section
alt.freeweights.text
Lineage

Original release from the publisher.

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 02:26 UTCpassed

Model card

From the publisher at commit 32b71b1. Shown as plain text with links; images open at the publisher.

GPT-2 Large#

Table of Contents#

Model Details#

Model Description: GPT-2 Large is the 774M parameter version of GPT-2, a transformer-based language model created and released by OpenAI. The model is a pretrained model on English language using a causal language modeling (CLM) objective.

How to Get Started with the Model#

Use the code below to get started with the model. You can use this model directly with a pipeline for text generation. Since the generation relies on some randomness, we set a seed for reproducibility:

>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2-large')
>>> set_seed(42)
>>> generator("Hello, I'm a language model,", max_length=30, num_return_sequences=5)

[{'generated_text': "Hello, I'm a language model, I can do language modeling. In fact, this is one of the reasons I use languages. To get a"},
 {'generated_text': "Hello, I'm a language model, which in its turn implements a model of how a human can reason about a language, and is in turn an"},
 {'generated_text': "Hello, I'm a language model, why does this matter for you?\n\nWhen I hear new languages, I tend to start thinking in terms"},
 {'generated_text': "Hello, I'm a language model, a functional language...\n\nI don't need to know anything else. If I want to understand about how"},
 {'generated_text': "Hello, I'm a language model, not a toolbox.\n\nIn a nutshell, a language model is a set of attributes that define how"}]

Here is how to use this model to get the features of a given text in PyTorch:

from transformers import GPT2Tokenizer, GPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-large')
model = GPT2Model.from_pretrained('gpt2-large')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='pt')
output = model(**encoded_input)

and in TensorFlow:

from transformers import GPT2Tokenizer, TFGPT2Model
tokenizer = GPT2Tokenizer.from_pretrained('gpt2-large')
model = TFGPT2Model.from_pretrained('gpt2-large')
text = "Replace me by any text you'd like."
encoded_input = tokenizer(text, return_tensors='tf')
output = model(encoded_input)

Uses#

Direct Use#

In their model card about GPT-2, OpenAI wrote:

The primary intended users of these models are AI researchers and practitioners.

We primarily imagine these language models will be used by researchers to better understand the behaviors, capabilities, biases, and constraints of large-scale generative language models.

Downstream Use#

In their model card about GPT-2, OpenAI wrote:

Here are some secondary use cases we believe are likely:

  • Writing assistance: Grammar assistance, autocompletion (for normal prose or code)
  • Creative writing and art: exploring the generation of creative, fictional texts; aiding creation of poetry and other literary art.
  • Entertainment: Creation of games, chat bots, and amusing generations.
Misuse and Out-of-scope Use#

In their model card about GPT-2, OpenAI wrote:

Because large-scale language models like GPT-2 do not distinguish fact from fiction, we don’t support use-cases that require the generated text to be true.

Additionally, language models like GPT-2 reflect the biases inherent to the systems they were trained on, so we do not recommend that they be deployed into systems that interact with humans unless the deployers first carry out a study of biases relevant to the intended use-case. We found no statistically significant difference in gender, race, and religious bias probes between 774M and 1.5B, implying all versions of GPT-2 should be approached with similar levels of caution around use cases that are sensitive to biases around human attributes.

Risks, Limitations and Biases#

CONTENT WARNING: Readers should be aware this section contains content that is disturbing, offensive, and can propogate historical and current stereotypes.

Significant research has explored bias and fairness issues with language models (see, e.g., Sheng et al. (2021) and Bender et al. (2021)).

The training data used for this model has not been released as a dataset one can browse. We know it contains a lot of unfiltered content from the internet, which is far from neutral. Predictions generated by the model can include disturbing and harmful stereotypes across protected classes; identity characteristics; and sensitive, social, and occupational groups. For example:

>>> from transformers import pipeline, set_seed
>>> generator = pipeline('text-generation', model='gpt2-large')
>>> set_seed(42)
>>> generator("The man worked as a", max_length=10, num_return_sequences=5)

[{'generated_text': 'The man worked as a security guard in a hotel'},
 {'generated_text': 'The man worked as a salesman in Mexico and in'},
 {'generated_text': 'The man worked as a supervisor at the warehouse for'},
 {'generated_text': "The man worked as a cleaner for the store's"},
 {'generated_text': 'The man worked as a barbershop apprentice.'}]

>>> set_seed(42)
>>> generator("The woman worked as a", max_length=10, num_return_sequences=5)

[{'generated_text': 'The woman worked as a clerk at the bank.'},
 {'generated_text': 'The woman worked as a caregiver, and her'},
 {'generated_text': 'The woman worked as a customer service agent for a'},
 {'generated_text': 'The woman worked as a cleaner at the store,'},
 {'generated_text': 'The woman worked as a barista and was "'}]

This bias will also affect all fine-tuned versions of this model. Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model.

Training#

Training Data#

The OpenAI team wanted to train this model on a corpus as large as possible. To build it, they scraped all the web pages from outbound links on Reddit which received at least 3 karma. Note that all Wikipedia pages were removed from this dataset, so the model was not trained on any part of Wikipedia. The resulting dataset (called WebText) weights 40GB of texts but has not been publicly released. You can find a list of the top 1,000 domains present in WebText here.

Training Procedure#

The model is pretrained on a very large corpus of English data in a self-supervised fashion. This means it was pretrained on the raw texts only, with no humans labelling them in any way (which is why it can use lots of publicly available data) with an automatic process to generate inputs and labels from those texts. More precisely, it was trained to guess the next word in sentences.

More precisely, inputs are sequences of continuous text of a certain length and the targets are the same sequence, shifted one token (word or piece of word) to the right. The model uses internally a mask-mechanism to make sure the predictions for the token i only uses the inputs from 1 to i but not the future tokens.

This way, the model learns an inner representation of the English language that can then be used to extract features useful for downstream tasks.

The texts are tokenized using a byte-level version of Byte Pair Encoding (BPE) (for unicode characters) and a vocabulary size of 50,257. The inputs are sequences of 1024 consecutive tokens.

Evaluation#

The following evaluation information is extracted from the associated paper.

Testing Data, Factors and Metrics#

The model authors write in the associated paper that:

Since our model operates on a byte level and does not require lossy pre-processing or tokenization, we can evaluate it on any language model benchmark. Results on language modeling datasets are commonly reported in a quantity which is a scaled or ex- ponentiated version of the average negative log probability per canonical prediction unit - usually a character, a byte, or a word. We evaluate the same quantity by computing the log-probability of a dataset according to a WebText LM and dividing by the number of canonical units. For many of these datasets, WebText LMs would be tested significantly out- of-distribution, having to predict aggressively standardized text, tokenization artifacts such as disconnected punctuation and contractions, shuffled sentences, and even the string which is extremely rare in WebText - occurring only 26 times in 40 billion bytes. We report our main results...using invertible de-tokenizers which remove as many of these tokenization / pre-processing artifacts as possible. Since these de-tokenizers are invertible, we can still calculate the log probability of a dataset and they can be thought of as a simple form of domain adaptation.

Results#

The model achieves the following results without any fine-tuning (zero-shot):

DatasetLAMBADALAMBADACBT-CNCBT-NEWikiText2PTBenwiki8text8WikiText1031BW
(metric)(PPL)(ACC)(ACC)(ACC)(PPL)(PPL)(BPB)(BPC)(PPL)(PPL)
10.8760.1293.4588.019.9340.310.971.0222.0544.575

Environmental Impact#

Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).

  • Hardware Type: Unknown
  • Hours used: Unknown
  • Cloud Provider: Unknown
  • Compute Region: Unknown
  • Carbon Emitted: Unknown

Technical Specifications#

See the associated paper for details on the modeling architecture, objective, compute infrastructure, and training details.

Citation Information#

@article{radford2019language,
  title={Language models are unsupervised multitask learners},
  author={Radford, Alec and Wu, Jeffrey and Child, Rewon and Luan, David and Amodei, Dario and Sutskever, Ilya and others},
  journal={OpenAI blog},
  volume={1},
  number={8},
  pages={9},
  year={2019}
}

Model Card Authors#

This model card was written by the Hugging Face team.

Files

29 files · 26.3 GBWeights 3.25 GB (safetensors). Sizes and sha256 from the signed manifest.
Show all 29 files with their sha256
FileSizesha256
.gitattributes789 B961efef3eb444ea986c072bd2ad570c500d48a62b36c9d23c9612d0c2c199e10
README.md12.3 KB858e46e4722747071242fbc8f4cbdb97b55e54b7f8ee9d8c943d454ee37ba360
config.json666 B7fccdcfd6622055342a734c663ee0b61ff4fd697f42467595df0bf4448c8c170
flax_model.msgpack3.10 GB9aa10eb25a628041355dfb4803839c592573a33d4bcdc9300f2c50a170f04a42
generation_config.json124 Bb90eadacf585a743a30ea51e8b5c88b8d282a2a34dc0c7e556d0987cdbd68805
generation_config_for_text_generation.json165 Ba69e99c4a690c2015aaaeaef066516f1df9316317b3605869039fa896108efce
merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
model.safetensors3.25 GB5f47f3e12f91cd33b662ce7e433b6150ad5512b5884a2cee961b50e9c3bbebce
onnx/Constant_164_attr__value1.05 MBae525b5c247f1f7b8310c42b37be7aed79adadb1806bb109d1e14c8c896fc319
onnx/Constant_174_attr__value1.05 MBae525b5c247f1f7b8310c42b37be7aed79adadb1806bb109d1e14c8c896fc319
onnx/config.json886 B69aab9dc7c31e4e3a6c0aaacfc0ecefc29892a2ae7311c9cdb7b3b5fffdbf1b6
onnx/decoder_model.onnx2.65 MB6928b9ea9cefb712ddb36264ac8b572f7df0ee5d3d774f45154ca0cd381ccbc2
onnx/decoder_model.onnx_data3.35 GB37e3f7ff14aa5b4d2eb0362f3139744f0a327054d16806a8d8b5cbf021c8d990
onnx/decoder_model_merged.onnx5.29 MBfb52fbf6a99a73c98e2125a77d5932d4d0a3da5ef2cf6451cb6408a96e57a504
onnx/decoder_model_merged.onnx_data3.35 GB37e3f7ff14aa5b4d2eb0362f3139744f0a327054d16806a8d8b5cbf021c8d990
onnx/decoder_with_past_model.onnx2.67 MB620cad159131a999e2a5b73717246b0e1ceb85c644f0f4d4e7899907d133abed
onnx/decoder_with_past_model.onnx_data3.35 GB37e3f7ff14aa5b4d2eb0362f3139744f0a327054d16806a8d8b5cbf021c8d990
onnx/generation_config.json119 B067a873d1d1a67ffa7237a0ad0eebdb547d3f9209793c8aa476ec130815e3c8c
onnx/merges.txt456 KB1ce1664773c50f3e0cc8842619a93edc4624525b728b188a9e0be33b7726adc5
onnx/special_tokens_map.json99 B6f50ab5a5a509a1c309d6171f339b196a900dc9c99ad0408ff23bb615fdae7ad
onnx/tokenizer.json2.11 MBcda20b8ca044949aa07ac4078420c80d1a57139d5f9f33700e46fb2d891e7c66
onnx/tokenizer_config.json234 B551e26ec611d8d0c8edc3ef72e518a38418cb71f40de1347dd486a595e1557d7
onnx/vocab.json798 KB3ba3c3109ff33976c4bd966589c11ee14fcaa1f4c9e5e154c2ed7f99d80709e7
pytorch_model.bin3.25 GB8d3ade6b55ac440e926112267b9ec784097437c7300544b8beec562a411428ec
rust_model.ot3.50 GB4da5e3c0a8b10f3fecb775a1c312814d7f0b08699ca08b14f820801caf9ca42f
tf_model.h53.10 GB71e91ce5f1120392f874e9dd6037c6fd81e24ea945c957156e8e5b31f00c81fe
tokenizer.json1.36 MB8414cab924d8b9b33013f0d221c5862f365ee9be39c5c2bfae8a5a9e970478a6
tokenizer_config.json26 B5e04eb606e3a1583530a42e36c2a6b6615c86f34fe77e44d9ddeb43ff940931f
vocab.json1.04 MB196139668be63f3b5d6574427317ae82f612a97c5d1cdaf36ed2256dbf636783
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
32b71b1258 pinned now2026-11-15 02:26 UTC29 files · 26.3 GB

Use it

$ fw get openai-community/gpt2-large
# manifest sha256 2c08522dc14e… · 26.3 GB · 29 files
$ fw verify ./gpt2-large openai-community/gpt2-large
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/openai-community/gpt2-large.json --dir ./gpt2-large $ python3 fw.py verify ./gpt2-large ./openai-community__gpt2-large.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openai-community/gpt2-large --revision 32b71b12589c2f8d625668d2335a01cac3249519 --local-dir ./gpt2-large
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("openai-community/gpt2-large", revision="32b71b12589c2f8d625668d2335a01cac3249519") model = AutoModelForCausalLM.from_pretrained("openai-community/gpt2-large", revision="32b71b12589c2f8d625668d2335a01cac3249519", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve openai-community/gpt2-large --revision 32b71b12589c2f8d625668d2335a01cac3249519

License

Name
MIT License
Id
MIT
Class
Permissive
Redistribution
yes
Listing
Hosted (signed)
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
README.md
Text sha256
858e46e4722747071242fbc8f4cbdb97b55e54b7f8ee9d8c943d454ee37ba360
Terms gate
No extra terms beyond the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: openai-community <huggingface.co/openai-community>Newsgroups: alt.freeweights.textSubject: gpt2-largeDate: 2026-11-15Commit: 32b71b1Signed: 2DC28CC7B26A283B ✓
Upstream
openai-community/gpt2-large
Pinned commit
32b71b12589c2f8d625668d2335a01cac3249519
Manifest
gpt2-large.json · .minisig
Manifest sha256
2c08522dc14ecd3f3dc6bf5702c40635ac41cc7713cfb0bf2bd6c738fa1b6d23
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 02:26 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/openai-community/gpt2-large.json $ curl -O https://freeweights.allternit.com/manifests/openai-community/gpt2-large.json.minisig $ minisign -Vm gpt2-large.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

1 model in the catalog name this one as their parent.

Quantizations
1
Quantizations 1
Get it
Download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download openai-community/gpt2-large
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. gpt2-large.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of gpt2-large. Each has its own license check and page.

From: laion <huggingface.co/laion>Subject: a2-rl-e2egit_large-50-32B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-large-15-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_e2egit-v2-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_pymethods2test-large-80-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_exp_rpt_unitsyn-python-large-10-8B
From: laion <huggingface.co/laion>Subject: a3-rl-DCAgent_mix_h2_language_proportional-65-8B