HS
HardwareStack

Can I run Qwen2.5-Coder 14B locally?

Yes. At Q4 with 8K context, Qwen2.5-Coder 14B needs about 10 GB, so it runs entirely on any GPU with 13 GB of VRAM or more, starting with the AMD Radeon RX 7600 XT.

Measured speed on my RTX 5060 Ti 16 GB

ContextWritingReading the promptFirst word afterCalculator estimate
8K42 tok/s1851 tok/s1.8 s~35 tok/s
32K17 tok/s1303 tok/s2.6 s~20 tok/s

qwen2.5-coder:14b in Ollama 0.40.11 on AMD Ryzen 7 5700X, 48 GB DDR4-3200, with the desktop using about 2 GB of VRAM. Median of 3 runs: a prompt of 3,342 tokens of code, then 256 tokens written. Benchmark script.

Context is the window reserved, not filled; a nearly full window is slower. Where the window doesn't fit in VRAM, part of Qwen2.5-Coder 14B runs on the CPU. “First word after” is the time to read the whole test prompt. A coding agent resends its files every turn, and Ollama reuses the part it has already read, so later turns mostly wait for the new part.

Memory needed by compression and context length

Compression4K context8K context32K context
Q4
The most common download. Small quality loss.
9.7 GB10 GB15 GB
Q5
Very close to full quality.
11 GB12 GB16 GB
Q8
Practically indistinguishable from FP16 at about half the size.
16 GB17 GB22 GB
FP16
Uncompressed. Reference quality, largest size.
30 GB31 GB35 GB

Total memory: model weights, context (KV cache) and runtime overhead. To run entirely on a GPU that also drives your screen, VRAM must be about 2 GB larger than this.

GPUs that run Qwen2.5-Coder 14B entirely on the GPU

  • AMD Radeon RX 7600 XT

    16 GB · ~23 tok/s at Q4

    Amazon
  • AMD Radeon RX 6800 XT

    16 GB · ~40 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 5060 Ti 16GB

    16 GB · ~35 tok/s at Q4

    Amazon
  • AMD Radeon RX 9060 XT 16GB

    16 GB · ~25 tok/s at Q4

    Amazon
  • AMD Radeon RX 6800

    16 GB · ~40 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 4060 Ti 16GB

    16 GB · ~23 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 4080 SUPER

    16 GB · ~56 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 4080

    16 GB · ~55 tok/s at Q4

    Amazon
  • NVIDIA GeForce RTX 5070 Ti

    16 GB · ~67 tok/s at Q4

    Amazon
  • AMD Radeon RX 9070 XT

    16 GB · ~49 tok/s at Q4

    Amazon

Model facts

Parameters
14.8B
Max context
32K tokens
License
Apache 2.0
Released
Nov 2024
View on Hugging Face

Agentic coding test

Levels passed: 0 of 5, from my own ASO experiment on an RTX 5060 Ti 16 GB. One small coding test: 5 tasks, one run each. It's a single data point, not a ranking of the models.

See the result Compare all 5 tested models →

Check it with your hardware

Change the compression, context length and system RAM in the calculator.

Open calculator