whatmodel.sh / StarCoderBase 3B

StarCoderBase 3B is an open-weights language model from BigCode, released June 2023. Its published size is 3B parameters. Licence: bigcode-openrail-m.

Catalogue identity notes

Comparison-only. Maker repo bigcode/starcoderbase-3b @e1c5ef4: licence tag bigcode-openrail-m. Parameters: nominal size from the model name (no safetensors metadata in the repo) (dense, so active = total). Released 2023-06: month the maker's Hugging Face repo was created (createdAt 2023-06-30). StarCoderBase (2023) 3B; not StarCoder2.

29.5±0.8#677 of 743 LLMsfrom 12 benchmark results across 3 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
805OpenLLaMA 7B v2 OpenLM Research30±1local~9GB2023-07
806StableLM-3B-4E1T Stability AI30±1local~3.3GB2023-09
807StarCoderBase 3B BigCode30±1local~3.4GB2023-06
808OPT-66B Meta29±1local~141GB2022-05
809StableLM-Base-Alpha 7B v2 Stability AI29±1local~31GB2023-08
more from BigCode
543StarCoder2-15B-Instruct-v0.1 BigCode47±1local~11GB2024-04
677StarCoder2 15B BigCode40±1local~11GB2024-02
738StarCoder2 7B BigCode37±1local~5.3GB2024-02

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▃▃▆▇█▆▆▃▃▁ #456 of 474 · 96% of its score · 9 tests

Beats Molmo 7B-D (0924), Tulu 2 7B, DeepSeek R1 Distill Qwen 1.5B here, though they rank higher overall. Trails Falcon3 1B Instruct, Granite 3.0 1B-A400M Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval +117.7% ✎▁·▁▃▃▄▆▅█▃▁▁ beats 6/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 41%sharp · several runs
HumanEval+15.9% ✎▁·▁▁▃▃▄▄▄█▃▁ beats 6/99easy · avg 71%▇▇▇▇▇▇▇▇ 21%sharp
MBPP +129.4% ✎█·▅▃▃▃▅▃▃▅·▅ beats 0/15easy · avg 81%▇▇▇▇▇ 12%at its level · several runs
HumanEvalSynthesize (HumanEvalPack, 6-language average)21.8% ✎▁·▂▃▂▆▅█▄▄▁▂ beats 3/35medium · avg 62%▇▇▇ 7.0%typical
DS-1000 lab14.2% ✎▄▄·▄██▄█·█·▄ beats 0/12medium · avg 49%▇▇ 3.9%typical
CRUXEval-I27.5% ✎▃▅█▃▃▅·▃▃▅·▅ beats 0/15medium · avg 57%▇ 3.6%at its level
CRUXEval-O27.0% ✎▃·▃██▅▃·▃▃▅▃ beats 0/15medium · avg 54%▇ 3.0%blunt · at its level
HumanEvalExplain (HumanEvalPack, 6-language average)11.9% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 2/35medium · avg 46%▇ 3.0%typical
1 more test
testresultvs the others in its rundifficultycountswhy
HumanEvalFix (HumanEvalPack, 6-language average)6.4% ✎▁·▁▃▄██▄█▁▅▅ beats 2/35medium · avg 52%▇ 2.0%sharp · too hard for it
math▁▁▃▅█▆▅█▄▁▁▁ #411 of 440 * · 3.4% of its score · 1 test

Beats Command R (03-2024), Mistral 7B Instruct v0.3, Llama-3-Instruct-8B-SimPO-v0.2 here, though they rank higher overall. Trails GPT-Neo 125M, OPT-125M, GPT-2 XL (1.5B) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K lab8.0% ✎▄▄▄·▄█·██·█▄ beats 0/12easy · avg 76%▇ 3.4%sharp

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

Ollama · recommended

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run StarCoderBase 3B · needs 3.4 GB memory, 1.83 GB download · from ollama.com
    chat in the terminal
    ollama run starcoder:3b

Other ways to run it

  1. Run it as published · needs 14.3 GB memory, 12.2 GB download · from huggingface.co/bigcode (official)
    uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='bigcode/starcoderbase-3b', torch_dtype='auto', device_map='auto')('def print_hello_world():', max_new_tokens=40)[0]['generated_text'])"

Model repository and documentation: huggingface.co/bigcode ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 51%, StarCoder 2 and The Stack v2:… 26%, Granite Code Models: A Family… 23%

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

sourceresultsshare of the scorelicence
EvalPlus / EvalPerf published evaluation runs2Apache-2.0
StarCoder 2 and The Stack v2: The Next Generation — authors' own runs · maker-reported4CC BY-SA 4.0
Granite Code Models: A Family of Open Foundation Models for Code Intelligence — authors' own runs6CC BY 4.0
prior · pull toward the middle
weighted average= 29.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