Skip to content
Weights Not Walls
Menu

openai-community

gpt2

Reviewed
Size
137M parameterscounted from the safetensors header on the Hub
Licence
unknown, MIT LicenseOur reading, check the licence: You can use, change and redistribute the model for any purpose, including commercially. Keep the copyright notice and the licence text with copies. You do not have to share your changes.
On the Hub since
2 Mar 2022the date the repo was created
Context length
Not known
Kind
Base model (no base model declared on the Hub)GPT2LMHeadModel
On Hugging Face
openai-community/gpt234.3M downloads in the last 30 days, 4.0k likes

Scores

No independent scores for this model in Epoch AI's data. A score is only shown here when Epoch's name for a model matches this repo with certainty; an uncertain match is left out rather than guessed.

Claimed by the maker Claimed

The model card has no claimed scores in a machine-readable form (the card's model-index), so none are shown. The maker may give scores in the card text: read the card.

Other views, which we link to and do not copy: look this model up on Artificial Analysis and the Arena leaderboard.

Run it yourself

file sizes read from the Hub 19 Nov 2026

Memory needed = weights + context cache + 0.50 GB for the runtime. Context cache at 8k tokens: 0.28 GB, worked out from the model's config (openai-community/gpt2), at 16-bit precision. Choose a machine above to see a verdict for each format. Method

GGUF for llama.cpp, Ollama, LM Studio and others

PrunaAI/gpt2-GGUF-smashed (converted by PrunaAI), 2.6k downloads. Sizes are the real files on the Hub, all parts added up.

FormatSizeMemory neededGet it
Q3_K_S0.08 GBfile size0.87 GB0.08 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q3_K_S
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q3_K_S
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q3_K_S.gguf" --local-dir gpt2-GGUF-smashed
Q3_K_M0.09 GBfile size0.87 GB0.09 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q3_K_M
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q3_K_M
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q3_K_M.gguf" --local-dir gpt2-GGUF-smashed
Q3_K_L0.10 GBfile size0.88 GB0.10 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q3_K_L
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q3_K_L
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q3_K_L.gguf" --local-dir gpt2-GGUF-smashed
Q4_00.10 GBfile size0.88 GB0.10 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q4_0
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q4_0
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q4_0.gguf" --local-dir gpt2-GGUF-smashed
Q4_K_S0.10 GBfile size0.88 GB0.10 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q4_K_S
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q4_K_S
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q4_K_S.gguf" --local-dir gpt2-GGUF-smashed
Q4_K_M0.11 GBfile size0.89 GB0.11 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q4_K_M
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q4_K_M
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q4_K_M.gguf" --local-dir gpt2-GGUF-smashed
Q4_10.11 GBfile size0.89 GB0.11 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q4_1
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q4_1
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q4_1.gguf" --local-dir gpt2-GGUF-smashed
Q5_00.11 GBfile size0.89 GB0.11 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q5_0
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q5_0
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q5_0.gguf" --local-dir gpt2-GGUF-smashed
Q5_K_S0.11 GBfile size0.89 GB0.11 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q5_K_S
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q5_K_S
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q5_K_S.gguf" --local-dir gpt2-GGUF-smashed
Q5_K_M0.12 GBfile size0.90 GB0.12 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q5_K_M
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q5_K_M
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q5_K_M.gguf" --local-dir gpt2-GGUF-smashed
Q5_10.12 GBfile size0.90 GB0.12 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q5_1
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q5_1
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q5_1.gguf" --local-dir gpt2-GGUF-smashed
Q6_K0.13 GBfile size0.91 GB0.13 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q6_K
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q6_K
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q6_K.gguf" --local-dir gpt2-GGUF-smashed
Q8_00.16 GBfile size0.95 GB0.16 + 0.28 + 0.50
Commands
llama.cpp
llama-server -hf PrunaAI/gpt2-GGUF-smashed:Q8_0
Ollama
ollama run hf.co/PrunaAI/gpt2-GGUF-smashed:Q8_0
Download
hf download PrunaAI/gpt2-GGUF-smashed --include "gpt2.Q8_0.gguf" --local-dir gpt2-GGUF-smashed

MLX for Apple silicon

FormatSizeMemory neededRepo
MLX 4bitjesusoctavioas/gpt2-mlx-4Bit0.07 GBfile size0.85 GB0.07 + 0.28 + 0.50Download page
MLX 8bitjesusoctavioas/gpt2-mlx-8Bit0.13 GBfile size0.91 GB0.13 + 0.28 + 0.50Download page

Original weights size from the safetensors header, for vLLM, SGLang, Transformers

FormatSizeMemory neededRepo
F32original weights0.51 GBfile size1.3 GB0.51 + 0.28 + 0.50
hf download openai-community/gpt2 --local-dir gpt2
Other conversions (9; sizes not read)

The Hub tags 100 or more quantised repos as conversions of this model; we read the most downloaded and show the maker's own first.

Run it by API

Hugging Face Inference Providers, fetched 19 Nov 2026, 13:58 UTC

No provider on Hugging Face Inference Providers serves this model (as of 19 Nov 2026, 13:58 UTC). Other hosts may; we only list what the router reports.

Not built yet: one key for every open model, with BlockRun, and our own tested-quality score per provider. Until then, precision and measured speed are the best guide to a provider here.

Fine-tunes of this model

from our snapshot of the Hub

Repos that declare this model as their base, most downloaded first. Listing is not a recommendation; unreviewed ones have not been checked.

Planned for this page Not built yet

Try it in private chat
A link to Solana AI's confidential chat for the models it serves. This model is not listed as served there.
Fine-tune it
Fine-tuning a few base models from this page and publishing the result here.
Creators and earnings
Pages for people who publish fine-tunes and adapters of this model, and what they earn.
Fund and bounties
Bounties for new open models, paid from a public fund. How the fund will work.
Contribute compute
How to give compute to open model work, with Akash.

Model data from the Hugging Face Hub 19 Nov 2026, 13:43 UTC. The repo. Found a mistake on this page? Tell us.