openai-community/gpt2
openai-community/gpt2 is a openai-community record on this register. The Hugging Face model API lists the pipeline tag as text-generation. The safetensors index gives an exact parameter count of 137,022,720. The listed licence is mit. The Hub repository was created on 2 Mar 2022, which is the release date this register uses.
Primary source: the Hugging Face model card for openai-community/gpt2. Fields below come from that card, the Hub model API, and the repository’s own config.json when those files exist. A field we cannot source is omitted rather than guessed.
| Organisation | openai-community |
|---|---|
| ReleasedRepo creation date on Hugging Face | 2 Mar 2022 |
| Last modified | 19 Feb 2024 |
| ParametersExact, from the safetensors index | 137M 137,022,720 |
| Licence | mit |
| Pipeline / taskpipeline_tag on the Hugging Face model API | text-generation |
| File formats | safetensors, ONNX |
| Librarylibrary_name on the Hugging Face model API | transformers |
| Architecture | gpt2 |
| Vocabulary | 50,257 |
| DownloadsAt last check | 16.8m |
| Likes | 4.3k |
| Gated | No |
No context length is shown because max_position_embeddings was not readable from config.json.
How to run
Safetensors weights are on the Hugging Face repository. The parameter count on this page came from that index.
The Hugging Face model API lists the library as transformers.
Load it from huggingface.co/openai-community/gpt2. This page does not add install steps that the Hub files do not state.
Agent capabilities
This model publishes no chat template, so there is nothing to inspect. That is not evidence of missing support — many base models and some releases simply ship without one.
Questions this record can answer
- When was gpt2 released?
- The Hugging Face repository was created on 2 Mar 2022, which is the date this register uses.
- How many parameters does gpt2 have?
- The safetensors index gives 137,022,720 parameters, shown here as 137M. That figure is exact, not rounded.
- What licence is gpt2 under?
- The Hub card lists mit.
- Is gpt2 gated?
- No. The Hugging Face model API does not mark this repository as gated.
Where each field came from
- Hugging Face model API — releasedAt, lastModified, downloads, likes, task, license, gated, parameters, libraryName, formats. Checked 18 Oct 2026.
- config.json — vocabSize, architecture. Checked 18 Oct 2026.
First recorded 24 Sept 2026, last checked 18 Oct 2026. This record is compiled automatically from the sources above. Where a field is blank, we could not source it and have not guessed. Canonical repository: huggingface.co/openai-community/gpt2.