LLM Reference

StarCoder 2 Models by ServiceNow Research

4 models2024Up to 16k ctxFrom $0.1/1M input

About

StarCoder 2 is an advanced family of open large language models (LLMs) adept at code generation, developed collaboratively by BigCode, Hugging Face, and NVIDIA. This model family includes variants with 3 billion, 7 billion, and 15 billion parameters. Trained on The Stack v2, a colossal dataset over 4 trillion tokens and more than 600 programming languages, StarCoder 2 is built for high performance. It leverages innovative techniques like Grouped Query Attention, a 16,384-token context window, and a 4,096-token sliding window attention, employing the Fill-in-the-Middle objective during training. The StarCoder2-15B model, in particular, showcases exceptional capabilities, often matching or surpassing larger models. Available under the BigCode OpenRAIL-M v1 license, StarCoder 2 offers extensive potential for complex code-based applications134.

Current Variants

Use-when guidance is derived from seed capabilities, context, release, and replacement fields.

3 in view1 retired

Use when the workload needs 8k context and 7B parameters.

2024-078k context7B parameters

Use when the workload needs 8k context and 3B parameters.

2024-078k context3B parameters

Use when the workload needs 16k context, 15B parameters, and structured outputs.

2024-0716k context15B parametersstructured outputs

Release Timeline

1 release group
2024-07
3 current · 1 retired
DeepInfra StarCoder2 15B
16k context15B parametersstructured outputs
Current
StarCoder2 15B
8k context15B parametersstructured outputs
Archived
StarCoder2 3B
8k context3B parameters
Current
StarCoder2 7B
8k context7B parameters
Current

Specifications(4 models)

StarCoder 2 model specifications comparison
ModelReleasedContextParametersStructured Outputs
StarCoder2 7B2024-078k7BNo
StarCoder2 3B2024-078k3BNo
DeepInfra StarCoder2 15B2024-0716k15BYes

Available From(3 providers)

Pricing

StarCoder 2 model pricing by provider
ModelProviderInput / 1MOutput / 1MType
StarCoder2 3BFireworks AI$0.1$0.1Provisioned
StarCoder2 7BFireworks AI$0.2$0.2Serverless
DeepInfra StarCoder2 15BDeepInfra$0.2$0.6Serverless

Frequently Asked Questions

What is StarCoder 2 used for?
StarCoder 2 is used for coding and structured outputs. The family description and listed model capabilities point to those workloads as the best fit.
How does StarCoder 2 compare to StarCoder?
StarCoder 2 by ServiceNow Research is strongest where you need coding, while StarCoder by ServiceNow Research is the closest related family to check for coding. StarCoder 2 has 4 listed variants and reaches up to 16k context, while StarCoder reaches up to 8k context, so compare the specs and pricing tables before choosing a production model.
Which StarCoder 2 model should I use?
For the lowest listed input price, start with StarCoder2 3B through Fireworks AI at $0.1/1M input tokens. For the most capable/latest local choice, evaluate DeepInfra StarCoder2 15B with 16k context and structured outputs.

Models(4)