whatmodel.sh / GPT-2 XL (1.5B)
GPT-2 XL (1.5B)
↗ share
+ contribute
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.
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.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 882 | 8±1 | comparison only | |||
| 883 | 7±1 | local | |||
| 884 | 7±1 | local | |||
| 885 | 4±2 | comparison only | |||
| 886 | 1±1 | 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▁▁▃▅█▆▅█▄▁▁▁ #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.
other tests24 not in a task · 99% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| ARC Challenge +4 | 25.0% ✎ | ▅····▃▃···▅█ beats 0/8 | 20% |
| HellaSwag +4 | 40.0% ✎ | ▃▃▃··▅····▃█ beats 0/8 | 15% |
| OpenBookQA +3 | 22.4% ✎ | █······▂·▆·▂ beats 0/8 | 13% |
| ARC Easy +4 | 58.3% ✎ | ▅·▃▃··▃··▃·█ beats 1/8 | 8.6% |
| Story Cloze Test +3 | 67.6% ✎ | ▃▃▃▃▅█▅▂▁··▂ beats 15/50 | 6.2% |
| PROST physical reasoning (zero-shot, 10-concept macro average) | 30.1% ✎ | █···██·█···█ beats 4/4 | 4.9% |
| COPA +1 | 69.0% ✎ | ▁·▁▁▁▅▅█▆▂▁▁ beats 23/67 | 4.8% |
| PIQA +3 | 70.5% ✎ | ▄▄··▄·▄·▄·██ beats 1/8 | 4.6% |
16 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| COPEN concept identification in context (zero-shot, full prompt) | 37.0% ✎ | ▃···▃▃·▃·▃·█ beats 4/7 | 3.2% |
| BoolQ +1 | 61.8% ✎ | ▄█▄···▄··█▄▄ beats 1/8 | 3.1% |
| WinoGrande +1 | 58.3% ✎ | █··█···█▄▄·▄ beats 1/8 | 3.0% |
| Social IQA +1 | 39.4% ✎ | █▄····█▄▄··▄ beats 0/7 | 2.5% |
| LAMBADA (OpenAI version), last-word accuracy | 51.2% ✎ | █·▄··█··█··▄ beats 0/7 | 2.5% |
| TriviaQA | 11.8% ✎ | ▁▁▂▂▄▄▃▆▅█▅▂ beats 14/80 | 1.9% |
| 12-dataset text classification, 4-shot in-context learning (macro-F1 average) | 41.8% ✎ | ▂▃··▂·█···▂▂ beats 1/8 | 1.6% |
| SciQ | 83.2% ✎ | ▂·▁▂▂▃▆▃▇▆█▂ beats 9/51 | 1.2% |
| PubMedQA +1 | 60.4% ✎ | ▂·▂▆·▄▂▄▄▂█▂ beats 4/17 | 0.8% |
| MedMCQA | 30.9% ✎ | ▂▂··▄▄▂▂·▄██ beats 3/17 | 0.5% |
| MedQA (USMLE, 4 options) | 28.0% ✎ | ▁▁··▄▁▁··▄▃█ beats 4/17 | 0.4% |
| COPEN conceptual similarity judgment (zero-shot, full prompt) | 11.7% ✎ | ▄···█···██·▄ beats 6/7 | 0.3% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 25.9% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 23/276 | 0.3% |
| TruthfulQA generation, % true (human-judged) | 29.3% ✎ | ██····█·██·█ beats 1/5 | 0.0% |
| COPEN conceptual property judgment (zero-shot, full prompt) | 47.1% ✎ | █·······▁··▁ beats 3/7 | 0.0% |
| CommonsenseQA +1 | 38.6% ✎ | █·····▂▃▃▂▄▄ beats 18/38 | 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 XL (1.5B) · needs 2.7 GB memory, 1.19 GB download · from huggingface.co/mradermacherchat in the terminal
llama cli -hf mradermacher/gpt2-xl-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run GPT-2 XL (1.5B) · needs 2.7 GB memory, 1.19 GB download · from huggingface.co/mradermacher
- Or download it in the terminal
lms get https://huggingface.co/mradermacher/gpt2-xl-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 XL (1.5B) · needs 2.7 GB memory, 1.19 GB download · from huggingface.co/mradermacherchat in the terminal
ollama run hf.co/mradermacher/gpt2-xl-GGUF:Q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run GPT-2 XL (1.5B) · needs 4.8 GB memory, 3.12 GB download, Mac only · from huggingface.co/warshankschat in the terminal
mlx_lm.chat --model warshanks/gpt2-xl-bf16 - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model warshanks/gpt2-xl-bf16
Other ways to run it
- 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
$ 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 GB | Q4_K_M | 74.96 tok/s | llama.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-upnoteCommunity 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