BigCode
StarCoder 15B (15B parameters) requires approximately 27.2 GB of VRAM with Q5_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 32 GB of VRAM.
Get started
— copy & paste to run locallyCopy-paste commands to run StarCoder 15B on your machine.
Run
lms load starcoder && lms server startQuick specs
About this model
Related models
Inference speed
Estimated decode speed (tokens/sec) for StarCoder 15B at Q5_K_M across popular GPUs and Apple Silicon, using the fastest local runtime per device. Fastest is RTX 5090 32GB at ~113 tok/s. Speed is memory-bandwidth bound, so cards that fit the whole model in VRAM run far faster than ones that offload to system RAM.
| GPU / Mac | Memory | Quant | Speed (tok/s) | Fits? |
|---|---|---|---|---|
| 32 GB | Q5_K_M | 113.4 | Tight | |
Mac Studio M3 Ultra 256GB | 256 GB | Q5_K_M | 52.6 | Fits |
Mac Studio M2 Ultra 128GB | 128 GB | Q5_K_M | 43.8 | Fits |
Mac Studio M1 Ultra 128GB | 128 GB | Q5_K_M | 41.6 | Fits |
| 24 GB | Q5_K_M | 36.3 | Too big | |
RX 7900 XTX 24GB | 24 GB | Q5_K_M | 32.8 | Too big |
| 24 GB | Q5_K_M | 31.1 | Too big | |
MacBook Pro M4 Max 128GB | 128 GB | Q5_K_M | 30.0 | Fits |
MacBook Pro M4 Max 64GB | 64 GB | Q5_K_M | 30.0 | Fits |
MacBook Pro M3 Max 64GB | 64 GB | Q5_K_M | 22.7 | Fits |
MacBook Pro M1 Max 64GB | 64 GB | Q5_K_M | 20.8 | Fits |
MacBook Pro M4 Pro 48GB | 48 GB | Q5_K_M | 18.3 | Tight |
| 16 GB | Q5_K_M | 13.1 | Too big | |
| 12 GB | Q5_K_M | 5.4 | Too big | |
| 12 GB | Q5_K_M | 3.4 | Too big | |
| 8 GB | Q5_K_M | 2.8 | Too big |
Estimates for single-stream decoding at Q5_K_M; real tokens/sec varies with prompt length, context, batch size, and runtime build. Prompt processing (prefill) is faster than the decode figures shown here.
Quick picks
Best hardware
Run this model
Quantization
How much VRAM StarCoder 15B (15B) needs at each GGUF quant, and whether it fits a 24 GB card (RTX 4090 / 3090). The recommended Q5_K_M uses ~10.8 GB — about 33% less VRAM than Q8_0, at a small quality cost.
| Quant | Bits | VRAM (weights) | Quality | Fits 24 GB? |
|---|---|---|---|---|
| Q2_K | 2 | 5.9 GB | Low | Offloads |
| Q3_K_S | 3 | 7.4 GB | Low | Offloads |
| NVFP4 | 4 | 8.4 GB | Medium | Heavy offload |
| Q4_K_M | 4 | 9.2 GB | Medium | Heavy offload |
| Q5_K_Mrecommended | 5 | 10.8 GB | High | Heavy offload |
| Q6_K | 6 | 12.3 GB | High | Too big |
| Q8_0 | 8 | 16.1 GB | Very High | Too big |
| F16 | 16 | 30.7 GB | Maximum | Too big |
VRAM shown is quantized weights only; add ~1–3 GB runtime overhead plus KV cache for your context length. Lower quants trade quality for memory — Q4_K_M is the usual sweet spot; Q2/Q3 only when you must fit a bigger model.
Quality benchmarks
Coding
Source: official · 2023-05-04
Hardware compatibility
Computing compatibility...
Memory breakdown
Frequently asked questions
StarCoder 15B (15B parameters) requires approximately 27.2 GB of VRAM with Q5_K_M quantization. Lower quantizations like Q4_K_M use less memory but may reduce quality.
Yes, Mac mini M4 64GB can run StarCoder 15B with a compatibility score of 74/100. It provides 64 GB of memory and achieves approximately 7.5 tokens per second.
The recommended quantization for StarCoder 15B is Q5_K_M, which offers the best balance between model quality and memory efficiency. Higher quantizations preserve more quality but require more VRAM.
The top recommended hardware for StarCoder 15B: NVIDIA A100 40GB (score: 82/100), RTX PRO 5000 Blackwell 48GB (score: 81/100), RTX 6000 Ada 48GB (score: 80/100). These provide the best combination of memory, bandwidth, and compute for running this model locally.
Yes, StarCoder 15B is well-suited for coding as well as reasoning. It was designed with these use cases in mind.
See also