whatmodel.sh / Stable Code 3B

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

34.5±0.6#643 of 743 LLMsfrom 15 benchmark results across 4 sources

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.

#modelscorewhereRAMreleased
759OLMo 2 1B Instruct (0425) Allen Institute for AI35±1local~2.5GB2025-04
760Vicuna 7B v1.3 LMSYS35±2local~5.8GB2023-06
761Stable Code 3B Stability AI35±1local~4.8GB2024-01
762T0 11B BigScience35±3comparison only2021-10
763Orca 2 13B Microsoft34±3local~9.8GB2023-11
more from Stability AI
806StableLM-3B-4E1T Stability AI30±1local~3.3GB2023-09
809StableLM-Base-Alpha 7B v2 Stability AI29±1local~31GB2023-08
843StableLM-Base-Alpha 3B v2 Stability AI24±1local~13GB2023-08

see all LLMs · find the ones that fit your machine

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

testresultvs the others in its rundifficultycountswhy
HumanEval +229.3% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 14/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 46%sharp · at its level · several runs
HumanEval+25.6% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 14/99easy · avg 71%▇▇▇▇▇▇▇ 17%sharp · at its level
MBPP +134.8% ✎█·▅▃▃▃▅▃▃▅·▅ beats 4/15easy · avg 81%▇▇▇ 7.3%at its level · several runs
HumanEvalSynthesize (HumanEvalPack, 6-language average)27.8% ✎▁·▂▁▃▆▅█▄▄▁▂ beats 5/35medium · avg 62%▇▇ 5.0%at its level
MBPP+45.8% ✎▁···▁▁▂▅▇█▆▂ beats 12/75easy · avg 66%▇▇ 4.0%at its level
DS-100022.7% ✎▄▄·▄██▄█·█·▄ beats 4/12medium · avg 49%▇ 2.8%typical
HumanEvalExplain (HumanEvalPack, 6-language average)12.3% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 3/35medium · avg 46%▇ 2.5%typical
CRUXEval-I33.5% ✎▃▅█▃▃▅·▃▃▅·▅ beats 6/15medium · avg 57%▇ 2.3%at its level
2 more tests
testresultvs the others in its rundifficultycountswhy
HumanEvalFix (HumanEvalPack, 6-language average)10.5% ✎▁·▁▁▄██▄█▁▅▅ beats 7/35medium · avg 52%▇ 2.0%sharp
CRUXEval-O32.1% ✎▃·▃██▅▃·▃▃▅▃ beats 4/15medium · avg 54%▇ 1.9%blunt · at its level
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.

testresultvs the others in its rundifficultycountswhy
GSM8K39.7% ✎▄▄▄·▄█·██·█▄ beats 7/12easy · avg 76%▇ 2.8%sharp · at its level
other tests1 not in a task · 6.5% of its score
testresultvs the others in its rundifficultycountswhy
EvoEval (overall)20.7% ✎▂▂▃▄▄█▁▄▅▃▁▃ beats 6/42medium · avg 52%▇▇▇ 6.5%typical

$ 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 Stable Code 3B · needs 4.8 GB memory, 1.71 GB download · from huggingface.co/TheBloke
    chat in the terminal
    llama cli -hf TheBloke/stable-code-3b-GGUF:Q4_K_M
  3. 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

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

    download it (macOS / Windows / Linux) ↗

  2. Run Stable Code 3B · needs 4.8 GB memory, 1.71 GB download · from huggingface.co/TheBloke

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/TheBloke/stable-code-3b-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 Stable Code 3B · needs 4.8 GB memory, 1.71 GB download · from ollama.com
    chat in the terminal
    ollama run stable-code:3b-code-q4_K_M

MLX (Mac)

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run Stable Code 3B · needs 4.9 GB memory, 1.76 GB download, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/stable-code-3b-4bit
  3. 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

$ 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