作者: Jakub Rusinowski · 最后更新: 2024年2月28日
Yes
Yes — StarCoder 2 7B at Q4_K_M needs about 5.7 GB of the 6.4 GB usable on 8 GB system RAM (~0.7 GB spare), at ~14.1 tok/s (estimated), with room for about 16,384 tokens of context.
Confidence: high · Recommended quantization: Q4_K_M · Estimated speed: ~14.1 tok/s
or compare on Vast.ai from $0.35/hr (typical low · varies)
As an Amazon Associate we earn from qualifying purchases. Cloud GPU links are referral links — we may earn a commission at no extra cost to you.
| Usable memory for models | 6.4 GB |
| Memory bandwidth | 90 GB/s |
| Quant | Memory needed | Fits 6.4 GB? | Max context | Est. speed | Download |
|---|---|---|---|---|---|
| F16 | 15.7 GB | ✗ No | — | — | 14.4 GB |
| Q8_0 | 9 GB | ✗ No | — | — | 7.7 GB |
| Q6_K | 7.2 GB | ✗ No | — | — | 5.9 GB |
| Q5_K_M | 6.4 GB | ✗ No | — | — | 5.1 GB |
| Q4_K_M | 5.7 GB | ✓ Yes | 16K | ~14.1 tok/s | 4.3 GB |
| Q3_K_M | 4.4 GB | ✓ Yes | 16K | ~19.3 tok/s | 3.1 GB |
| Q2_K | 3.7 GB | ✓ Yes | 16K | ~24.1 tok/s | 2.4 GB |
| Variant | Needs at Q4_K_M | Fits? | Est. speed |
|---|---|---|---|
| StarCoder 2 15B | 10.8 GB | ✗ Too large | — |
| StarCoder 2 7B | 5.7 GB | ✓ Fits | ~14.1 tok/s |
| StarCoder 2 3B | 2.9 GB | ✓ Fits | ~32.2 tok/s |
llama.cpp (CPU build) or Ollama — both run without a GPU
Yes — StarCoder 2 7B at Q4_K_M needs about 5.7 GB of the 6.4 GB usable on 8 GB system RAM (~0.7 GB spare), at ~14.1 tok/s (estimated), with room for about 16,384 tokens of context.
Q4_K_M — it needs about 5.7 GB of the 6.4 GB available, downloads as roughly 4.3 GB, and runs at an estimated 14.1 tokens/sec with up to 16K of context.
Nothing binding — the model fits with headroom and generates at a usable speed on this hardware.
llama.cpp (CPU build) or Ollama — both run without a GPU
← Can I Run It? | StarCoder 2 model page | Check your hardware