LLMs ·

StarCoder2 15B (base)

Parameters
16B
Architecture
Dense
Max context
16K tokens
License
bigcode-openrail-m
Released
2024-02

How to run it

Quickest · Ollama

One command downloads a ready-to-run version and starts a chat.

ollama run starcoder2:15b

Get Ollama at ollama.com/download (opens in a new tab) · model page (opens in a new tab)

Quantized files · GGUF

Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.

huggingface.co/QuantFactory/starcoder2-15b-GGUF (opens in a new tab)

ollama run hf.co/QuantFactory/starcoder2-15b-GGUF

Original weights · Hugging Face

Full-precision files from BigCode, for fine-tuning, vLLM, Transformers.

huggingface.co/bigcode/starcoder2-15b (opens in a new tab)

No sign-in needed.

Memory needed

Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps.

Quantization Quality Weights Total at 8K context Total at 16K context Download
Q2_K Low 6.4 GB 7.7 GB 8.3 GB GGUF (opens in a new tab)
Q3_K_M Low 7.8 GB 9.1 GB 9.8 GB GGUF (opens in a new tab)
Q4_K_M Good 9.7 GB 11.0 GB 11.7 GB GGUF (opens in a new tab)
Q5_K_M High 11.3 GB 12.6 GB 13.3 GB GGUF (opens in a new tab)
Q6_K High 13.1 GB 14.4 GB 15.0 GB GGUF (opens in a new tab)
Q8_0 Very high 16.9 GB 18.2 GB 18.9 GB GGUF (opens in a new tab)
F16 Full 31.9 GB 33.2 GB 33.9 GB Original weights (opens in a new tab)

Best hardware for StarCoder2 15B (base)

The least expensive GPU in our catalog that runs it without offloading is the Intel Arc B570 (launch price $219) at Q2_K.

Grade · points Hardware Quant Memory Speed Fit
69 ptsGood (B) · 69 of 100 points: Model quality 14.4/45, Memory fit 25.0/25, Speed 14.9/15, Memory use 15.0/15 NVIDIA GeForce RTX 4090 Q8_0 19.4 GB / 24.0 GB 39.5 tok/s Runs well
69 ptsGood (B) · 69 of 100 points: Model quality 14.3/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 AMD Radeon RX 7900 XTX Q6_K 15.6 GB / 24.0 GB 44.1 tok/s Runs well
69 ptsGood (B) · 69 of 100 points: Model quality 14.3/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 3090 Q6_K 15.6 GB / 24.0 GB 49.9 tok/s Runs well
68 ptsGood (B) · 68 of 100 points: Model quality 14.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4070 Ti SUPER Q5_K_M 13.4 GB / 16.0 GB 42.7 tok/s Runs well
68 ptsGood (B) · 68 of 100 points: Model quality 14.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 4080 SUPER Q5_K_M 13.4 GB / 16.0 GB 46.8 tok/s Runs well
68 ptsGood (B) · 68 of 100 points: Model quality 14.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 5070 Ti Q5_K_M 13.4 GB / 16.0 GB 56.9 tok/s Runs well
68 ptsGood (B) · 68 of 100 points: Model quality 14.0/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 NVIDIA GeForce RTX 5080 Q5_K_M 13.4 GB / 16.0 GB 61.0 tok/s Runs well
68 ptsGood (B) · 68 of 100 points: Model quality 13.7/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 15.0/15 AMD Radeon RX 9070 XT Q4_K_M 11.8 GB / 16.0 GB 42.4 tok/s Runs well
68 ptsGood (B) · 68 of 100 points: Model quality 14.4/45, Memory fit 25.0/25, Speed 15.0/15, Memory use 14.3/15 NVIDIA GeForce RTX 5090 Q8_0 19.8 GB / 32.0 GB 70.2 tok/s Runs well
67 ptsGood (B) · 67 of 100 points: Model quality 13.7/45, Memory fit 25.0/25, Speed 13.9/15, Memory use 15.0/15 NVIDIA GeForce RTX 5060 Ti 16GB Q4_K_M 11.8 GB / 16.0 GB 34.5 tok/s Runs well

Check it on your own hardware

Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.