What GPU do I need to run bigcode/starcoder2-3b?
3.0B parameters, published in F32. View on Hugging Face
starcoder2-3b is published by bigcode on Hugging Face, with 118,497 downloads and 222 likes to date. It's a Starcoder2ForCausalLM model built for text-generation, published natively in F32.
VRAM required & cheapest live GPU fit
Required VRAM = weight size at each precision, plus a fixed overhead for KV-cache, activations, and fragmentation. Full formula and assumptions: methodology.
A GPU is only matched to a row if its hardware supports that precision, and the primary recommendation is always a single-GPU fit when one exists.
INT4 requires a quantized checkpoint actually published for this model, check its Hugging Face page before relying on this row.
Cheapest way to run starcoder2-3b at its published (F32) precision: 1× V100 on simplepod, at $0.060/hr per GPU ($0.060/hr total). Quantizing to FP8 or INT4 (rows above) can cost less, but requires a compatible quantized checkpoint to exist for this model.
starcoder2-3b: common questions
Does starcoder2-3b fit on a 16 GB GPU?
Yes. At FP32 it needs 13.5 GB of VRAM, so a 16 GB card holds it with 2.5 GB to spare. A 12 GB card is not enough for it at FP32.
Can starcoder2-3b run in 16-bit instead of FP32?
Yes. Its published weights are FP32, 11.3 GB, or 13.5 GB once inference overhead is added. Loading the same weights in 16 bits halves that to 5.6 GB, or 6.8 GB with overhead. That moves it onto an 8 GB card instead of a 16 GB one. How much accuracy the cast costs is model-specific and is not measured here.
What is the least VRAM starcoder2-3b can run in?
1.7 GB, at INT4 (quantized), which fits a 6 GB card, against 13.5 GB at FP32. That row assumes an INT4 checkpoint has actually been published for this model, so check its Hugging Face page before planning around it.
Does quantizing starcoder2-3b lower the GPU bill?
Yes. At FP32 the cheapest live fit is one V100 on simplepod at $0.060/hr. At INT4 (quantized) it drops to one RTX 3070 on simplepod at $0.050/hr, provided a quantized checkpoint exists for it.
Weight-to-VRAM math, the fit rules, and how live prices are normalized: full methodology.
More bigcode models
- starcoder2-7b (7.2B, BF16)
- gpt_bigcode-santacoder (1.1B, F16)
- bert-base-uncased (110M, F32)
- Qwen3-0.6B (752M, BF16)
- gpt2 (137M, F32)
- Qwen3-8B (8.2B, BF16)