StarCoder 2 3B — VRAM Requirements

作者: Jakub Rusinowski · 最后更新: 2026年7月21日

How much GPU VRAM you need to run StarCoder 2 StarCoder 2 3B by BigCode locally, a 3B-parameter model. Figures are quantized weights + KV cache + framework overhead from a memory-bandwidth roofline model.

StarCoder 2 3B needs about 3 GB VRAM at Q4_K_M.

VRAM by Quantization

QuantBits/weightWeightsTotal VRAM
Q2_K2.631.0 GB1.8 GB
Q3_K_M3.411.3 GB2.1 GB
Q4_K_M4.831.8 GB2.6 GB
Q5_K_M5.672.1 GB2.9 GB
Q6_K6.562.5 GB3.3 GB
Q8_08.503.2 GB4.0 GB
F1616.006.0 GB6.8 GB

Switch quantization in the interactive calculator, or see the full StarCoder 2 model page.

Add this badge to your model card

Model creators: paste this into your Hugging Face model card README to link readers straight to this VRAM breakdown.

VRAM Requirements

[![VRAM Requirements](https://img.shields.io/badge/Check_VRAM-LLM_Configurator-blue)](https://llmconfigurator.com/en/vram-calculator/starcoder2-3b)

Estimates only — actual VRAM varies with context length, batch size, runtime and KV-cache settings.