Qwen2.5 Coder 14B Instruct is Alibaba's code model from November 2024, released under Apache 2.0. It writes, explains and fixes code, and is a popular local backend for editor plugins such as Continue.
At Q4_K_M it needs about 11.1 GB with an 8K conversation, so it fits 12GB cards, with more room for code context on 16GB.
ollama run qwen2.5-coder:14bFor agent-style coding with long files, the newer Qwen3 Coder 30B-A3B offers a 256K context, but it needs more memory.
Last reviewed · How we calculate
qwen2.5-coder:14bThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 28K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 8.9 GB | 10.3 GB | 11.1 GB | 12.7 GB | 16.0 GB | Small loss, best default |
| Q5_K_M | 10.5 GB | 11.9 GB | 12.7 GB | 14.3 GB | 17.5 GB | Very close to Q8 |
| Q6_K | 12.1 GB | 13.5 GB | 14.3 GB | 15.9 GB | 19.1 GB | Hard to tell from Q8 |
| Q8_0 | 15.6 GB | 17.0 GB | 17.8 GB | 19.4 GB | 22.7 GB | Near full quality |
| F16 | 29.4 GB | 30.8 GB | 31.6 GB | 33.2 GB | 36.4 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Slow, uses RAM | about 9.4 tok/s | Doesn't fit | |
| RTX 3060 12GB | Runs, tight | Slow, uses RAM | about 26 tok/s | 9K | |
| RTX 4070 12GB | Runs, tight | Slow, uses RAM | about 37 tok/s | 9K | |
| RTX 4060 Ti 16GB | Runs well | Slow, uses RAM | about 21 tok/s | 28K | |
| Radeon RX 7600 XT 16GB | Runs well | Slow, uses RAM | about 21 tok/s | 28K | |
| RTX 5060 Ti 16GB | Runs well | Slow, uses RAM | about 33 tok/s | 28K | |
| Intel Arc A770 16GB | Runs well | Slow, uses RAM | about 41 tok/s | 28K | |
| Radeon RX 9070 XT 16GB | Runs well | Slow, uses RAM | about 47 tok/s | 28K | |
| RTX 4070 Ti Super 16GB | Runs well | Slow, uses RAM | about 49 tok/s | 28K | |
| RTX 4080 Super 16GB | Runs well | Slow, uses RAM | about 54 tok/s | 28K | |
| RTX 5080 16GB | Runs well | Slow, uses RAM | about 70 tok/s | 28K | |
| RTX 3090 24GB | Runs well | Runs well | about 68 tok/s | 32K, full | |
| Radeon RX 7900 XTX 24GB | Runs well | Runs well | about 70 tok/s | 32K, full | |
| RTX 4090 24GB | Runs well | Runs well | about 74 tok/s | 32K, full | |
| RTX 5090 32GB | Runs well | Runs well | about 131 tok/s | 32K, full | |
| Mac mini M4 16GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 24GB | Runs well | Won't run | about 20 tok/s | 32K, full | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 20 tok/s | 32K, full | |
| Mac M4 Max 64GB | Runs well | Runs well | about 40 tok/s | 32K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 40 tok/s | 32K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run qwen2.5-coder:14b
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkRun ollama run qwen2.5-coder:14b. It downloads the Q4_K_M build, about 9 GB. Point editor plugins such as Continue at Ollama's local API on port 11434.
Not with the official GGUF files. They support 32K tokens; the 128K YaRN mode is only supported in vLLM. For long files, use a model with a longer native context.
Qwen2.5 Coder is tuned only for code and is a little better at completion inside an editor. Qwen3 14B is better at reasoning through a bug and at general questions. Both need similar memory.
Yes. Qwen2.5 Coder 14B is released under the Apache 2.0 licence, which allows commercial use, fine-tuning and redistribution as long as the licence notice is kept.
Q4_K_M (about 9 GB) for 12GB cards, Q5_K_M (about 10.5 GB) or Q6_K (about 12.1 GB) for 16GB cards. Code is sensitive to errors, so use the highest quant that leaves room for your context.
About 11.1 GB at Q4_K_M with an 8K conversation, 12.7 GB at Q5_K_M, 17.8 GB at Q8_0 and 31.6 GB at full F16 precision. Longer conversations add about 1.6 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 9.4 tokens a second.
Yes at Q4_K_M, with conversations up to about 9,000 tokens. Memory is nearly full, so close other GPU apps first.
Yes. The RTX 4060 Ti 16GB runs Qwen2.5 Coder 14B fully on the GPU at Q4_K_M at about 21 tokens a second.
Yes. A Mac with 24 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.