OpenAI/Dense

OpenAIGPT-2 Medium 345M

Medium GPT-2 variant. Useful for learning and experimentation, not production tasks.

chat
0.345B
Parameters
1K
Context length
6
Benchmarks
6
Quantizations
1.0M
HF downloads
Architecture
Dense
Released
2019-02-14
Layers
24
KV Heads
16
Head Dim
64
Family
gpt2

Quantization Options

QuantBitsVRAMQuality
Q4_K_M4.890.7 GBgood
Q5_K_S5.570.7 GBgood
Q5_K_M5.70.7 GBgood
Q6_K6.560.8 GBexcellent
Q8_08.50.9 GBlossless
FP16161.2 GBlossless

Select your GPU above to see speed estimates and compatibility for each quantization.

READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN GPT-2 MEDIUM 345M NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (6)

IFEval22.1
MUSR6.2
BBH2.7
MMLU-PRO2.0
GPQA1.7
MATH0.8

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run gpt2:0.345b-q4_K_M

Tag may need adjustment — check ollama.com/library/gpt2 for available tags.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

Find the best GPU for GPT-2 Medium 345M

Build Hardware for GPT-2 Medium 345M

Medium GPT-2 variant. Useful for learning and experimentation, not production tasks.

▸ SPEC SHEET

GPT-2 Medium 345M0.345B Dense.

▸ SPECIFICATIONS
PARAMETERS
0.345B
ARCHITECTURE
Dense Transformer
CONTEXT LENGTH
1K tokens
CAPABILITIES
chat
RELEASE DATE
2019-02-14
PROVIDER
OpenAI
FAMILY
gpt2
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q4_K_M4.890.7 GB94%
Q5_K_S5.570.7 GB96%
Q5_K_M5.70.7 GB96%
Q6_K6.560.8 GB97%
Q8_08.50.9 GB100%
FP16161.2 GB100%
§ 01BENCHMARK SCORES
MMLU-PRO2.0
MATH0.8
IFEval22.1
BBH2.7
GPQA1.7
MUSR6.2