Microsoft
CodingAI coding15.5B
Coding

StarCoder 2 15B

StarCoder · BigCode OpenRAIL-M

Trained on The Stack v2 with 619 programming languages. Full fill-in-the-middle (FIM) support for code completion. BigCode's best model, competitive but surpassed by Qwen 2.5 Coder on most benchmarks.

Parameters
15.5B
Architecture
Dense
Context
16,384 tokens
Released
2024-02-28
Engines
llama.cpp, ollama, vLLM
Builder Tools
Continue, LM Studio

Parameters

15.5B

VRAM

10.7 GB

Context

16K

Formats

4

GPUs

21

StarCoder 2 15B (15.5B) requires 10.7 GB VRAM at recommended quality (Q5_K_M). At efficient quality (Q4_K_M), it fits in 9 GB VRAM, making it compatible with the NVIDIA RTX 4060 Laptop (40-60W). On NVIDIA Grace Blackwell Ultra GB300, expect approximately 210 tok/s at Q8_0. For the best experience, Starter AI Desktop ($582) is recommended.

Source: OwnRig methodology

VRAM (Recommended)

10.7 GB

Quantization

Q5_K_M

File Size

9.3 GB

Max Context

16K tokens

Primary Use

Coding

Memory

VRAM Requirements

QualityQuantizationVRAMFile Size
fullQ8_016.8 GB15.5 GB
recommendedQ5_K_M10.7 GB9.3 GB
efficientQ4_K_M9 GB7.8 GB
compressedQ3_K_M7.3 GB6 GB
Scaling

Context Length Impact

KV cache VRAM at Q5_K_M quality. Longer context = more memory.

ContextKV CacheTotal VRAM
2K205 MB10.9 GB
4K410 MB11.1 GB
8K819 MB11.5 GB
16K1.5 GB12.2 GB

Compatible GPUs

21 devices
NVIDIA Grace Blackwell Ultra GB300Q8_0210 tok/sExcellent
NVIDIA GeForce RTX 4090Q8_050 tok/sExcellent
AMD Radeon Pro W7900Q8_054 tok/sExcellent
NVIDIA GeForce RTX 4060 Ti 16GBQ5_K_M25 tok/sGood
AMD Radeon RX 7900 XTXQ8_043 tok/sGood
NVIDIA RTX PRO 6000 BlackwellQ8_063 tok/sGood
NVIDIA RTX PRO 6000 Blackwell Max-QQ8_058 tok/sGood
AMD Radeon RX 9070Q5_K_M44 tok/sGood
NVIDIA GeForce RTX 5060 Ti 16GBQ5_K_M28 tok/sGood
NVIDIA GeForce RTX 3080 10GBQ3_K_M22 tok/sAcceptable
NVIDIA RTX 4060 Laptop (40-60W)Q3_K_M10 tok/sAcceptable
NVIDIA RTX 4070 Laptop (80-115W)Q3_K_M11 tok/sAcceptable
NVIDIA GeForce RTX 4070 Ti 12GBQ3_K_M28 tok/sAcceptable
NVIDIA RTX 4080 Laptop (120-150W)Q3_K_M20 tok/sAcceptable
NVIDIA RTX 4090 Laptop (150-175W)Q5_K_M21 tok/sAcceptable
AMD Radeon RX 9060 XT 16GBQ5_K_M22 tok/sAcceptable
Apple M3 Pro (18GB Unified)Q3_K_M4 tok/sMarginal
NVIDIA GeForce RTX 4060 8GBQ3_K_M16 tok/sMarginal
AMD Radeon RX 7600Q3_K_M4 tok/sMarginal
NVIDIA GeForce RTX 5060 8GBQ3_K_M18 tok/sMarginal
AMD Radeon RX 9060 XT 8GBQ5_K_MNot viable

Showing 21 of 21 entries

Builder Context

StarCoder 2 15B is commonly used with Continue, LM Studio. For an AI coding workflow, pair it with an embedding model like nomic-embed-text for local RAG.

FAQ

Frequently Asked Questions

How much VRAM does StarCoder 2 15B need?
StarCoder 2 15B requires 10.7 GB VRAM at recommended quality (Q5_K_M). At lower quality settings, it can fit in as little as 7.3 GB.
What is the best GPU for StarCoder 2 15B?
The NVIDIA Grace Blackwell Ultra GB300 delivers the best performance for StarCoder 2 15B, achieving 210 tok/s at Q8_0 with an excellent rating.
Can I run StarCoder 2 15B on an RTX 4060 Ti?
Yes. On the NVIDIA GeForce RTX 4060 Ti 16GB, StarCoder 2 15B runs at 25 tok/s (Q5_K_M, good).
What quantization should I use for StarCoder 2 15B?
For the best quality, use Q5_K_M (10.7 GB VRAM). If your GPU has limited VRAM, Q3_K_M (7.3 GB) is the most efficient option with acceptable quality.
Is StarCoder 2 15B good for coding?
Yes. StarCoder 2 15B is used with Continue, LM Studio for local AI coding. For the best coding experience, pair it with an embedding model for local RAG.
All models

Data confidence: verified. Source

VRAM requirements are calculated from model parameters and may vary by inference engine, context length, and batch size. Performance estimates are based on community benchmarks and should be verified for your specific configuration.StarCoder is a trademark of its respective owner. OwnRig is not affiliated with or endorsed by the model creator.