gpt2-xl
- Model Details - How To Get Started With the Model - Uses - Risks, Limitations and Biases - Training - Evaluation - Environmental Impact - Technical Specifications - Citation Information - Model Card Authors
Params
1.6 B
Context
—
Downloads 30d
160 K
Likes
380
Download history
daily snapshots · 10 days165 K160 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 | 6.4 GB | 7.8 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-xl
{
"hf_id": "openai-community/gpt2-xl",
"params_b": 1.61,
"context_length": null,
"license": { "id": "mit", "commercial": "yes" },
"downloads_30d": 159722,
"vram_estimates": [
{ "quant": "f32", "gb": 7.8 }
],
"updated_at": "2026-07-28T18:08:52Z"
}
Specifications
- Architecture
- GPT2LMHeadModel
- Parameters
- 1.6 B
- 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.