作者: Jakub Rusinowski · 最后更新: 2026年2月5日
Model library → Qwen3-Coder → Qwen3-Coder 8B
Compact coding model that punches well above its weight class. Strong at Python, JavaScript, TypeScript, Go, and Rust.
Qwen3-Coder 8B needs about 6 GB of VRAM at Q4_K_M — quantized weights plus framework overhead, before any KV cache. On Apple Silicon that figure comes out of unified memory.
| Parameters | 8 Billion |
| Context window | 128,000 |
| Architecture | Dense |
| Provider | Alibaba Cloud |
| Licence | Apache 2.0 |
| Specified at | Q4_K_M |
| System RAM | 16 GB |
| Record updated | 2026-02-05 |
Apache-2.0 — commercial use permitted. Commercial use permitted. No usage restrictions beyond attribution.
Modelled on a reference NVIDIA RTX 4090 (24 GB), with no KV cache (this record has no published architecture). Speed figures are ESTIMATES from the memory-bandwidth roofline described on the methodology page, not benchmarks we ran — rows marked measured come from published or reader-submitted runs. VRAM here includes the KV cache, so it reads higher than the headline figure above, which does not.
| Quant | Weights | VRAM needed | Est. speed | Fit on 24 GB |
|---|---|---|---|---|
| Q2_K | 2.6 GB | 3.4 GB | ~154 tok/s (est.) | Fits comfortably |
| Q3_K_M | 3.4 GB | 4.2 GB | ~133 tok/s (est.) | Fits comfortably |
| Q4_K_M | 4.8 GB | 5.6 GB | ~107 tok/s (est.) | Fits comfortably |
| Q5_K_M | 5.7 GB | 6.5 GB | ~95 tok/s (est.) | Fits comfortably |
| Q6_K | 6.6 GB | 7.4 GB | ~86 tok/s (est.) | Fits comfortably |
| Q8_0 | 8.5 GB | 9.3 GB | ~70 tok/s (est.) | Fits comfortably |
| F16 | 16.0 GB | 16.8 GB | ~41 tok/s (est.) | Fits comfortably |
Want the memory numbers alone, at every quantization level and your own context length? Use the Qwen3-Coder 8B VRAM calculator.
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.
The cheapest catalogued GPU that runs Qwen3-Coder 8B is the Intel Arc B570 (10 GB).
Install Ollama, then run:
ollama run qwen3-coder:8b
Weights on Hugging Face: Qwen/Qwen3-Coder-8B-Instruct.
Best for: coding, debugging, code review.
← All Qwen3-Coder models | VRAM calculator | Check your own hardware