Raises estimated decode speed by about 222%.
Adds memory headroom for longer context windows and future model growth.
~$9,999 MSRP
StarCoder2 15B needs ~18.5 GB VRAM. NVIDIA A16 64GB has 64.0 GB. With Q4_K_M quantization, expect ~51 tok/s.
Operating mode
Interactive favors responsiveness, while light API and scale-out lean harder on serving readiness. The fit stays the same, but the recommendation lens changes.
Current mode
Balanced
Balanced for general local use. Keeps the ranking neutral across personal and serving workflows.
Select quantization to explore
Fit status
Runs well
Decode
51.1 tok/s
TTFT
3785 ms
Safe context
430K
Memory
18.5 GB / 64.0 GB
This setup is broadly balanced for this model.
No major red flags
This recommendation has enough memory headroom and acceptable estimated speed for the selected workload.
| Workload | Grade | Fit | Decode | TTFT | Context |
|---|---|---|---|---|---|
| Chat | C | Runs well | 51.1 tok/s | 2065 ms | 430K |
| Coding | C | Runs well | 51.1 tok/s | 3785 ms | 430K |
| Agentic Coding | C | Runs well | 51.1 tok/s | 5506 ms | 430K |
| Reasoning | C | Runs well | 51.1 tok/s | 4473 ms | 430K |
| RAG | C | Runs well | 51.1 tok/s | 6882 ms | 430K |
Inference speed
Estimated decode speed (tokens/sec) for StarCoder2 15B at Q4_K_M across popular GPUs and Apple Silicon, using the fastest local runtime per device. Fastest is RTX 5090 32GB at ~131 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 | Q4_K_M | 131.2 | Fits | |
| 24 GB | Q4_K_M | 83.7 | Fits | |
RX 7900 XTX 24GB | 24 GB | Q4_K_M | 75.5 | Fits |
| 24 GB | Q4_K_M | 71.6 | Fits | |
| 16 GB | Q4_K_M | 68.3 | Tight | |
Mac Studio M3 Ultra 256GB | 256 GB | Q4_K_M | 60.9 | Fits |
Mac Studio M2 Ultra 128GB | 128 GB | Q4_K_M | 50.7 | Fits |
Mac Studio M1 Ultra 128GB | 128 GB | Q4_K_M | 48.1 | Fits |
MacBook Pro M4 Max 128GB | 128 GB | Q4_K_M | 34.7 | Fits |
MacBook Pro M4 Max 64GB | 64 GB | Q4_K_M | 34.7 | Fits |
| 12 GB | Q4_K_M | 26.7 | Heavy offload | |
MacBook Pro M3 Max 64GB | 64 GB | Q4_K_M | 26.2 | Fits |
MacBook Pro M1 Max 64GB | 64 GB | Q4_K_M | 24.0 | Fits |
MacBook Pro M4 Pro 48GB | 48 GB | Q4_K_M | 21.2 | Fits |
| 12 GB | Q4_K_M | 15.7 | Heavy offload | |
| 8 GB | Q4_K_M | 5.9 | Too big |
Estimates for single-stream decoding at Q4_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.
How StarCoder2 15B (15B params) fits at each quantization level on NVIDIA A16 64GB (64.0 GB usable).
| Quant | Bits | VRAM | Quality | Fit |
|---|---|---|---|---|
Q2_K | 2 | 5.9 GB | Low | C41 |
Q3_K_S | 3 | 7.4 GB | Low | C41 |
NVFP4 | 4 | 8.4 GB | Medium | C41 |
Q4_K_M | 4 | 9.2 GB | Medium | C41 |
Q5_K_M | 5 | 10.8 GB | High | C41 |
Q6_K | 6 | 12.3 GB | High | C42 |
Q8_0 | 8 | 16.1 GB | Very High | C42 |
F16Best for your GPU | 16 | 30.7 GB | Maximum | C46 |
Copy-paste commands to run StarCoder2 15B on your machine.
Run
lms load hf-second-state--starcoder2-15b-gguf && lms server startUpgrade options
Raises estimated decode speed by about 222%.
Adds memory headroom for longer context windows and future model growth.
~$9,999 MSRP
Raises estimated decode speed by about 187%.
Adds memory headroom for longer context windows and future model growth.
~$9,999 MSRP
Raises estimated decode speed by about 311%.
Adds memory headroom for longer context windows and future model growth.
~$12,000 MSRP
Yes, NVIDIA A16 64GB can run StarCoder2 15B with a C grade (Runs well). Expected decode speed: 51.1 tok/s.
StarCoder2 15B (15B parameters) requires approximately 18.5 GB of memory with Q4_K_M quantization.
The recommended quantization for StarCoder2 15B is Q4_K_M, which balances quality and memory efficiency.
On NVIDIA A16 64GB, StarCoder2 15B achieves approximately 51.1 tokens per second decode speed with a time-to-first-token of 3785ms using Q4_K_M quantization.
For coding workloads, StarCoder2 15B on NVIDIA A16 64GB receives a C grade with 51.1 tok/s and 430K context.
On NVIDIA A16 64GB, StarCoder2 15B can safely use up to 430K tokens of context. The model's official context limit is —, but available memory constrains the safe maximum.
Paste this snippet into any page to show a live fit card.
<iframe src="https://willitrunai.com/embed/hf-second-state--starcoder2-15b-gguf-on-a16-64gb" width="400" height="180" frameborder="0" style="border:none;border-radius:12px;overflow:hidden;" title="Will It Run AI — fit result"></iframe>
Preview: