whatmodel.sh / GPT-2 Small (124M)
GPT-2 Small (124M)
↗ share
+ contribute
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.
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.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 893 | -3±1 | local | |||
| 894 | -3±2 | local | |||
| 895 | -5±1 | local | |||
| 896 | -13±2 | local | |||
| 897 | -13±2 | local | |||
| more from OpenAI | |||||
| 2 | 84±1 | api $20.00/M | |||
| 5 | 84±1 | api $4.00/M | |||
| 6 | 83±1 | api $2.00/M | |||
$ 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.
other tests21 not in a task · 99% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| OpenBookQA +2 | 16.4% ✎ | ▅▁▁▁▂▂▃█▃▁▃▁ beats 13/107 | 25% |
| ARC Challenge +2 | 20.1% ✎ | ▄▁▁▂▁▄█▇▃▂▃▂ beats 5/140 | 18% |
| COPA +2 | 61.0% ✎ | ▁·▁▁▃▅▅█▆▂▁▁ beats 5/67 | 14% |
| ARC Easy +2 | 42.9% ✎ | ▁▃▂▄▆█▅▃▁··▁ beats 6/100 | 10% |
| Story Cloze Test +2 | 60.0% ✎ | ▃▃▃▂▅█▅▂▁··▂ beats 3/50 | 10% |
| HellaSwag +1 | 28.6% ✎ | ▃▁▁▂▂▂▄▆█▇▄▂ beats 1/135 | 8.8% |
| PROST physical reasoning (zero-shot, 10-concept macro average) | 23.6% ✎ | █···██·█···█ beats 0/4 | 3.3% |
| COPEN concept identification in context (zero-shot, full prompt) | 31.1% ✎ | ▃···▃▃·▃·▃·█ beats 1/7 | 3.0% |
13 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Social IQA | 39.7% ✎ | ▁·▁██▄▅▁▂▃▇▁ beats 3/59 | 2.3% |
| PIQA | 62.9% ✎ | ▁▃▁▂▂▃▅█▅▃▁▁ beats 2/123 | 2.2% |
| BoolQ | 49.4% ✎ | ▃····▁▂█▆▅▆▄ beats 0/103 | 1.4% |
| COPEN conceptual similarity judgment (zero-shot, full prompt) | 7.9% ✎ | ▄···█···██·▄ beats 2/7 | 0.5% |
| StrategyQA | 0.0% ✎ | █········▁▃▁ beats 2/9 | 0.3% |
| SVAMP | 0.3% ✎ | █·▆▂▄▂▂····▂ beats 2/12 | 0.2% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 23.3% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 0/276 | 0.1% |
| CommonsenseQA +2 | 20.2% ✎ | █····▁·····▁ beats 2/9 | 0.1% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 22.8% ✎ | ▃▁▁▁▁▁▁▂▄█▄▃ beats 0/146 | 0.1% |
| TruthfulQA generation, % true (human-judged) | 35.4% ✎ | ██····█·██·█ beats 2/5 | 0.1% |
| COPEN conceptual property judgment (zero-shot, full prompt) | 51.5% ✎ | █·······▃··▁ beats 6/7 | 0.0% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 24.7% ✎ | ▃·▁▁▂▁▂▅█▇▄▁ beats 4/100 | 0.0% |
| AQuA-RAT | 17.3% ✎ | █·····▁·▁··▁ beats 2/9 | 0.0% |
$ 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
- 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 | shWindowsirm https://llama.app/install.ps1 | iex - Run GPT-2 Small (124M) · needs 1.6 GB memory, 0.11 GB download · from huggingface.co/mradermacherchat in the terminal
llama cli -hf mradermacher/gpt2-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run GPT-2 Small (124M) · needs 1.6 GB memory, 0.11 GB download · from huggingface.co/mradermacher
- Or download it in the terminal
lms get https://huggingface.co/mradermacher/gpt2-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run GPT-2 Small (124M) · needs 1.6 GB memory, 0.11 GB download · from huggingface.co/mradermacherchat in the terminal
ollama run hf.co/mradermacher/gpt2-GGUF:Q4_K_M
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run GPT-2 Small (124M) · needs 1.6 GB memory, 0.08 GB download, Mac only · from huggingface.co/jesusoctavioaschat in the terminal
mlx_lm.chat --model jesusoctavioas/gpt2-mlx-4Bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model jesusoctavioas/gpt2-mlx-4Bit
Other ways to run it
- 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