# Atlas with StarCoder2 15B (Ollama): The Provenance Choice in 2026

> StarCoder2 15B (Ollama) is a 9.1GB BigCode model with a 16K token (16,384) context, Free (self-hosted), and the clearest training-data provenance in the Ollama library.

StarCoder2 15B (Ollama) is BigCode's largest StarCoder2 at 9.1GB, and inside Atlas it is the strongest option when training-data provenance matters. StarCoder2 was trained transparently on permissively licensed code, which is a procurement argument that has nothing to do with benchmarks. Pricing is Free (self-hosted). The context window is 16K tokens (16,384), which is restrictive for agentic tool loops.

## Key takeaways

- StarCoder2 15B (Ollama) is BigCode's largest StarCoder2 at 9.1GB, with the clearest training-data provenance of any code model in the Ollama library.
- Roughly 11GB to serve, which is a 12GB card or a 16GB Apple Silicon machine, and a 15b-instruct tag ships at the same size.
- The context window is 16K tokens (16,384), which is restrictive for agentic tool loops.
- Strong multi-language coverage shows on polyglot repos where a Python-centric model stumbles.
- Benchmark-for-benchmark it trails Qwen2.5-Coder 14B at a similar footprint: you are trading raw quality for provenance.

## Why choose StarCoder2 15B for training-data provenance?

StarCoder2 15B (Ollama) has the clearest provenance story of any code model in the Ollama library. The BigCode project documented its training corpus transparently and trained on permissively licensed code, which is a real procurement argument that has nothing to do with benchmarks.

Provenance is a question that benchmark tables never answer. When legal or procurement asks what code the model was trained on, most vendors cannot say. BigCode can, and that is the specific reason to run StarCoder2 15B behind Atlas rather than a higher-scoring alternative. The argument extends naturally to how you index: pair the model with local Ollama embeddings so a codebase you are careful about licensing is never uploaded for indexing either. Serving the model locally and embedding locally means the license posture of your own repository is preserved end to end, not just at generation time.

## How much hardware does StarCoder2 15B need?

StarCoder2 15B (Ollama) is a 9.1GB download and expects roughly 11GB of VRAM, which is a 12GB card or a 16GB Apple Silicon machine. An instruct tag, 15b-instruct, ships at the same size for agent-style turns in Atlas.

Two tags matter for StarCoder2 15B. Pull the base with ollama pull starcoder2:15b (9.1GB) for completion, and ollama pull starcoder2:15b-instruct for chat-style agent turns, which is what an Atlas session mostly does. Both land at the same footprint, so the choice costs nothing in memory. Add starcoder2:15b to the ollama models map in atlas.json with limit.context 16384 and limit.output 4096, run atlas models ollama to confirm the provider resolved, then set model to ollama/starcoder2:15b.

## Is StarCoder2 15B good for polyglot repositories?

Yes. StarCoder2 15B (Ollama) has strong multi-language coverage, which shows on polyglot repositories where a Python-centric model stumbles. At 9.1GB and roughly 11GB to serve, it is the practical choice when one repository spans several ecosystems.

Most code models skew toward whichever language dominated their training mix, and in practice that is usually Python. StarCoder2 15B does not skew that hard, which is a direct consequence of the BigCode corpus being broad and documented. On a repository that mixes languages, that breadth is worth more than a couple of benchmark points in a single one. Atlas amplifies this: it indexes code by AST declarations using tree-sitter, so retrieval is language-aware across the tree, and hybrid semantic plus keyword search fused by reciprocal rank fusion surfaces the right declaration regardless of which ecosystem it came from.

## What are the tradeoffs of running StarCoder2 15B?

StarCoder2 15B (Ollama) trails Qwen2.5-Coder 14B benchmark-for-benchmark at a similar footprint, so you are trading raw quality for provenance. The 16K token (16,384) context is also restrictive for agentic tool loops, where transcripts and retrieved code fill the window fast.

Be honest about the deal StarCoder2 15B offers. A comparable-size Qwen2.5-Coder 14B will generally produce better code, and if benchmarks are the only axis you care about, that is the model to run. StarCoder2 15B wins when the transparent, documented BigCode training corpus is worth more to you than the delta in quality, which is a legal and procurement judgment, not a technical one. The 16K window is a separate constraint and applies regardless. Configure Atlas retrieval to be narrow and declaration-scoped so the window is spent on relevant code.

## When should you pick a different model than StarCoder2 15B?

Pick a different model than StarCoder2 15B (Ollama) when provenance is not a requirement. Qwen2.5-Coder 14B has a similar footprint and beats StarCoder2 15B benchmark-for-benchmark, and the 16K token (16,384) context here is restrictive for long agentic tool loops.

StarCoder2 15B is a deliberate choice, not a default. Take it when a documented, permissively licensed training corpus is a hard requirement from legal or procurement. Leave it when it is not, because you are paying for that clarity in code quality. Because Atlas lets you switch the active model and provider on the fly with favorites and recents, you can register both tags in atlas.json and use StarCoder2 15B where the provenance constraint binds and something else where it does not. Either way, keep the codebase index on local Ollama embeddings so the licensing posture of your own code is preserved.

## Setup

1. Pull the largest size: ollama pull starcoder2:15b (9.1GB). For chat turns use ollama pull starcoder2:15b-instruct.
2. Expect roughly 11GB of VRAM; that is a 12GB card or a 16GB Apple Silicon machine.
3. Add starcoder2:15b to the ollama models map in atlas.json with limit.context 16384 and limit.output 4096.
4. Run atlas models ollama to confirm the provider resolved, then set model to ollama/starcoder2:15b.
5. Pair it with local Ollama embeddings so a codebase you are careful about licensing is never uploaded for indexing either.

## FAQ

### how to run starcoder2 15b with atlas

Run ollama pull starcoder2:15b (9.1GB), add starcoder2:15b to the ollama models map in atlas.json with limit.context 16384 and limit.output 4096, confirm with atlas models ollama, then set model to ollama/starcoder2:15b.

### which code model has the clearest training data provenance

StarCoder2 15B (Ollama). The BigCode project trained it transparently on permissively licensed code with a documented corpus, the clearest provenance story of any code model in the Ollama library.

### how much vram does starcoder2 15b need

Expect roughly 11GB of VRAM against a 9.1GB download, which is a 12GB card or a 16GB Apple Silicon machine.

### starcoder2 15b vs qwen2.5-coder 14b

Benchmark-for-benchmark StarCoder2 15B trails Qwen2.5-Coder 14B at a similar footprint. You choose StarCoder2 15B when a transparent, documented training corpus is worth more than the quality delta.

### what is the context window of starcoder2 15b

StarCoder2 15B (Ollama) has a 16K token (16,384) context window, which is restrictive for agentic tool loops. Register limit.context 16384 in atlas.json.

### is there an instruct version of starcoder2 15b

Yes. Use ollama pull starcoder2:15b-instruct for chat-style agent turns. It ships at the same 9.1GB size as the base tag.

### best local model for polyglot codebases

StarCoder2 15B (Ollama) has strong multi-language coverage, which shows on polyglot repos where a Python-centric model stumbles, at 9.1GB and Free (self-hosted) pricing.

---

Canonical HTML: https://runatlas.sh/resources/models/starcoder2-15b-local
Source of truth: aeo_pages row `/resources/models/starcoder2-15b-local` (segment: Models) (this file is generated from it, never hand-edited).
Licence: Atlas is proprietary with a free core. It is not open source and there is no public source repository.
