Skip to content
llmmodels
Code modelOpen weightsHistorical

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 →

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

Alternatives to StarCoder 2 7B
ModelProviderReleasedParamsContextInput $/1MOutput $/1MECI
DeepSeek Coder 6.7BopenDeepSeekNov 20236.7B———67.5
LLaMA-7BopenMetaFeb 20236.7B———77.3
DeepSeek Coder 33BopenDeepSeekNov 202333B———76.3
StarCoder 2 3BopenNVIDIAFeb 20243B———66.6
Codestral MambaopenMistral AIJul 20247.3B————
Multi-Token Prediction 7BopenMetaApr 20246.7B————
Falcon3-7BopenTechnology Innovation InstituteDec 20247.5B————
Qwen2.5 Instruct (7B)openAlibaba (Qwen)Sep 20247.6B————

More models from NVIDIA

All NVIDIA models →
ModelReleasedParamsContextInput $/1MOutput $/1M
Nemotron 3 UltraopenJun 2026561B (55B act.)1MFreeFree
Nemotron-4 15BFeb 202415B———
StarCoder 2 15BopenFeb 202415B———
Nemotron 3 Super 120B A12BopenMar 2026124B (12B act.)256K$0.075$0.4
Nemotron 3.5 Lightning 30B A3BopenAug 202632B (3B act.)1MFreeFree
Nemotron 3.5 Super VLopenOct 2026124B (12B act.)1MFreeFree
Nemotron 3 Nano 30B A3BopenDec 202532B (3B act.)256K$0.06$0.24
Nemotron 3 Nano OmniopenApr 202633B (3B act.)250KFreeFree

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.