whatmodel.sh / StarCoderBase 7B
StarCoderBase 7B
↗ share
+ contribute
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.
$ how it compares
The LLMs ranked either side of StarCoderBase 7B, out of 828 with a score, then more from BigCode.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 732 | 31±1 | local | |||
| 733 | 31±1 | local | |||
| 734 | 31±1 | local | |||
| 735 | 31±1 | local | |||
| 736 | 31±1 | local | |||
| more from BigCode | |||||
| 521 | 46±1 | local | |||
| 639 | 39±1 | local | |||
| 698 | 35±1 | local | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #435 of 458 · 95% of its score · 9 tests
Beats Qwen3.5 2B, Molmo 7B-D (0924), DeepSeek R1 Distill Qwen 1.5B here, though they rank higher overall. Trails Granite 3.0 1B-A400M Instruct, Llama 3.2 1B Instruct, SmolLM2 1.7B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +1 | 24.4% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 8/99 | 42% |
| HumanEval+ | 21.3% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 10/99 | 21% |
| MBPP +1 | 34.8% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 3/15 | 9.2% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 26.7% ✎ | ▁·▂▁▃▆▅█▄▄▁▂ beats 4/35 | 6.1% |
| CRUXEval-I +1 | 29.7% ✎ | ▁··▁▅▂█▇▁··▁ beats 3/22 | 4.4% |
| CRUXEval-O +1 | 32.2% ✎ | ▁·▂▃▁█▁▂···▁ beats 3/22 | 3.8% |
| DS-1000 lab | 19.1% ✎ | ▄▄·▄██▄█·█·▄ beats 2/12 | 3.6% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 14.8% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 8/35 | 2.9% |
1 more test
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalFix (HumanEvalPack, 6-language average) | 12.5% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 9/35 | 2.2% |
math▃▂▃▅▆▅▄█▄▁▁▁ #397 of 398 · 4.6% of its score · 2 tests
Trails Qwen2 0.5B Instruct, Granite 4.0 350M, Granite 4.0 H 350M here, though they rank lower overall.
$ where to run it
Ollama · recommended
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run StarCoderBase 7B · needs ~4.3 GB · from ollama.comchat in the terminal
ollama run starcoder:7b
Other ways to run it
- Run it as published · needs ~30.11 GB · 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'])"
Official weights and documentation: huggingface.co/bigcode ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 52%, Granite Code Models: A Family… 23%, StarCoder 2 and The Stack v2:… 22% 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 |
|---|---|---|
| 2 | 52% | |
| 8 | 23% | |
| 4 | 22% | |
| 2 | 3% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 30.8 |
$ 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