whatmodel.sh / GPT-2 Small (124M)

GPT-2 Small (124M) is an open-weights language model from OpenAI, released February 2019. Its published size is 0.124B parameters and a 1k-token context window. Licence: mit.

Catalogue identity notes

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

-12.8±1.5#742 of 743 LLMsfrom 35 benchmark results across 9 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of GPT-2 Small (124M), out of 897 with a score, then more from OpenAI.

#modelscorewhereRAMreleased
893OPT-125M Meta-3±1local~1.8GB2022-05
894GPT-Neo 125M EleutherAI-3±2local~2.1GB2021-03
895GPT-2 Medium (355M) OpenAI-5±1local~1.8GB2019-05
896GPT-2 Small (124M) OpenAI-13±2local~1.6GB2019-02
897Pythia 70M EleutherAI-13±2local~1.6GB2023-02
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▃▁▃▅█▆▅█▄▁▁▁ #438 of 440 * · 0.1% of its score · 1 test

Beats GPT-2 Large (774M), GPT-2 Medium (355M) here, though they rank higher overall.

testresultvs the others in its rundifficultycountswhy
GSM8K0.4% ✎▅·▂█·······▂ beats 2/9medium · avg 62%▇ 0.1%sharp · too hard for it · noisy
other tests21 not in a task · 99% of its score
testresultvs the others in its rundifficultycountswhy
OpenBookQA +216.4% ✎▅▁▁▁▂▂▃█▃▁▃▁ beats 13/107very hard · avg 26%▇▇▇▇▇▇▇▇▇▇ 25%too hard for it · several runs
ARC Challenge +220.1% ✎▄▁▁▂▁▄█▇▃▂▃▂ beats 5/140very hard · avg 27%▇▇▇▇▇▇▇ 18%sharp · too hard for it · several runs
COPA +261.0% ✎▁·▁▁▃▅▅█▆▂▁▁ beats 5/67very easy · avg 97%▇▇▇▇▇▇ 14%several runs
ARC Easy +242.9% ✎▁▃▂▄▆█▅▃▁··▁ beats 6/100very easy · avg 90%▇▇▇▇ 10%blunt · several runs
Story Cloze Test +260.0% ✎▃▃▃▂▅█▅▂▁··▂ beats 3/50easy · avg 91%▇▇▇▇ 10%blunt · several runs
HellaSwag +128.6% ✎▃▁▁▂▂▂▄▆█▇▄▂ beats 1/135easy · avg 87%▇▇▇▇ 8.8%too hard for it · several runs
PROST physical reasoning (zero-shot, 10-concept macro average)23.6% ✎█···██·█···█ beats 0/4easy · avg 86%▇ 3.3%too hard for it
COPEN concept identification in context (zero-shot, full prompt)31.1% ✎▃···▃▃·▃·▃·█ beats 1/7easy · avg 81%▇ 3.0%too hard for it
13 more tests
testresultvs the others in its rundifficultycountswhy
Social IQA39.7% ✎▁·▁██▄▅▁▂▃▇▁ beats 3/59medium · avg 72%▇ 2.3%blunt · too hard for it
PIQA62.9% ✎▁▃▁▂▂▃▅█▅▃▁▁ beats 2/123easy · avg 89%▇ 2.2%blunt
BoolQ49.4% ✎▃····▁▂█▆▅▆▄ beats 0/103easy · avg 91%▇ 1.4%too hard for it · noisy
COPEN conceptual similarity judgment (zero-shot, full prompt)7.9% ✎▄···█···██·▄ beats 2/7hard · avg 22%▇ 0.5%blunt · too hard for it
StrategyQA0.0% ✎█········▁▃▁ beats 2/9hard · avg 62%▇ 0.3%too hard for it · noisy
SVAMP0.3% ✎█·▆▂▄▂▂····▂ beats 2/12easy · avg 70%▇ 0.2%sharp · too hard for it
Open PT-LLM Leaderboard average (9 Portuguese tasks)23.3% ✎▃▁▁▁▁▁▁▁▂█▅▁ beats 0/276medium · avg 72%▇ 0.1%too hard for it · noisy
CommonsenseQA +220.2% ✎█····▁·····▁ beats 2/9easy · avg 76%▇ 0.1%sharp · too hard for it · several runs
EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy22.8% ✎▃▁▁▁▁▁▁▂▄█▄▃ beats 0/146easy · avg 82%▇ 0.1%too hard for it · noisy
TruthfulQA generation, % true (human-judged)35.4% ✎██····█·██·█ beats 2/5medium · avg 42%▇ 0.1%blunt · at its level
COPEN conceptual property judgment (zero-shot, full prompt)51.5% ✎█·······▃··▁ beats 6/7very hard · avg 52%▇ 0.0%blunt · too hard for it · noisy
EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy24.7% ✎▃·▁▁▂▁▂▅█▇▄▁ beats 4/100medium · avg 67%▇ 0.0%sharp · too hard for it · noisy
AQuA-RAT17.3% ✎█·····▁·▁··▁ beats 2/9medium · avg 54%▇ 0.0%sharp · too hard for it · noisy

$ 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 Small (124M) · needs 1.6 GB memory, 0.11 GB download · from huggingface.co/mradermacher
    chat in the terminal
    llama cli -hf mradermacher/gpt2-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf mradermacher/gpt2-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 Small (124M) · needs 1.6 GB memory, 0.11 GB download · from huggingface.co/mradermacher

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/mradermacher/gpt2-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 Small (124M) · needs 1.6 GB memory, 0.11 GB download · from huggingface.co/mradermacher
    chat in the terminal
    ollama run hf.co/mradermacher/gpt2-GGUF:Q4_K_M

MLX (Mac)

version

  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 Small (124M) · needs 1.6 GB memory, 0.08 GB download, Mac only · from huggingface.co/jesusoctavioas
    chat in the terminal
    mlx_lm.chat --model jesusoctavioas/gpt2-mlx-4Bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model jesusoctavioas/gpt2-mlx-4Bit

Other ways to run it

  1. Run it as published · needs 2.1 GB memory, 0.55 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')('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… 41%, Surface Form Competition (Hol… 26%, CASE: Commonsense-Augmented S… 24% and 6 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

$ 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