whatmodel.sh / StarCoder2 15B
StarCoder2 15B
↗ share
+ contribute
StarCoder2 15B is an open-weights language model from BigCode, released February 2024. Its published size is 15.96B parameters and a 16k-token context window. Licence: bigcode-openrail-m.
Catalogue identity notes
Maker repo bigcode/starcoder2-15b @46d4474: licence tag bigcode-openrail-m. 15,957,889,024 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-02: month the maker's Hugging Face repo was created (createdAt 2024-02-20). Base model; not StarCoder2-15B-Instruct. Ollama tags starcoder2:15b-q4_K_M, starcoder2:15b-q8_0 (sizes as listed on the tags page, observed 2026-09-29).
$ how it compares
The LLMs ranked either side of StarCoder2 15B, out of 828 with a score, then more from BigCode.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 637 | 39±1 | local | |||
| 638 | 39±1 | local | |||
| 639 | 39±1 | local | |||
| 640 | 39±1 | local | |||
| 641 | 39±4 | local | |||
| more from BigCode | |||||
| 521 | 46±1 | local | |||
| 698 | 35±1 | local | |||
| 701 | 35±1 | local | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #390 of 458 · 88% of its score · 9 tests
Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B here, though they rank higher overall. Trails Qwen2.5 1.5B Instruct, WizardLM 13B V1.2, Falcon3 3B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +2 | 46.3% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 30/99 | 47% |
| HumanEval+ | 37.8% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 27/99 | 18% |
| MBPP +1 | 51.2% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 14/15 | 5.6% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 44.4% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 26/35 | 4.7% |
| DS-1000 lab | 33.8% ✎ | ▄▄·▄██▄█·█·▄ beats 10/12 | 2.9% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 17.0% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 12/35 | 2.8% |
| CRUXEval-I +1 | 47.4% ✎ | ▃▅█▃▃▅·▃▃▅·▅ beats 14/15 | 2.7% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 21.9% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 20/35 | 2.6% |
1 more test
| test | result | vs the others in its run | counts |
|---|---|---|---|
| CRUXEval-O +1 | 46.7% ✎ | ▃·▃██▅▃·▃▃▅▃ beats 15/15 | 2.2% |
math▁▂▃▅▆▅▄█▄▁▁▁ #284 of 398 * · 1.9% of its score · 1 test
Beats Llama 3.1 Nemotron 70B Instruct, GPT-4 (0613), Athene-70B here, though they rank higher overall. Trails DeepSeek R1 Distill Qwen 1.5B, Phi-2 (2.7B) here, though they rank lower overall.
other tests2 not in a task · 10% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 29.0% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 13/42 | 6.9% |
| BigCodeBench (Complete) lab | 38.3% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 22/58 | 2.8% |
$ where to run it
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 StarCoder2 15B · needs ~9.9 GB · from huggingface.co/second-statechat in the terminal
llama cli -hf second-state/StarCoder2-15B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf second-state/StarCoder2-15B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run StarCoder2 15B · needs ~9.9 GB · from huggingface.co/second-state
- Or download it in the terminal
lms get https://huggingface.co/second-state/StarCoder2-15B-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 StarCoder2 15B · needs ~9.9 GB · from ollama.comchat in the terminal
ollama run starcoder2:15b-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 StarCoder2 15B · needs ~9 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/bigcode-starcoder2-15b-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/bigcode-starcoder2-15b-4bit
Official weights and documentation: huggingface.co/bigcode ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 43%, Top Leaderboard Ranking = Top… 20%, StarCoder 2 and The Stack v2:… 17% and 2 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
| source | results | share of the score |
|---|---|---|
| 2 | 43% | |
| 2 | 20% | |
| 6 | 17% | |
| 6 | 16% | |
| 1 | 3% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 38.8 |
$ 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