AIWiki
Malaysia
Back to all articles
Modelscode modelsopen sourceBigCode

StarCoder

4 min readUpdated November 2026
StarCoder
Type
Open code language model family
Developed by
BigCode (Hugging Face and ServiceNow)
First release
May 2023 (StarCoder), February 2024 (StarCoder2)
Sizes
15.5B (v1); 3B, 7B, 15B (v2)
Licence
BigCode OpenRAIL-M responsible-AI licence
Related
Code Generation, GitHub Copilot, The Stack
StarCoder is a family of large language models specialised for programming, developed by BigCode, an open scientific collaboration led jointly by Hugging Face and ServiceNow. Its distinguishing feature is provenance: the models are trained on The Stack, a curated corpus of permissively licensed source code whose component repositories are documented and filterable, with an opt-out mechanism for code owners.[1]

History

BigCode was formed in 2022 as an open working group of researchers, companies and volunteers who wanted code models built responsibly — in public, with attention to licensing, consent and documentation rather than as an opaque commercial scrape. The collaboration published SantaCoder (1.1B, Python/Java/JavaScript) as an early trial, then released StarCoder in May 2023: a 15.5B-parameter model trained on The Stack, matching or exceeding many contemporary open models on code benchmarks while remaining downloadable under an open licence.[1][2]

StarCoder2 followed in February 2024 in 3B, 7B and 15B sizes, trained on The Stack v2, a much larger corpus built substantially from the Software Heritage archive — an institutional record of public source code — with language balancing and quality filtering, and released alongside the datatrove-based processing pipeline.[3]

Technology

Several design choices define the family:

  • Fill-in-the-middle (FIM) training lets the model insert code into an existing file rather than only continuing a file from the top — the mode that editors and IDE plugins actually require.[1]
  • Long context (8,192 tokens in v1) supports whole-file and multi-file editing workflows.
  • Transparent training data: The Stack v1/v2 records repository names, licences and commit provenance, and provides a searchable interface so developers can check whether their code is included and request removal.[2][3]
  • Responsible-AI licence: StarCoder ships under the BigCode OpenRAIL-M licence, which permits research and commercial use but attaches use restrictions (for example, generating malicious code or unlawful content) to downstream distribution — a middle ground between permissive and source-available licences.[1]

Applications and impact

StarCoder models are used as coding assistants inside editors, as bases for instruction-tuned derivatives such as StarCoderBot and WizardCoder, for repository-level question answering and test generation, and as open baselines against which commercial assistants such as GitHub Copilot are measured. BigCode's insistence on documented data provenance directly influenced later dataset work — including FineWeb-style pipelines applied to code — and gave compliance teams a template for asking what a code model was actually trained on.[3]

>Key Takeaways

  • StarCoder is BigCode's open code-model family: 15.5B (v1) and 3B/7B/15B (v2).
  • Its edge is provenance — training code drawn from documented, licence-tagged repositories with an owner opt-out.
  • It uses fill-in-the-middle training and an OpenRAIL-M responsible-AI licence rather than a plain permissive one.
  • For Malaysia, it enables low-cost, licence-clear coding assistants that can run on local compute.

See Also

🇲🇾Malaysian Context

🇲🇾 Relevance to Malaysia: open code models matter for a country with a growing software workforce and a stated ambition to raise AI adoption among SMEs. StarCoder can be run locally or on Malaysian cloud capacity — including YTL AI Cloud and national compute initiatives such as the National AI Compute Exchange — without paying per-seat assistant fees, which suits cost-sensitive startups and university teaching labs.

For MDEC-aligned digital skills programmes and HRD Corp training, an openly licensed code model is also legally unambiguous: its licence and data provenance can be reviewed before classroom or commercial deployment, unlike APIs whose training-data position is undisclosed. Penang's semiconductor and AI ecosystem and local engineering firms building EDA, firmware and embedded tooling stand to benefit from models whose training corpus includes permissively licensed hardware-adjacent code. Finally, The Stack's opt-out process is a concrete reference point for Malaysian policy discussions on code and copyright under PDPA and forthcoming AI legislation.

References

  1. ↑Hugging Face / ServiceNow. StarCoder: A State-of-the-Art LLM for Code. https://huggingface.co/blog/starcoder
  2. ↑BigCode Project. About and Models. https://www.bigcode-project.org/docs/about/models/
  3. ↑Lozhkov et al. (2024). StarCoder2 and The Stack v2: The The Next Generation. https://arxiv.org/abs/2402.19173