whatmodel.sh / GPT-2 XL (1.5B)

GPT-2 XL (1.5B) is an open-weights language model from OpenAI, released November 2019. Its published size is 1.558B parameters and a 1k-token context window. Licence: mit.

Catalogue identity notes

OpenAI's released GPT-2 checkpoint as hosted at openai-community/gpt2-xl (formerly the root-namespace 'gpt2-xl' repo). Base (pretrained) model; parameter count as corrected in openai/gpt-2 README.

6.6±0.9#733 of 743 LLMsfrom 52 benchmark results across 15 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of GPT-2 XL (1.5B), out of 897 with a score, then more from OpenAI.

#modelscorewhereRAMreleased
882GPT-3 ada (API base model) OpenAI8±1comparison only2020-06
883BLOOM 1.1B BigScience7±1local~2.5GB2022-07
884GPT-2 XL (1.5B) OpenAI7±1local~2.7GB2019-11
885GPT-3 text-babbage-001 OpenAI4±2comparison only2022-01
886OPT-350M Meta1±1local~2.2GB2022-05
more from OpenAI
2GPT-6 Astra OpenAI84±1api $20.00/M2026-09
5GPT-6.1 Sol OpenAI84±1api $4.00/M2026-09
6GPT-6.1 Terra OpenAI83±1api $2.00/M2026-10

see all LLMs · find the ones that fit your machine

$ what it's good at

math▁▁▃▅█▆▅█▄▁▁▁ #392 of 440 * · 0.7% of its score · 1 test

Beats Yi 34B Chat, Llama 3 8B Instruct, Command R (03-2024) here, though they rank higher overall. Trails GPT-Neo 125M here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
MathQA23.6% ✎▃·▃▃█▅··▃·▃▃ beats 3/10hard · avg 34%▇ 0.7%blunt · too hard for it
other tests24 not in a task · 99% of its score
testresultvs the others in its rundifficultycountswhy
ARC Challenge +425.0% ✎▅····▃▃···▅█ beats 0/8very hard · avg 27%▇▇▇▇▇▇▇▇ 20%sharp · too hard for it · several runs
HellaSwag +440.0% ✎▃▃▃··▅····▃█ beats 0/8easy · avg 87%▇▇▇▇▇▇ 15%several runs
OpenBookQA +322.4% ✎█······▂·▆·▂ beats 0/8very hard · avg 26%▇▇▇▇▇ 13%too hard for it · several runs
ARC Easy +458.3% ✎▅·▃▃··▃··▃·█ beats 1/8easy · avg 87%▇▇▇ 8.6%blunt · at its level · several runs
Story Cloze Test +367.6% ✎▃▃▃▃▅█▅▂▁··▂ beats 15/50easy · avg 91%▇▇ 6.2%blunt · at its level · several runs
PROST physical reasoning (zero-shot, 10-concept macro average)30.1% ✎█···██·█···█ beats 4/4easy · avg 86%▇▇ 4.9%too hard for it
COPA +169.0% ✎▁·▁▁▁▅▅█▆▂▁▁ beats 23/67very easy · avg 97%▇▇ 4.8%at its level · several runs
PIQA +370.5% ✎▄▄··▄·▄·▄·██ beats 1/8easy · avg 88%▇▇ 4.6%blunt · at its level · several runs
16 more tests
testresultvs the others in its rundifficultycountswhy
COPEN concept identification in context (zero-shot, full prompt)37.0% ✎▃···▃▃·▃·▃·█ beats 4/7easy · avg 81%▇ 3.2%typical
BoolQ +161.8% ✎▄█▄···▄··█▄▄ beats 1/8easy · avg 88%▇ 3.1%several runs
WinoGrande +158.3% ✎█··█···█▄▄·▄ beats 1/8easy · avg 88%▇ 3.0%several runs
Social IQA +139.4% ✎█▄····█▄▄··▄ beats 0/7medium · avg 72%▇ 2.5%blunt · several runs
LAMBADA (OpenAI version), last-word accuracy51.2% ✎█·▄··█··█··▄ beats 0/7very easy · avg 88%▇ 2.5%blunt · at its level
TriviaQA11.8% ✎▁▁▂▂▄▄▃▆▅█▅▂ beats 14/80easy · avg 77%▇ 1.9%small run
12-dataset text classification, 4-shot in-context learning (macro-F1 average)41.8% ✎▂▃··▂·█···▂▂ beats 1/8easy · avg 79%▇ 1.6%blunt · at its level
SciQ83.2% ✎▂·▁▂▂▃▆▃▇▆█▂ beats 9/51very easy · avg 98%▇ 1.2%blunt · at its level · small run
PubMedQA +160.4% ✎▂·▂▆·▄▂▄▄▂█▂ beats 4/17medium · avg 74%▇ 0.8%blunt · at its level · several runs
MedMCQA30.9% ✎▂▂··▄▄▂▂·▄██ beats 3/17medium · avg 63%▇ 0.5%too hard for it
MedQA (USMLE, 4 options)28.0% ✎▁▁··▄▁▁··▄▃█ beats 4/17medium · avg 71%▇ 0.4%sharp · too hard for it
COPEN conceptual similarity judgment (zero-shot, full prompt)11.7% ✎▄···█···██·▄ beats 6/7hard · avg 22%▇ 0.3%blunt · too hard for it
Open PT-LLM Leaderboard average (9 Portuguese tasks)25.9% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 23/276medium · avg 72%▇ 0.3%too hard for it · noisy
TruthfulQA generation, % true (human-judged)29.3% ✎██····█·██·█ beats 1/5medium · avg 42%▇ 0.0%blunt · at its level
COPEN conceptual property judgment (zero-shot, full prompt)47.1% ✎█·······▁··▁ beats 3/7very hard · avg 52%▇ 0.0%blunt · too hard for it · noisy
CommonsenseQA +138.6% ✎█·····▂▃▃▂▄▄ beats 18/38easy · avg 88%▇ 0.0%sharp · too hard for it · noisy · several runs

$ where to run it

Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.

llama.cpp · recommended

version

  1. Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.
    macOS / Linux
    curl -LsSf https://llama.app/install.sh | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run GPT-2 XL (1.5B) · needs 2.7 GB memory, 1.19 GB download · from huggingface.co/mradermacher
    chat in the terminal
    llama cli -hf mradermacher/gpt2-xl-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf mradermacher/gpt2-xl-GGUF:Q4_K_M

LM Studio

version

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run GPT-2 XL (1.5B) · needs 2.7 GB memory, 1.19 GB download · from huggingface.co/mradermacher

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/mradermacher/gpt2-xl-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run GPT-2 XL (1.5B) · needs 2.7 GB memory, 1.19 GB download · from huggingface.co/mradermacher
    chat in the terminal
    ollama run hf.co/mradermacher/gpt2-xl-GGUF:Q4_K_M

MLX (Mac)

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run GPT-2 XL (1.5B) · needs 4.8 GB memory, 3.12 GB download, Mac only · from huggingface.co/warshanks
    chat in the terminal
    mlx_lm.chat --model warshanks/gpt2-xl-bf16
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model warshanks/gpt2-xl-bf16

Other ways to run it

  1. Run it as published · needs 8.3 GB memory, 6.43 GB download · from huggingface.co/openai-community
    uv run --with torch --with 'transformers<5' python -c "from transformers import pipeline; print(pipeline('text-generation', model='openai-community/gpt2-xl')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"

Model repository and documentation: huggingface.co/openai-community ↗

$ how the score was worked out · Coherence boosting: When your… 25%, Surface Form Competition (Hol… 20%, Textbooks Are All You Need II… 11% and 12 more

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

sourceresultsshare of the scorelicence
Coherence boosting: When your pretrained language model is not paying enough attention — authors' own runs9CC BY 4.0
Surface Form Competition (Holtzman et al., EMNLP 2021) — authors' own GPT-2 runs7CC BY 4.0
Textbooks Are All You Need II: phi-1.5 technical report — authors' own runs8CC BY 4.0
CASE: Commonsense-Augmented Score with an Expanded Answer Space — authors' own runs4CC BY 4.0
EleutherAI GPT-J-6B model card — EleutherAI lm-evaluation-harness runs4Apache-2.0
Tunable Soft Prompts are Messengers in Federated Learning — authors' own runs5CC BY 4.0
PROST (Aroca-Ouellette et al., Findings of ACL-IJCNLP 2021) - authors' own zero-shot runs1CC BY 4.0
COPEN — EMNLP 2022 original zero-shot evaluations3CC BY 4.0
RankGen: Improving Text Generation with Large Ranking Models — authors' own runs2CC BY 4.0
Adaptation with Self-Evaluation to Improve Selective Prediction in LLMs — authors' own runs1CC BY 4.0
Generative Calibration for In-context Learning — authors' own runs1CC BY 4.0
Open Medical-LLM Leaderboard results (HF dataset openlifescienceai/results)3Apache-2.0
EleutherAI GPT-Neo 2.7B model card — EleutherAI evaluation-harness runs2MIT
Open Portuguese LLM Leaderboard (archived)1Apache-2.0
TruthfulQA: Measuring How Models Mimic Human Falsehoods — authors' own runs1CC BY 4.0
prior · pull toward the middle
weighted average= 6.6
$ published speed measurements · 1

Reference results for the hardware, engine and settings below. They aren't verified speeds of the downloads above or predictions for your machine.

Apple M2 Pro (16-core GPU), 16 GBQ4_K_M74.96 tok/sllama.cpp · whatmodel bench.py 3.2.0: fixed prompt, up to 256 generated tokens, temperature 0, median of 3 runs in shuffled order after 1 discarded warm-up
note

Community submission (issue #4), reviewed 2026-10-12.

source ↗

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json