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).
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Stable Code 3B, out of 897 with a score, then more from Stability AI.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 759 | 35±1 | local | |||
| 760 | 35±2 | local | |||
| 761 | 35±1 | local | |||
| 762 | 35±3 | comparison only | |||
| 763 | 34±3 | local | |||
| more from Stability AI | |||||
| 806 | 30±1 | local | |||
| 809 | 29±1 | local | |||
| 843 | 24±1 | local | |||
$ what it's good at
coding▁▁▁▃▆▇█▆▆▃▃▁ #436 of 474 · 91% 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 | 46% |
| HumanEval+ | 25.6% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 14/99 | 17% |
| MBPP +1 | 34.8% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 4/15 | 7.3% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 27.8% ✎ | ▁·▂▁▃▆▅█▄▄▁▂ beats 5/35 | 5.0% |
| MBPP+ | 45.8% ✎ | ▁···▁▁▂▅▇█▆▂ beats 12/75 | 4.0% |
| DS-1000 | 22.7% ✎ | ▄▄·▄██▄█·█·▄ beats 4/12 | 2.8% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 12.3% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 3/35 | 2.5% |
| 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 | 2.0% |
| CRUXEval-O | 32.1% ✎ | ▃·▃██▅▃·▃▃▅▃ beats 4/15 | 1.9% |
math▁▁▃▅█▆▅█▄▁▁▁ #329 of 440 * · 2.8% of its score · 1 test
Beats GPT-4 (0613), Athene-70B, Gemma 2 27B IT here, though they rank higher overall.
other tests1 not in a task · 6.5% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 20.7% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 6/42 | 6.5% |
$ 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 Stable Code 3B · needs 4.8 GB memory, 1.71 GB download · 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 4.8 GB memory, 1.71 GB download · 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 4.8 GB memory, 1.71 GB download · 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 4.9 GB memory, 1.76 GB download, 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
Model repository and documentation: huggingface.co/stabilityai ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 45%, Top Leaderboard Ranking = Top… 20%, StarCoder 2 and The Stack v2:… 19% 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 | 45% | |
| 2 | 20% | |
| 4 | 19% | |
| 6 | 17% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 34.5 |
$ 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