StarCoder 2 — Local AI Model by BigCode

The premier open-source code generation model. StarCoder 2 is trained on The Stack v2 dataset covering 600+ programming languages. Purpose-built for code completion, generation, and understanding — not a general-purpose model fine-tuned for code.

Hardware Requirements

StarCoder 2 3BMin 2 GB VRAM · Q4_K_M · 16,384 ctx · ollama run starcoder2:3b
StarCoder 2 7BMin 5 GB VRAM · Q4_K_M · 16,384 ctx · ollama run starcoder2:7b
StarCoder 2 15BMin 10 GB VRAM · Q4_K_M · 16,384 ctx · ollama run starcoder2:15b

How to Run Locally

Install Ollama then run: ollama run starcoder2:3b

Minimum VRAM: 2 GB. For best results use Q4_K_M quantization.