Written by Jakub Rusinowski · Last updated July 21, 2026
How much GPU VRAM you need to run StarCoder 2 StarCoder 2 15B by BigCode locally, a 15.5B-parameter model. Figures are quantized weights + KV cache + framework overhead from a memory-bandwidth roofline model.
StarCoder 2 15B needs about 10 GB VRAM at Q4_K_M.
| Quant | Bits/weight | Weights | Total VRAM |
|---|---|---|---|
| Q2_K | 2.63 | 5.1 GB | 5.9 GB |
| Q3_K_M | 3.41 | 6.6 GB | 7.4 GB |
| Q4_K_M | 4.83 | 9.4 GB | 10.2 GB |
| Q5_K_M | 5.67 | 11.0 GB | 11.8 GB |
| Q6_K | 6.56 | 12.7 GB | 13.5 GB |
| Q8_0 | 8.50 | 16.5 GB | 17.3 GB |
| F16 | 16.00 | 31.0 GB | 31.8 GB |
Switch quantization in the interactive calculator, or see the full StarCoder 2 model page.
Model creators: paste this into your Hugging Face model card README to link readers straight to this VRAM breakdown.
[](https://llmconfigurator.com/en/vram-calculator/starcoder2-15b)
Estimates only — actual VRAM varies with context length, batch size, runtime and KV-cache settings.