whatmodel.sh / StarCoder2 3B
StarCoder2 3B
↗ share
+ contribute
StarCoder2 3B is an open-weights language model from BigCode, released February 2024. Its published size is 3.03B parameters and a 16k-token context window. Licence: bigcode-openrail-m.
Catalogue identity notes
Maker repo bigcode/starcoder2-3b @733247c: licence tag bigcode-openrail-m. 3,030,371,328 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-02: stated above. Base model. Released 2024-02 with the StarCoder 2 paper (HF repo created earlier, 2023-11-29). Ollama tags starcoder2:3b-q4_K_M, starcoder2:3b-q8_0 (sizes as listed on the tags page, observed 2026-09-29).
$ how it compares
The LLMs ranked either side of StarCoder2 3B, out of 828 with a score, then more from BigCode.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 710 | 33±1 | local | |||
| 711 | 33±1 | local | |||
| 712 | 33±1 | local | |||
| 713 | 33±1 | local | |||
| 714 | 33±1 | comparison only | |||
| more from BigCode | |||||
| 521 | 46±1 | local | |||
| 639 | 39±1 | local | |||
| 698 | 35±1 | local | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #418 of 458 · 89% 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 Llama 3.2 1B Instruct, SmolLM2 1.7B Instruct, Granite 3B Code Base (2K) here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +2 | 31.7% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 16/99 | 48% |
| HumanEval+ | 27.4% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 16/99 | 17% |
| MBPP +1 | 42.4% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 9/15 | 6.7% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 31.7% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 9/35 | 4.8% |
| CRUXEval-I +1 | 32.1% ✎ | ▃▅█▃▃▅·▃▃▅·▅ beats 5/15 | 2.9% |
| DS-1000 lab | 25.0% ✎ | ▄▄·▄██▄█·█·▄ beats 6/12 | 2.8% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 13.1% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 5/35 | 2.5% |
| CRUXEval-O +1 | 34.0% ✎ | ▃·▃██▅▃·▃▃▅▃ beats 6/15 | 2.4% |
1 more test
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalFix (HumanEvalPack, 6-language average) | 11.0% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 8/35 | 2.0% |
math▁▃▃▅▆▅▄█▄▁▁▁ #376 of 398 * · 1.9% of its score · 1 test
Beats Command R (03-2024), Molmo 7B-D (0924), Mistral 7B Instruct v0.3 here, though they rank higher overall. Trails Gemma 2B (base), SmolLM2 1.7B Instruct, LFM2 350M here, though they rank lower overall.
other tests2 not in a task · 9.2% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 20.2% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 4/42 | 6.3% |
| BigCodeBench (Complete) lab | 21.4% ✎ | ▃▁▁▄▂▅▇█▆▂▂▂ beats 1/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 3B · needs ~1.8 GB · from huggingface.co/second-statechat in the terminal
llama cli -hf second-state/StarCoder2-3B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf second-state/StarCoder2-3B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run StarCoder2 3B · needs ~1.8 GB · from huggingface.co/second-state
- Or download it in the terminal
lms get https://huggingface.co/second-state/StarCoder2-3B-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 3B · needs ~1.8 GB · from ollama.comchat in the terminal
ollama run starcoder2:3b-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 3B · needs ~1.9 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/starcoder2-3b-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/starcoder2-3b-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:… 18% 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 | 18% | |
| 6 | 16% | |
| 1 | 3% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 33.3 |
$ 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