BigCode/Dense

BigCodeStarCoder2 3B

BigCode's 3B coder trained on The Stack v2. Fast code completion.

coding
3B
Parameters
16K
Context length
7
Benchmarks
6
Quantizations
0
Architecture
Dense
Released
2024-02-28
Layers
30
KV Heads
2
Head Dim
128
Family
starcoder

Quantization Options

QuantBitsVRAMQuality
Q4_K_M4.892.3 GBgood
Q5_K_S5.572.6 GBgood
Q5_K_M5.72.6 GBgood
Q6_K6.562.9 GBexcellent
Q8_08.53.7 GBlossless
FP16166.5 GBlossless

Select your GPU above to see speed estimates and compatibility for each quantization.

READY TO RUN THIS?RENT BY THE HOUR

RENT A GPU AND RUN STARCODER2 3B NOW

Spin up an A100 / H100 / 4090 in ~60s. Pay by the second. Cancel anytime.

Community Ratings

Loading ratings...

Benchmarks (7)

HumanEval27.4
IFEval20.4
BBH8.9
MMLU-PRO7.1
MATH1.5
MUSR1.4
GPQA0.0

Run this model

Easiest way to get started·Beginners
DOCS ↗
curl -fsSL https://ollama.com/install.sh | sh
$ollama run starcoder2:3b-q4_K_M

Downloads and runs automatically. Add --verbose for speed stats.

▸ SETUP GUIDE
>_

Auto-setup with fitmyllm CLI

Detects your GPU, recommends the best model, downloads it, and starts chatting — zero config. Benchmarks your speed and contributes anonymous data to improve predictions.

pip install fitmyllmthen run fitmyllmLearn more
Auto-detect GPULive tok/s in chatSpeed benchmarks9 inference engines

GPUs that can run this model

At Q4_K_M quantization. Sorted by minimum VRAM.

NVIDIA Tesla C2050
3 GB VRAM • 144 GB/s
NVIDIA
NVIDIA Tesla M2050
3 GB VRAM • 148 GB/s
NVIDIA
NVIDIA Tesla S2050
3 GB VRAM • 148 GB/s
NVIDIA

Find the best GPU for StarCoder2 3B

Build Hardware for StarCoder2 3B

BigCode's 3B coder trained on The Stack v2. Fast code completion.

▸ SPEC SHEET

StarCoder2 3B3B Dense.

▸ SPECIFICATIONS
PARAMETERS
3B
ARCHITECTURE
Dense Transformer
CONTEXT LENGTH
16K tokens
CAPABILITIES
coding
RELEASE DATE
2024-02-28
PROVIDER
BigCode
FAMILY
starcoder
▸ VRAM REQUIREMENTS
QUANTBPWVRAMQUALITY
Q4_K_M4.892.3 GB94%
Q5_K_S5.572.6 GB96%
Q5_K_M5.72.6 GB96%
Q6_K6.562.9 GB97%
Q8_08.53.7 GB100%
FP16166.5 GB100%
§ 01BENCHMARK SCORES
HumanEval27.4
MMLU-PRO7.1
MATH1.5
IFEval20.4
BBH8.9
GPQA0.0
MUSR1.4
§ 02RUN COMMAND

Run StarCoder2 3B locally with Ollama — needs 2.3 GB VRAM at Q4_K_M:

$ollama run starcoder2:3b