StarCoder 2 7B
by NVIDIA · Feb 29, 2024
StarCoder 2 7B is an open-weight code model from NVIDIA, released Feb 29, 2024. It has 7B parameters. It scores 72.4 on the Epoch Capabilities Index.
- Provider
- NVIDIA
- Released
- Feb 29, 2024
- Type
- Code model
- Parameters
- 7B
- Context window
- —
- Max output
- —
- Input
- text
- Output
- text
- Weights
- Open weights
- License
- Open (restricted)
- Knowledge cutoff
- —
- Status
- Historical
- Training compute
- 1.5e+23 FLOP
- Training data
- 658.6B tokens/words
About StarCoder 2 7B
The BigCode project, an open-scientific collaboration focused on the responsible development of Large Language Models for Code (Code LLMs), introduces StarCoder2. In partnership with Software Heritage (SWH), we build The Stack v2 on top of the digital commons of their source code archive. Alongside the SWH repositories spanning 619 programming languages, we carefully select other high-quality data sources, such as GitHub pull requests, Kaggle notebooks, and code documentation. This results in a training set that is 4x larger than the first StarCoder dataset.
StarCoder 2 7B benchmarks
All benchmarks →- Epoch Capabilities Index72.4
- MMLU38.8%
- GSM8K32.7%
Scores from the Epoch AI Benchmarking Hub (best reported setting). ECI = Epoch Capabilities Index.
How to run StarCoder 2 7B
StarCoder 2 7B is an open-weight model. Run it locally with Ollama, LM Studio or llama.cpp (quantized GGUF builds), or serve it on GPUs with vLLM, SGLang or Hugging Face TGI. At 7B parameters it needs roughly 4 GB of memory at 4-bit quantization.
StarCoder 2 7B vs alternatives
- StarCoder 2 7B vs DeepSeek Coder 6.7B
- StarCoder 2 7B vs LLaMA-7B
- StarCoder 2 7B vs DeepSeek Coder 33B
- StarCoder 2 7B vs StarCoder 2 3B
- StarCoder 2 7B vs Codestral Mamba
- StarCoder 2 7B vs Multi-Token Prediction 7B
| Model | Provider | Released | Params | Context | Input $/1M | Output $/1M | ECI |
|---|---|---|---|---|---|---|---|
| DeepSeek Coder 6.7Bopen | DeepSeek | Nov 2023 | 6.7B | — | — | — | 67.5 |
| LLaMA-7Bopen | Meta | Feb 2023 | 6.7B | — | — | — | 77.3 |
| DeepSeek Coder 33Bopen | DeepSeek | Nov 2023 | 33B | — | — | — | 76.3 |
| StarCoder 2 3Bopen | NVIDIA | Feb 2024 | 3B | — | — | — | 66.6 |
| Codestral Mambaopen | Mistral AI | Jul 2024 | 7.3B | — | — | — | — |
| Multi-Token Prediction 7Bopen | Meta | Apr 2024 | 6.7B | — | — | — | — |
| Falcon3-7Bopen | Technology Innovation Institute | Dec 2024 | 7.5B | — | — | — | — |
| Qwen2.5 Instruct (7B)open | Alibaba (Qwen) | Sep 2024 | 7.6B | — | — | — | — |
More models from NVIDIA
All NVIDIA models →| Model | Released | Params | Context | Input $/1M | Output $/1M |
|---|---|---|---|---|---|
| Nemotron 3 Ultraopen | Jun 2026 | 561B (55B act.) | 1M | Free | Free |
| Nemotron-4 15B | Feb 2024 | 15B | — | — | — |
| StarCoder 2 15Bopen | Feb 2024 | 15B | — | — | — |
| Nemotron 3 Super 120B A12Bopen | Mar 2026 | 124B (12B act.) | 256K | $0.075 | $0.4 |
| Nemotron 3.5 Lightning 30B A3Bopen | Aug 2026 | 32B (3B act.) | 1M | Free | Free |
| Nemotron 3.5 Super VLopen | Oct 2026 | 124B (12B act.) | 1M | Free | Free |
| Nemotron 3 Nano 30B A3Bopen | Dec 2025 | 32B (3B act.) | 256K | $0.06 | $0.24 |
| Nemotron 3 Nano Omniopen | Apr 2026 | 33B (3B act.) | 250K | Free | Free |
Frequently asked questions
Who made StarCoder 2 7B?
StarCoder 2 7B was developed by NVIDIA (United States of America,United States of America,United States of America). It was released on Feb 29, 2024.
Is StarCoder 2 7B open source?
Yes. StarCoder 2 7B's weights are publicly available, so you can download and run it yourself.
How many parameters does StarCoder 2 7B have?
StarCoder 2 7B has 7B parameters.
How does StarCoder 2 7B perform on benchmarks?
StarCoder 2 7B scores 38.8% on MMLU and 32.7% on GSM8K.
Sources: epoch · paper. Last updated 2026-11-22.