StarCoder 2
A solid pick for self-hosting and full data control.
Overview
StarCoder 2 comes from the BigCode collective (HuggingFace + ServiceNow). Apache 2, fully transparent training data, ideal for absolute sovereignty or local/edge deployments. Performance trailing frontiers but it's the only fully transparent one.
Skill profile
Three independent measures
What people prefer, what the model can do, what the market uses. Each source has its biases and none is enough on its own: we show them side by side, never blended.
What do these scores mean?
Python code generation from specifications.
Strengths
- Has a free tier
- Open-source and self-hostable
Limitations
- Light safety filters
- API pricing not disclosed
Who is it for
- you build with a coding agent
- you want to control cost or self-host
- your data must stay in the EU
- you want strict guardrails
Ideal use cases
- Local autocompletion
- Code on edge
- Lightweight apps
- IDE plugins
Access & availability
Key specifications
What it costs per month
Estimate from sourced API prices and a hardware tier for self-hosting. Assumptions are editable.
Assumptions: 36-month amortisation, 0.25 €/kWh, 22 days/month, 1 $ = 0.92 €. Excludes labour, software licences, redundancy.
nAIvigate Trust Index
What the vendor offers and documents for professional use in Europe. An undocumented criterion counts as zero and stays visible: the score rises when the vendor publishes, not when we assume.
19/19 criteria documented · 100 % · 12 of them set by rule
See the criteria▾
Trust Index badge
Show this score in your docs, README or security page. It updates automatically.
[](https://naivigate.com/en/model/starcoder-2)Data & compliance
What we know, line by line, with source and date. These lines feed the Data and Enterprise families of the Trust Index above. GDPR compliance depends on your processing, not on the model alone.
| EU data residency | Yes |
| Data processing agreement (DPA) | N/A· self-hosted: data never leaves |
| Transfer outside the EU | No |
| Training on your data | No |
| Configurable retention | N/A· self-hosted: data never leaves |
| Zero Data Retention | N/A· self-hosted: data never leaves |
| Self-hostable | Yes |
| Declared hosting | EU/self |
| Anonymisable data | Yes |
Quality of this card’s data
This score measures the quality of the data on this card: price, context, Elo, licence, documented, sourced and fresh. It measures neither the model nor its compliance: for that, see the Trust Index above.
6/8 documented · 1/8 primary sources
Run it locally
| Quantization | Disk | RAM / VRAM | Typical hardware |
|---|---|---|---|
| Q4 · recommended | 9.1 GB | 12 GB | 32GB PC / 24GB Mac / RTX 4070 Ti+ |
| Q8 · balanced | 17.1 GB | 21 GB | 32GB Mac / RTX 3090-4090 |
| FP16 · max quality | 32 GB | 37 GB | 64GB Mac / dual 24GB GPUs |
Estimates for a moderate context. Long contexts need more RAM (KV cache).
Deploy
Copy-ready commands generated from this card. Adjust context length and GPU count to your hardware.
Easiest way to try it on a workstation. Install Ollama, then:
ollama run starcoder2:15bAdvanced data · for expertsArchitecture, modalities, detailed cost, full benchmarks▾
| Arena Elo | — |
| MMLU | — |
| GPQA | — |
| HumanEval | 46.3% |
| SWE-Bench | — |
| MATH | — |