VOOZH about

URL: https://willitrunai.com/models/starcoder2-3b

โ‡ฑ StarCoder2 3B VRAM Requirements โ€” GPU Compatibility


๐Ÿ‘ BigCode
BigCode

StarCoder2 3B

Current
๐Ÿ‘ huggingface
HuggingFace๐Ÿ‘ ollama
Ollama
Feb 2024Released16K tokensContextBigCode OpenRAIL-MLicense1 EntryQuality

StarCoder2 3B (3B parameters) requires approximately 4.1 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 5 GB of VRAM.

Get started

โ€” copy & paste to run locally

Copy-paste commands to run StarCoder2 3B on your machine.

Run

ollama run starcoder2:3b

Quick specs

Parameters3B
Architecturedense
Context16K tokens
Modalitytext
Min RAM1.2 GB
Rec. RAM1.8 GB (Q4_K_M)
LicenseBigCode OpenRAIL-M
FamilyStarCoder
โœ“ Code

About this model

StarCoder2 3B is a compact code generation model trained on 600+ programming languages from The Stack v2.

Related models

Your hardware

Detecting...

Quick picks

๐Ÿ‘ Intel
Best budgetC
Intel Arc A380 6GB~$139 โ€” 42 tok/s
๐Ÿ‘ NVIDIA
Best overallC
RTX 2060 6GB~$349 โ€” 42 tok/s

Best hardware

Top picks for StarCoder2 3B

RTX 2060 6GBC
6 GB
RTX 4050 Laptop 6GBC
6 GB
GTX 1060 6GBC
6 GB
GTX 1660 Super 6GBC
6 GB
GTX 1660 Ti 6GBC
6 GB

Run this model

StarCoder2 3B on RTX 2060 6GBStarCoder2 3B on RTX 4050 Laptop 6GBStarCoder2 3B on GTX 1060 6GB

Quantization options

VRAM estimates by quant level

No hardware detected โ€” fit column shows raw VRAM estimates

QuantBitsVRAMQualityFit
Q2_K
2
1.2 GB
Lowโ€”
Q3_K_S
3
1.5 GB
Lowโ€”
NVFP4
4
1.7 GB
Mediumโ€”
Q4_K_M
4
1.8 GB
Mediumโ€”
Q5_K_M
5
2.2 GB
Highโ€”
Q6_K
6
2.5 GB
Highโ€”
Q8_0
8
3.2 GB
Very Highโ€”
F16
16
6.1 GB
Maximumโ€”

Quality benchmarks

StarCoder2 3B benchmark scores

Benchmark verified

Coding

SWE-bench Verifiedโ€”
HumanEval+31.7%
Aider Polyglotโ€”
LiveCodeBenchโ€”

Reasoning

MMLU-Pro7.1%
GPQA Diamondโ€”
MATH-5001.5%
ARC Challengeโ€”

General

Chatbot Arenaโ€”
IFEval20.4%

Source: official ยท 2024-02-28

Hardware compatibility

Fit estimates across all hardware

Open calculator

Computing compatibility...

Memory breakdown

Reference: RTX 2060 6GB

Weights1.8 GB
KV Cache0.5 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” StarCoder2 3B

See also

Quantization GuideScoring MethodologyVRAM Calculator