StarCoder needs about 10.6 GB of memory at Q4_K_M (a 10.0 GB file) with an 8K context window, so it fits on a 12 GB GPU. This repository has 21 quants, from 3.6 GB (IQ1_S) to 12.9 GB (Q6_K).
StarCoder 15B: Large‑scale code generation model
StarCoder is a 15 billion‑parameter model fine‑tuned on the MultiPL‑T dataset. It excels at generating code across many programming languages and supports a 8192‑token context window. The model is available in multiple GGUF quantizations.
Good at
- Code generation across many languages
- Large context handling
- Fine‑tuned on MultiPL‑T
Limits
- Requires a dedicated GPU for inference
- No vision support
- License: bigscience‑openrail‑m
Best for
- Developers needing multi‑language code assistance
- Research on code generation models
- Generating long code snippets
Who it’s for. Engineers and researchers who need a powerful code‑generation model and have access to a GPU. The model is suitable for tasks that require long‑context code understanding.
Quants & memory
| Quant | File | Est. memory | vs VRAM | Result | |
|---|---|---|---|---|---|
| IQ1_S | 3.6 GB | 4.2 GB | Fits | Get file → | |
| IQ1_M | 3.9 GB | 4.5 GB | Fits | Get file → | |
| IQ2_XXS | 4.4 GB | 5.1 GB | Fits | Get file → | |
| IQ2_XS | 4.8 GB | 5.5 GB | Fits | Get file → | |
| IQ2_S | 5.1 GB | 5.8 GB | Fits | Get file → | |
| IQ2_M | 5.5 GB | 6.2 GB | Fits | Get file → | |
| Q2_K | 6.2 GB | 6.9 GB | Fits | Get file → | |
| IQ3_XXS | 6.3 GB | 7.0 GB | Fits | Get file → | |
| IQ3_XS | 6.8 GB | 7.4 GB | Tight | Get file → | |
| IQ3_S | 7.0 GB | 7.6 GB | Tight | Get file → | |
| Q3_K_S | 7.0 GB | 7.6 GB | Tight | Get file → | |
| IQ3_M | 7.5 GB | 8.2 GB | Too big | Get file → | |
| Q3_K_M | 8.2 GB | 8.9 GB | Too big | Get file → | |
| IQ4_XS | 8.5 GB | 9.2 GB | Too big | Get file → | |
| Q4_0 | 9.0 GB | 9.7 GB | Too big | Get file → | |
| Q4_K_S | 9.1 GB | 9.8 GB | Too big | Get file → | |
| Q3_K_L | 9.1 GB | 9.8 GB | Too big | Get file → | |
| Q4_K_M | 10.0 GB | 10.6 GB | Too big | Get file → | |
| Q5_K_S | 10.9 GB | 11.6 GB | Too big | Get file → | |
| Q5_K_M | 11.5 GB | 12.2 GB | Too big | Get file → | |
| Q6_K | 12.9 GB | 13.6 GB | Too big | Get file → |
For 8 GB VRAM, use IQ1_S (3.58 GB) or IQ1_M (3.88 GB). For 12 GB VRAM, IQ2_S (5.12 GB) or Q2_K (6.2 GB) are suitable. Larger VRAM allows higher‑quality quants such as Q4_K_M (9.97 GB). Memory estimates are approximate.
What GPU do you need for StarCoder?
These figures add the file size, an fp16 KV cache at an 8K context window (worked out from this model’s own header) and about 0.5 GB for the runtime. They are estimates, so leave a little headroom, and expect to use less context or a smaller quant if you are right at the limit.
- 4 GB VRAM: no quant fits at an 8K context.
- 6 GB VRAM: the best quant that fits is IQ2_S (5.1 GB file, about 5.8 GB in use).
- 8 GB VRAM: the best quant that fits is IQ3_S (7.0 GB file, about 7.6 GB in use).
- 12 GB VRAM: the best quant that fits is Q5_K_S (10.9 GB file, about 11.6 GB in use).
- 16 GB VRAM: the best quant that fits is Q6_K (12.9 GB file, about 13.6 GB in use).
Which StarCoder quant should you choose?
Q4_K_M is the usual starting point for StarCoder: it balances file size and quality well. Here it is a 10.0 GB file.
If memory is tight, the smallest file is IQ1_S at 3.6 GB, with the quality trade-offs that come with fewer bits. Use it only when memory is very tight. Expect a clear drop in quality, which is usually worse on small models and easier to live with on large ones.
New to quant names? Read GGUF quantization explained.
Specifications
Architecture from the GGUF header
Source
Frequently asked questions about StarCoder
How much VRAM does StarCoder need?
About 10.6 GB at Q4_K_M with an 8K context window. That is the 10.0 GB file, plus the KV cache and roughly 0.5 GB of runtime overhead. Smaller quants need less and longer context needs more.
Can I run StarCoder on an 8 GB GPU?
Yes, with IQ3_S: the 7.0 GB file needs about 7.6 GB at 8K context. Larger quants in this repository do not fit in 8 GB.
What is the file size of StarCoder GGUF?
It depends on the quant: IQ1_S is 3.6 GB, IQ1_M is 3.9 GB, IQ2_XXS is 4.4 GB, IQ2_XS is 4.8 GB, IQ2_S is 5.1 GB, IQ2_M is 5.5 GB and 15 more.
What context length does StarCoder support?
The GGUF header lists a trained context length of 8,192 tokens (8K). The KV cache grows with the context you use: about 0.2 GB at 8K and 0.2 GB at 8K.
Where can I download StarCoder GGUF?
The files are on Hugging Face in the mradermacher/MultiPL-T-StarCoderBase_15b-i1-GGUF repository. The download buttons on this page open the file on Hugging Face. ggufmodels.com does not host any model files.
What license does StarCoder use?
Hugging Face lists the license as bigscience-openrail-m. Licenses can differ between the quantized files and the original model, so check the repository and the base model before commercial use.
Can I run StarCoder on 8 GB VRAM?
Yes, use the IQ1_S or IQ1_M quant, which fit within 8 GB VRAM with estimated memory usage around 4.2–4.5 GB.
Does StarCoder support image inputs?
No, the model has no vision capabilities.
What license applies to StarCoder?
The model is released under the bigscience‑openrail‑m license.