Written by Jakub Rusinowski · Last updated February 28, 2024
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, computed from the model's parameter count and published architecture — not a throughput model. See /en/methodology.
StarCoder 2 15B needs about 11 GB VRAM at Q4_K_M.
| Quant | Bits/weight | Weights | Total VRAM |
|---|---|---|---|
| Q2_K | 2.63 | 5.1 GB | 6.6 GB |
| Q3_K_M | 3.41 | 6.6 GB | 8.1 GB |
| Q4_K_M | 4.83 | 9.4 GB | 10.8 GB |
| Q5_K_M | 5.67 | 11.0 GB | 12.5 GB |
| Q6_K | 6.56 | 12.7 GB | 14.2 GB |
| Q8_0 | 8.50 | 16.5 GB | 17.9 GB |
| F16 | 16.00 | 31.0 GB | 32.5 GB |
Switch quantization in the interactive calculator, or see the full StarCoder 2 model page.
or compare on Vast.ai from $0.35/hr (typical low · varies)
As an Amazon Associate we earn from qualifying purchases. Cloud GPU links are referral links — we may earn a commission at no extra cost to you.
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?utm_source=badge&utm_medium=referral&utm_campaign=readme_badge&utm_content=starcoder2-15b)
Estimates only — actual VRAM varies with context length, batch size, runtime and KV-cache settings.