whatmodel.sh / StarCoder2 15B

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).

40.4±0.5#567 of 743 LLMsfrom 17 benchmark results across 5 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of StarCoder2 15B, out of 897 with a score, then more from BigCode.

#modelscorewhereRAMreleased
675Granite 3.0 2B Instruct IBM41±1local~3.2GB2024-10
676Granite 8B Code Base (4K) IBM40±1local~6.6GB2024-04
677StarCoder2 15B BigCode40±1local~11GB2024-02
678Llama 3.2 3B Instruct Meta40±1api $0.12/M +local~3.3GB2024-09
679Falcon-H1 3B Instruct TII40±3local~3.4GB2025-05
more from BigCode
543StarCoder2-15B-Instruct-v0.1 BigCode47±1local~11GB2024-04
738StarCoder2 7B BigCode37±1local~5.3GB2024-02
743StarCoder 15.5B BigCode36±1local~11GB2023-04

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆▇█▆▆▃▃▁ #404 of 474 · 87% 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.

testresultvs the others in its rundifficultycountswhy
HumanEval +246.3% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 30/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 45%sharp · at its level · several runs
HumanEval+37.8% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 27/99easy · avg 71%▇▇▇▇▇▇▇ 18%sharp · at its level
MBPP +151.2% ✎█·▅▃▃▃▅▃▃▅·▅ beats 14/15easy · avg 81%▇▇ 6.0%at its level · several runs
HumanEvalSynthesize (HumanEvalPack, 6-language average)44.4% ✎▁·▂▁▂▆▅█▄▄▁▂ beats 26/35medium · avg 62%▇▇ 4.8%at its level
DS-1000 lab33.8% ✎▄▄·▄██▄█·█·▄ beats 10/12medium · avg 49%▇ 2.9%at its level
HumanEvalExplain (HumanEvalPack, 6-language average)17.0% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 12/35medium · avg 46%▇ 2.9%at its level
CRUXEval-I +147.4% ✎▃▅█▃▃▅·▃▃▅·▅ beats 14/15medium · avg 57%▇ 2.7%at its level · several runs
HumanEvalFix (HumanEvalPack, 6-language average)21.9% ✎▁·▁▁▄██▄█▁▅▅ beats 20/35medium · avg 52%▇ 2.6%sharp
1 more test
testresultvs the others in its rundifficultycountswhy
CRUXEval-O +146.7% ✎▃·▃██▅▃·▃▃▅▃ beats 15/15medium · avg 54%▇ 2.2%blunt · at its level · several runs
math▁▁▃▅█▆▅█▄▁▁▁ #249 of 440 * · 2.8% of its score · 1 test

Beats GPT-4o (2024-08-06), Command A (03-2025), GPT-4o (2024-05-13) here, though they rank higher overall. Trails Gemma 7B (base), CodeGemma 7B (v1.0), Phi-2 (2.7B) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K lab65.1% ✎▄▄▄·▄█·██·█▄ beats 12/12easy · avg 76%▇ 2.8%sharp · at its level
other tests2 not in a task · 10% of its score
testresultvs the others in its rundifficultycountswhy
EvoEval (overall)29.0% ✎▂▂▃▄▄█▁▄▅▃▁▃ beats 13/42medium · avg 52%▇▇▇ 7.2%at its level
BigCodeBench (Complete) lab38.3% ✎▂▁▁▄▂▅▇█▆▂▂▂ beats 22/58medium · avg 49%▇ 3.0%at its level

$ 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 StarCoder2 15B · needs 11.9 GB memory, 9.86 GB download · from huggingface.co/second-state
    chat in the terminal
    llama cli -hf second-state/StarCoder2-15B-GGUF:Q4_K_M
  3. 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

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

    download it (macOS / Windows / Linux) ↗

  2. Run StarCoder2 15B · needs 11.9 GB memory, 9.86 GB download · from huggingface.co/second-state

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/second-state/StarCoder2-15B-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 StarCoder2 15B · needs 11.9 GB memory, 9.86 GB download · from ollama.com
    chat in the terminal
    ollama run starcoder2:15b-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 StarCoder2 15B · needs 10.9 GB memory, 8.98 GB download, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/bigcode-starcoder2-15b-4bit
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/bigcode-starcoder2-15b-4bit

Model repository and documentation: huggingface.co/bigcode ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 41%, Top Leaderboard Ranking = Top… 21%, StarCoder 2 and The Stack v2:… 19% 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

$ 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