Skip to main content
Hugging FaceReleased February 28, 2024

StarCoder2 15B

Open Source15B parameters

StarCoder2 15B is Hugging Face's entry in a crowded field. Context window: 0.016K tokens.

Context

16K

Input

Free (open)

Key Specifications

🏆

Arena Rank

Not disclosed

📐

Context Window

16K

📥

Input Price

per 1M tokens

Free (open)

📤

Output Price

per 1M tokens

Free (open)

🧠

Parameters

15B

🔓

Open Source

Yes

Best For

Code completioncode generationdevelopment

About StarCoder2 15B

StarCoder2 15B, developed by Hugging Face in collaboration with ServiceNow and NVIDIA as part of the BigCode initiative, is an open-source code model with 15 billion parameters and a 16K token context window. The model was trained on The Stack v2, a curated dataset of over 619 programming languages sourced from permissively licensed repositories. StarCoder2 excels at code completion, generation, explanation, and bug detection. It achieves strong scores on HumanEval and MBPP coding benchmarks, competing with larger proprietary coding models. Free and open-source under a responsible AI license, it supports commercial use with ethical guidelines. The model represents a community-driven approach to AI development, with transparent data sourcing and governance. It has become a foundation for open-source coding assistants and IDE integrations across the developer tools ecosystem.

Pricing per 1M tokens

Input Tokens

Free (open)

Output Tokens

Free (open)

Other Hugging Face Models

Frequently Asked Questions

What is StarCoder2 15B?
StarCoder2 15B, developed by Hugging Face in collaboration with ServiceNow and NVIDIA as part of the BigCode initiative, is an open-source code model with 15 billion parameters and a 16K token context window. The model was trained on The Stack v2, a curated dataset of over 619 programming languages sourced from permissively licensed repositories. StarCoder2 excels at code completion, generation, explanation, and bug detection. It achieves strong scores on HumanEval and MBPP coding benchmarks, competing with larger proprietary coding models. Free and open-source under a responsible AI license, it supports commercial use with ethical guidelines. The model represents a community-driven approach to AI development, with transparent data sourcing and governance. It has become a foundation for open-source coding assistants and IDE integrations across the developer tools ecosystem.
How much does StarCoder2 15B cost?
Hugging Face charges Free (open) per 1M input tokens for StarCoder2 15B, with output at Free (open). Competitive with other models in its tier.
What is StarCoder2 15B's context window?
StarCoder2 15B supports up to 16K tokens per request. A larger context window allows the model to reason over longer inputs, which matters for document analysis, code review, and multi-turn conversations.
Is StarCoder2 15B open source?
Yes — Hugging Face released StarCoder2 15B as open source. That means you're free to deploy it however you want: cloud, on-prem, edge. No API lock-in.
What is StarCoder2 15B best for?
Hugging Face positions StarCoder2 15B for: Code completion, code generation, development. Real-world performance will depend on your specific prompts and data, but these are the intended strengths.