gpt2-medium
Model Description: GPT-2 Medium is the 355M 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.
Params
380 M
Context
—
Downloads 30d
572 K
Likes
205
Download history
daily snapshots · 10 days593 K565 K
Jul 28Jul 31Aug 3Aug 6
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 | 1.5 GB | 2.2 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-medium
{
"hf_id": "openai-community/gpt2-medium",
"params_b": 0.38,
"context_length": null,
"license": { "id": "mit", "commercial": "yes" },
"downloads_30d": 571519,
"vram_estimates": [
{ "quant": "f32", "gb": 2.2 }
],
"updated_at": "2026-07-28T18:04:48Z"
}
Specifications
- Architecture
- GPT2LMHeadModel
- Parameters
- 380 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
Sponsored · GPU cloud
Not enough VRAM?
Spin up a 24 GB L4 instance in 40 seconds. $0.44/hr.