whatmodel.sh / Stable Code 3B
Stable Code 3B
↗ share
+ contribute
Stable Code 3B is an open-weights language model from Stability AI, released January 2024. Its published size is 2.8B parameters and a 16k-token context window. Licence: stability-ai-community.
Catalogue identity notes
Maker repo stabilityai/stable-code-3b @5cee3fa: licence tag other. 2,795,443,200 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-01: month the maker's Hugging Face repo was created (createdAt 2024-01-09). Base completion model; not stable-code-instruct-3b. Ollama tags stable-code:3b-code-q4_K_M, stable-code:3b-code-q8_0 (sizes as listed on the tags page, observed 2026-09-29).
$ how it compares
The LLMs ranked either side of Stable Code 3B, out of 828 with a score, then more from Stability AI.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 716 | 33±1 | local | |||
| 717 | 33±2 | local | |||
| 718 | 33±1 | local | |||
| 719 | 33±2 | local | |||
| 720 | 32±1 | local | |||
| more from Stability AI | |||||
| 746 | 29±1 | local | |||
| 750 | 29±1 | local | |||
| 785 | 24±1 | local | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #423 of 458 · 92% of its score · 10 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, Mistral 7B Instruct v0.1 here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +2 | 29.3% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 14/99 | 48% |
| HumanEval+ | 25.6% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 14/99 | 17% |
| MBPP +1 | 34.8% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 4/15 | 6.9% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 27.8% ✎ | ▁·▂▁▃▆▅█▄▄▁▂ beats 5/35 | 4.8% |
| MBPP+ | 45.8% ✎ | ▁···▁▁▂▅▇█▆▂ beats 12/75 | 3.8% |
| DS-1000 | 22.7% ✎ | ▄▄·▄██▄█·█·▄ beats 4/12 | 2.8% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 12.3% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 3/35 | 2.4% |
| CRUXEval-I | 33.5% ✎ | ▃▅█▃▃▅·▃▃▅·▅ beats 6/15 | 2.3% |
2 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalFix (HumanEvalPack, 6-language average) | 10.5% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 7/35 | 1.9% |
| CRUXEval-O | 32.1% ✎ | ▃·▃██▅▃·▃▃▅▃ beats 4/15 | 1.9% |
math▁▂▃▅▆▅▄█▄▁▁▁ #356 of 398 * · 2.0% of its score · 1 test
Beats Yi 34B Chat, Llama 3 8B Instruct, Command R (03-2024) here, though they rank higher overall. Trails Gemma 3 1B here, though they rank lower overall.
other tests1 not in a task · 6.3% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 20.7% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 6/42 | 6.3% |
$ 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 Stable Code 3B · needs ~1.7 GB · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/stable-code-3b-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf TheBloke/stable-code-3b-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Stable Code 3B · needs ~1.7 GB · from huggingface.co/TheBloke
- Or download it in the terminal
lms get https://huggingface.co/TheBloke/stable-code-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 Stable Code 3B · needs ~1.7 GB · from ollama.comchat in the terminal
ollama run stable-code:3b-code-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 Stable Code 3B · needs ~1.8 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/stable-code-3b-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/stable-code-3b-4bit
Official weights and documentation: huggingface.co/stabilityai ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 47%, Top Leaderboard Ranking = Top… 20%, StarCoder 2 and The Stack v2:… 17% and 1 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 |
|---|---|---|
| 3 | 47% | |
| 2 | 20% | |
| 4 | 17% | |
| 6 | 16% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 32.7 |
$ 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