gpt2
Test the whole generation capabilities here: https://transformer.huggingface.co/doc/gpt2-large
Params
140 M
Context
—
Downloads 30d
15.4 M
Likes
4,150
Download history
daily snapshots · 55 days
▲ 1.3 M in the last 30 days (9.4%)
15.6 M13.7 M
Aug 22Sep 1Sep 11Sep 20
15.6 M12.6 M
Jul 28Aug 15Sep 2Sep 20
Can you run it?
Estimated VRAM at 8K context unless noted. Pick your hardware to see the verdict per quantization.
| File | Quant | Size | Est. VRAM | Verdict on RTX 4090 · 24 GB |
|---|---|---|---|---|
| model.safetensors | f32 | 0.5 GB | 1.1 GB | ✅ Runs comfortably |
Estimate: file size × 1.1 + KV cache at 8K + 0.5 GB overhead. Not a benchmark — how we calculate this.
Run it
copy-paste, exact tags checked against the Hub$ curl -s https://aimodelscomparison.com/api/v1/models/gpt2
{
"hf_id": "openai-community/gpt2",
"params_b": 0.14,
"context_length": null,
"license": { "id": "mit", "commercial": "yes" },
"downloads_30d": 15362811,
"vram_estimates": [
{ "quant": "f32", "gb": 1.1 }
],
"updated_at": "2026-07-28T17:06:19Z"
}
Specifications
- Architecture
- GPT2LMHeadModel
- Parameters
- 140 M
- Tensor type
- F32
- Vocabulary
- 50,257
- Licence
- mit
- First seen on the Hub
- 2022-03-02
- Training datasets
- undisclosed
- Added to our catalog
- 2026-07-28
Compare with any text-generation model
Popular comparisons