whatmodel.sh / StarCoderBase 7B

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

Catalogue identity notes

Comparison-only. Maker repo bigcode/starcoderbase-7b @94e20e9: licence tag bigcode-openrail-m. 7,528,589,824 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2023-07: month the maker's Hugging Face repo was created (createdAt 2023-07-26). StarCoderBase (2023) 7B; not StarCoder2.

32.6±0.7#658 of 743 LLMsfrom 16 benchmark results across 4 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
779BLOOMZ 176B BigScience33±2comparison only2022-11
780Phi-1.5 (1.3B) Microsoft33±1local~2.4GB2023-09
781StarCoderBase 7B BigCode33±1local~6GB2023-07
782Codex code-davinci-001 OpenAI33±1comparison only2021-08
783Llama 3.2 1B Instruct Meta32±1api $0.020/M +local~1.6GB2024-09
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▁▁▁▃▆▇█▆▆▃▃▁ #449 of 474 · 94% of its score · 9 tests

Beats Qwen3.5 2B, Molmo 7B-D (0924), Tulu 2 7B here, though they rank higher overall. Trails Granite 3.0 1B-A400M Instruct, Llama 3.2 1B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval +124.4% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 8/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 40%sharp · at its level · several runs
HumanEval+21.3% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 10/99easy · avg 71%▇▇▇▇▇▇▇▇ 21%sharp
MBPP +134.8% ✎█·▅▃▃▃▅▃▃▅·▅ beats 3/15easy · avg 81%▇▇▇▇ 10%at its level · several runs
HumanEvalSynthesize (HumanEvalPack, 6-language average)26.7% ✎▁·▂▁▃▆▅█▄▄▁▂ beats 4/35medium · avg 62%▇▇▇ 6.3%at its level
CRUXEval-I +129.7% ✎▁··▁▅▂█▇▁··▁ beats 3/22medium · avg 57%▇▇ 4.5%at its level · several runs
CRUXEval-O +132.2% ✎▁·▂▃▁█▁▂···▁ beats 3/22medium · avg 54%▇▇ 4.0%blunt · at its level · several runs
DS-1000 lab19.1% ✎▄▄·▄██▄█·█·▄ beats 2/12medium · avg 49%▇ 3.6%typical
HumanEvalExplain (HumanEvalPack, 6-language average)14.8% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 8/35medium · avg 46%▇ 3.0%typical
1 more test
testresultvs the others in its rundifficultycountswhy
HumanEvalFix (HumanEvalPack, 6-language average)12.5% ✎▁·▁▁▄██▄█▁▅▅ beats 9/35medium · avg 52%▇ 2.2%sharp
math▁▁▃▅█▆▅█▄▁▁▁ #402 of 440 · 5.9% of its score · 2 tests

Beats Yi 34B Chat, Command R (03-2024), DeepSeek LLM 67B Chat here, though they rank higher overall. Trails GPT-Neo 125M, GPT-2 XL (1.5B), GPT-Neo 1.3B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K lab +114.9% ✎▄▄▄·▄█·██·█▄ beats 2/12easy · avg 76%▇▇ 4.8%sharp · several runs
MATH2.4% ✎▃·▃····▃···█ beats 0/5medium · avg 38%▇ 1.0%noisy

$ 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 7B · needs 6 GB memory, 4.3 GB download · from ollama.com
    chat in the terminal
    ollama run starcoder:7b

Other ways to run it

  1. Run it as published · needs 33.1 GB memory, 30.1 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-7b', 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… 50%, StarCoder 2 and The Stack v2:… 24%, Granite Code Models: A Family… 24% 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

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 runs8CC BY 4.0
CRUXEval published evaluation results (authors' generations and scores)2MIT
prior · pull toward the middle
weighted average= 32.6

$ 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