Models › starcoder2 family

bigcode BigCode OpenRAIL-M out 3 years ago

3.03B parameters, text in, text out, 16K tokens of context.

Verified 2026-10-25 Rank #475 in LLMs · score 77.2 method v1 Sources 3 Downloads 30d 29.9k · #423 of 619 tracked

Can I run it?1.8GB at INT4Estimatefits a 16 GB cardmethod
Can I use it?BigCode OpenRAIL-MAttribution requiredlicence file2026-10-24
Do people use it?29.9kdownloads, 30 days#423 of 619 we track · below the median+3 likes, downloads −18% this week227 likesHugging Face2026-10-24

Worth reading

Picked by rule from 9 tracked pieces: the lab's own post, the most shared, a field report, the latest.

Most discussed · 38 HN pts

StarCoder2-Instruct: Transparent Self-Alignment for Code Generation

SelfCodeAlign creates StarCoder2-Instruct by using StarCoder2-15B to generate thousands of instruction-response pairs for fine-tuning StarCoder-15B without human annotations or distilled data from proprietary models.

github.com 2024-05-04 38 HN pts · 9 comments 197 words about the starcoder2 family family
Latest · 2 years ago

StarCoder2-Instruct

StarCoder2-15B-Instruct achieves a 72.6 HumanEval score, surpassing the 72.0 score of CodeLlama-70B-Instruct.

huggingface.co 2024-04-29 1 HN pts 1.1k words about the starcoder2 family family

9 best of 9 tracked

The 2 picks above, plus these 7. Top is the radar's score: discussion, source authority and the lab's own posts, fading with age.

  1. ArticleStarCoder2 and The Stack v2: new code LLMs and datasethuggingface.co · 2024-02-28 · 12 HN pts
  2. ArticleStarCoder 2 is a code-generating AI that runs on most GPUstechcrunch.com · 2024-02-28 · 28 HN pts
  3. PaperStarCoder 2 and The Stack v2: The Next Generationarxiv.org · 2024-03-01 · 2 HN pts
  4. CodeOllama added support for StarCoder2 and DolphinCodergithub.com · 2024-03-06 · 4 HN pts
  5. CodeStarCoder 2github.com · 2024-02-29 · 2 HN pts
  6. DiscussionStarCoder2 and the Stack v2twitter.com · 2024-02-28 · 3 HN pts
  7. DiscussionAsk HN: How do you like StarCoder 2?news.ycombinator.com · 2024-03-06 · 1 HN pts

Where it's used

Hugging Face does not say who downloads a model or with what. These are the proxies: API providers listing it, quantized builds, fine-tunes/adapters/merges, and Spaces that load it.

No API provider serves it, so its downloads are people running it themselves: 32 quantized builds and 89 Spaces.

  • As a service0no API provider listed
  • On own hardware32quantized builds
  • Built on34351 fine-tunes · 291 adapters · 1 merges
  • In apps89Hugging Face Spaces

Top Spaces running it: KBaba7/Quant ♥ 51 · FallnAI/Quantize-HF-Models ♥ 19 · bhaskartripathi/LLM_Quantization ♥ 16 · openfree/LLM_Quantization ♥ 16

Will it fit?

Weights only, an estimate: leave room for the KV cache. Method

Fits a 16 GB card at INT4

About 1.8 GB at INT4, 3.6 GB at FP8, 7.3 GB at BF16: weights only, so leave room for the KV cache.

16 GB card64 GB Mac2×80 GB8×80 GBINT4: about 1.8 GB of weights (estimate; KV cache and activations extra)INT41.8 GBFP8: about 3.6 GB of weights (estimate; KV cache and activations extra)FP83.6 GBBF16: about 7.3 GB of weights (estimate; KV cache and activations extra)BF167.3 GB
16 GB card64 GB Mac2×80 GB8×80 GBINT4: about 1.8 GB of weights (estimate; KV cache and activations extra)INT41.8 GBFP8: about 3.6 GB of weights (estimate; KV cache and activations extra)FP83.6 GBBF16: about 7.3 GB of weights (estimate; KV cache and activations extra)BF167.3 GB

Estimate params × bytes per param × 1.2 · how we estimate

The story so far

Weights, every dated article, and repo commits on one rail.

9 dated articles and 20 repo commits so far

Teal is the weights (2023-11-29), amber triangles are 9 dated articles (each links to it), grey ticks are repo commits.

DecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOct2024-03-04: 1 repo commit2024-03-01: 1 repo commit2024-02-29: 1 repo commit2024-02-28: 1 repo commit2024-02-27: 5 repo commits2024-02-26: 3 repo commits2024-02-23: 1 repo commit2024-02-22: 2 repo commits2024-01-15: 2 repo commits2023-11-29: 3 repo commitsStarCoder2-Instruct: Transparent Self-Alignment for Code Generation · 2024-05-04StarCoder2 and The Stack v2: new code LLMs and dataset · 2024-02-28StarCoder 2 is a code-generating AI that runs on most GPUs · 2024-02-28StarCoder 2 and The Stack v2: The Next Generation · 2024-03-01StarCoder2-Instruct · 2024-04-29Ollama added support for StarCoder2 and DolphinCoder · 2024-03-06StarCoder 2 · 2024-02-29StarCoder2 and the Stack v2 · 2024-02-28Ask HN: How do you like StarCoder 2? · 2024-03-06Weights 2023-11-29 · 2023-11-29Weights 2023-11-29now
DecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOctNovDecJanFebMarAprMayJunJulAugSepOct2024-03-04: 1 repo commit2024-03-01: 1 repo commit2024-02-29: 1 repo commit2024-02-28: 1 repo commit2024-02-27: 5 repo commits2024-02-26: 3 repo commits2024-02-23: 1 repo commit2024-02-22: 2 repo commits2024-01-15: 2 repo commits2023-11-29: 3 repo commitsStarCoder2-Instruct: Transparent Self-Alignment for Code Generation · 2024-05-04StarCoder2 and The Stack v2: new code LLMs and dataset · 2024-02-28StarCoder 2 is a code-generating AI that runs on most GPUs · 2024-02-28StarCoder 2 and The Stack v2: The Next Generation · 2024-03-01StarCoder2-Instruct · 2024-04-29Ollama added support for StarCoder2 and DolphinCoder · 2024-03-06StarCoder 2 · 2024-02-29StarCoder2 and the Stack v2 · 2024-02-28Ask HN: How do you like StarCoder 2? · 2024-03-06Weights 2023-11-29 · 2023-11-29Weights 2023-11-29now

What people built on it

375 derivatives on the Hub. Which build to run, by runtime: the most downloaded in each class.

375 derivatives on the Hub, most of them adapters

From the Hugging Face model tree; quantized builds in teal, fine-tunes, merges and adapters in greys.

32 quantized (Hugging Face model tree)51 fine-tunes (Hugging Face model tree)1 merge (Hugging Face model tree)291 adapters (Hugging Face model tree)32 quantized51 fine-tunes1 merge291 adapters
32 quantized (Hugging Face model tree)51 fine-tunes (Hugging Face model tree)1 merge (Hugging Face model tree)291 adapters (Hugging Face model tree)32 quantized51 fine-tunes1 merge291 adapters

All variants →

Reference

Everything else, folded: the full tables, every source.

What the card says

1 cited sentence

Summary generated, cited

The architecture utilizes grouped-query and sliding window attention with a context window of 16,384 tokens.[1]

  1. “a context window of 16,384 tokens”

Generated 2026-10-07 15:11 UTC by parasail-gemma-4-26b-a4b-it; each numeral points at the fact it rests on. Not a verdict.

Use-case evidence

2 use cases

What it is good at 2 use cases

Labels are evidence, not verdicts: measured a third-party leaderboard row for this model; author-reported a number the model author published in the card or eval files; structural a deterministic signal from the name, config or chat template, or a decision-model estimate. Each chip links to its source. All use cases.

Facts

20 fields

Listed in LLMs

Facts

Pipeline tagtext-generation
Librarytransformers
ArchitecturesStarcoder2ForCausalLM
Model typestarcoder2
Params by dtypeF32: 3,030,371,328
Size bandM
MoEno
Context length16,384 (config.json max_position_embeddings)
PapersarXiv:2305.13245, arXiv:2205.14135, arXiv:2004.05150, arXiv:2207.14255, arXiv:2402.19173
LicenseBigCode OpenRAIL-M (bigcode-openrail-m)
Hub snapshot2026-10-25

Servability

vLLM · SGLang

Servability

vLLM: supported · Starcoder2ForCausalLM · 7050ef881ff0835f6890a47db1859a24c65481d6SGLang: supported · Starcoder2ForCausalLM · 773cb938fe9484a8f7e7e46fb1b1fe96412c59ed

vLLM registry (7050ef881ff0835f6890a47db1859a24c65481d6) · SGLang registry (773cb938fe9484a8f7e7e46fb1b1fe96412c59ed) · Matched by architecture class name against each project's registry on main; 'supported' means the architecture is registered, not that this checkpoint was tested.

Hardware fit

3 estimates

Hardware fit ESTIMATE

Weights-only memory for starcoder2-3b: params × bytes/param × 1.2 overhead. KV cache and activations are extra. How this is computed.

BF16 (2 bytes/param)7.3 GB · Single GPU (<24 GB)
FP8 (1 byte/param)3.6 GB · Edge (<4 GB)
INT4 (0.5 bytes/param)1.8 GB · Edge (<4 GB)

Weights only (params × bytes/param × 1.2 overhead); KV cache and activations extra.

All variants

40 variants

Lineage

Original model Family: bigcode/starcoder2 375 derivatives on the Hub

quantized: 32adapter: 291finetune: 51merge: 1

Top variants (40 shown, ranked by downloads)

Relation
Quant
40 rows
Variant Relation Quant Params Band License Author Likes Downloads
second-state/StarCoder2-3B-GGUF quantized GGUF — — bigcode-openrail-m second-state 20 59k
mradermacher/starcoder2-3b-i1-GGUF quantized GGUF — — bigcode-openrail-m mradermacher 0 17.8k
QuantFactory/starcoder2-3b-instruct-v0.1-GGUF quantized GGUF — — bigcode-openrail-m QuantFactory 1 10.6k
mradermacher/starcoder2-3b-GGUF quantized GGUF — — bigcode-openrail-m mradermacher 3 8.6k
DevQuasar-9/bigcode.starcoder2-3b-GGUF quantized GGUF — — — DevQuasar-9 1 7.4k
tensorblock/starcoder2-3b-GGUF quantized GGUF — — bigcode-openrail-m tensorblock 2 4k
smangrul/starcoder-3b-hugcoder adapter — — — bigcode-openrail-m smangrul 0 3.8k
Ffftdtd5dtft/starcoder2-3b-Q2_K-GGUF quantized Q2_K — — bigcode-openrail-m Ffftdtd5dtft 0 1.9k
ysn-rfd/starcoder2-3b-GGUF quantized GGUF — — bigcode-openrail-m ysn-rfd 1 1.7k
combos/starcoder2-3b-Q4_K_M-GGUF quantized GGUF — — bigcode-openrail-m combos 1 1.2k
onekq-ai/starcoder2-3b-bnb-4bit quantized -bnb 3.12B M bigcode-openrail-m onekq-ai 0 550
Sayan18/finetune_starcoder2 adapter — — — bigcode-openrail-m Sayan18 3 349
raghav0/starcoder2-3b-Q4_K_M-GGUF quantized GGUF — — bigcode-openrail-m raghav0 0 482
MuratKomurcu/starcoder2-stm32 finetune — 3.03B M mit MuratKomurcu 2 377
OmAr-Kader-DeV/starcoder2-3b-mlx-8Bit quantized mlx 3.03B M bigcode-openrail-m OmAr-Kader-DeV 0 436
SKT-NRS/STYLE-CODER-1 finetune — 3.03B M bigcode-openrail-m SKT-NRS 2 272
onekq-ai/starcoder2-3b-instruct-v0.1 finetune — 3.03B M bigcode-openrail-m onekq-ai 0 368
alal123/starcoder2-3b-Q4_K_M-GGUF quantized GGUF — — bigcode-openrail-m alal123 0 356
joehiggi/gcode-specialist-3b adapter GGUF — — bigcode-openrail-m joehiggi 0 350
xfel/starcoder2-3b-Q4_K_M-GGUF quantized GGUF — — bigcode-openrail-m xfel 0 327
vwdvaan/starcoder2-3b-Q4_K_M-GGUF quantized GGUF — — bigcode-openrail-m vwdvaan 0 317
MuratKomurcu/starcoder2-stm32-turkish finetune — — — bigcode-openrail-m MuratKomurcu 6 0
oakela/starcoder2_dev_data finetune — 3.03B M bigcode-openrail-m oakela 0 296
ekryski/starcoder2-3b-4bit quantized -4bit 3.03B M apache-2.0 ekryski 0 270
ibkya/Arden-World-3B quantized GGUF 3.03B M apache-2.0 ibkya 0 265
ShayonSarker/StarCoder2-3B-GGUF quantized GGUF — — bigcode-openrail-m ShayonSarker 1 204
zhenchonghu/starcoder2-3b-alpaca-lora adapter — — — — zhenchonghu 0 247
RohamKoohestani/finetune_starcoder2_3b_tokens_added_6k_steps finetune — 3.03B M — RohamKoohestani 0 241
gubee/fine-tuned-model quantized GGUF 3.03B M bigcode-openrail-m gubee 0 236
arthur-chien-0530/sft_only finetune — 3.03B M — arthur-chien-0530 0 234
CodeHima/finetunedPHP_starcoder2 adapter — — — bigcode-openrail-m CodeHima 0 212
RohamKoohestani/finetune_starcoder2_3b_tokens_added finetune — 3.03B M — RohamKoohestani 0 204
prasannadhungana8848/finetune_starcoder2_with_R_data adapter — — — bigcode-openrail-m prasannadhungana8848 0 192
Spandan98/SAS_Metadata_Adaptor adapter — — — — Spandan98 0 159
smangrul/starcoder-3b-hugcoder-loftq adapter — — — bigcode-openrail-m smangrul 0 157
andstor/bigcode-starcoder2-3b-unit-test-fine-tuning finetune — 3.03B M bigcode-openrail-m andstor 0 128
SenalVithana/gesture-to-llm-adapter finetune — 3.03B M mit SenalVithana 0 126
oakela/finetune_starcoder2_nate_continue_600steps finetune — 3.03B M bigcode-openrail-m oakela 0 125
oakela/finetune_starcoder2_nolora finetune — 3.03B M bigcode-openrail-m oakela 0 119
oakela/finetune_starcoder2_cleaned finetune — 3.03B M bigcode-openrail-m oakela 0 116

Repository changelog

20 commits

Repository changelog 20 commits

DateCommitSHA
2024-03-04 add dropout (#6) 733247c
2024-03-01 fix paper (#3) cc9b0d4
2024-02-29 Add architectures field to config.json (#2) 54da767
2024-02-28 Update README.md 444cd6f
2024-02-27 Update README.md (#1) 4e1a8cf
2024-02-27 Update README.md 421d645
2024-02-27 rewrite 73551f5
2024-02-27 Update README.md 107effb
2024-02-27 Update README.md 2cdb3d3
2024-02-26 Create README.md 088e2ed
2024-02-26 fix eos token 8f2ca22
2024-02-26 add missing tokenizer files 6af7c4b
2024-02-23 safetensors 56b73d9
2024-02-22 remove obsolete info in readme 9eebcd0
2024-02-22 update config and model (new modeling) f14327e
2024-01-15 Update README.md 11a6bb4
2024-01-15 Create README.md d65d24c
2023-11-29 Upload tokenizer.json b75eb95
2023-11-29 50000 9a1f939
2023-11-29 initial commit 09a9c4c

Articles and coverage

9 pieces

Ranked by source signals (HN, Lobsters, authority domains, official posts) and recency. Summaries are generated from a stored copy of the article text; every sentence cites a span of that text, and nothing is shown that failed the citation check.

Official2

huggingface.co2024-02-28authorityabout the starcoder2 familyHN 12 pts · 1 comments532 words
BigCode releases StarCoder2, a family of open code LLMs trained on The Stack v2 and licensed under the BigCode OpenRAIL-M v1 license agreement. The models utilize the Fill-in-the-Middle objective and feature a 16,384 token context window with sliding window attention of 4,096 tokens. The flagship StarCoder2-15B model is trained on over 4 trillion tokens from 600+ programming languages derived from the Software Heritage archive.written, reviewed, cited
huggingface.co2024-04-29authorityabout the starcoder2 familyHN 1 pts · 0 comments1,144 words
StarCoder2-15B-Instruct achieves a 72.6 HumanEval score, surpassing the 72.0 score of CodeLlama-70B-Instruct. The model generates 50k instructions paired with passing responses after filtering 500k samples that executed successfully in a sandbox environment.generated, cited

Analysis5

github.com2024-05-04authorityabout the starcoder2 familyHN 38 pts · 9 comments197 words
SelfCodeAlign creates StarCoder2-Instruct by using StarCoder2-15B to generate thousands of instruction-response pairs for fine-tuning StarCoder-15B without human annotations or distilled data from proprietary models. The resulting model, bigcode/starcoder2-15b-instruct-v0.1, is the first entirely self-aligned code LLM trained with a fully permissive and transparent pipeline using the bigcode/self-oss-instruct-sc2-exec-filter-50k dataset.written, reviewed, cited
techcrunch.com2024-02-28about the starcoder2 familyHN 28 pts · 1 comments1,347 words
StarCoder 2 is a new family of open source code-generating models released today by Hugging Face, ServiceNow, and Nvidia. It includes a 3-billion-parameter (3B) model trained by ServiceNow, a 7-billion-parameter (7B) model trained by Hugging Face, and a 15-billion-parameter (15B) model trained by Nvidia. Trained on 67.5 terabytes of data from Software Heritage, the models operate under the BigCode Open RAIL-M 1.0 license and are available for local deployment.written, reviewed, cited
  • The license strictly prohibits using StarCoder 2 for medical advice-giving applications.
  • StarCoder 2 performs weaker on languages other than English and lower-resource code like Fortran and Haskell.
arxiv.org2024-03-01authorityabout the starcoder2 familyHN 2 pts · 0 comments405 words
The BigCode project introduces StarCoder2, a new family of open-source code large language models trained on The Stack v2. The project trains models with 3B, 7B, and 15B parameters on between 3.3 and 4.3 trillion tokens and makes the model weights available under an OpenRAIL license. StarCoder2-3B outperforms StarCoderBase-15B on most benchmarks, while StarCoder2-15B matches or outperforms CodeLlama-34B. The team ensures full transparency by releasing the SoftWare Heritage persistent IDentifiers (SWHIDs) of the source code data.written, reviewed, cited
github.com2024-03-06authorityabout the starcoder2 familyHN 4 pts · 0 comments1,282 words
github.com2024-02-29authorityabout the starcoder2 familyHN 2 pts · 1 comments666 words

Community2

twitter.com2024-02-28about the starcoder2 familyHN 3 pts · 0 comments
news.ycombinator.com2024-03-06about the starcoder2 familyHN 1 pts · 0 comments73 words

Papers

5 papers

Papers 5

arXiv links found in the model card and its tags. "Peer-reviewed" is shown only with evidence: a published venue in OpenAlex (measured) or the authors' own journal reference on arXiv (reported).

Similar models

3 models

Similar models

  • Llama-3.2-3B-Instruct · 3.21B
    same size band (M), same task (text-generation), more providers
  • Qwen2.5-3B-Instruct · 3.09B
    same size band (M), same task (text-generation), more providers
  • Llama-3.2-3B · 3.21B
    same size band (M), same task (text-generation), more providers

Sources

3 sources

Sources

Hub snapshot: 2026-10-25 · HF API: 2026-10-24 21:39 UTC · Providers: 2026-10-24 21:44 UTC · Articles: 2026-10-24 21:46 UTC · Summary: 2026-10-07 15:11 UTC · Last verified 2026-10-25

Follow starcoder2-3b

Watch this model

Email alerts are not open yet; the feeds above are the same data. See feeds for the item schema.