Local coding models

Which coding model should you run locally?

Two questions, kept apart. How good is a model at coding: that comes from published coding benchmarks, shown with who measured them. Will it run on your machine, and how fast: that comes from memory and from the speed DevBench measured on real hardware.

Check your machine

Your DevBench result

Uses your measured AI bandwidth, reading speed, free graphics memory and RAM.

No result yet? Run the AI test and publish it.

Measured hardware

Graphics cards, Macs and processors with published DevBench AI results (median values).

Custom memory

For hardware nobody has measured yet. Fit is exact; speed needs a measured reference.

Coding models

Model SWE-bench Verified
agentic, real repositories
LiveCodeBench
new contest problems
HumanEval+
single functions
File
reference quantization
Needs
with 8K context
Qwen3.6 35B-A3B
Qwen · MoE · 34.7B total, 3B active · Q4_K_M
Agentic / multi-file General coding
73.4*
Qwen
80.4
v6 · Qwen
– 21 GB 22 GB
Qwen3-Coder-Next 80B-A3B
Qwen · MoE · 79.7B total, 3B active · Q4_K_M
Agentic / multi-file
> 70*
Qwen
– – 45 GB 47 GB
Devstral Small 2 24B
Mistral AI · Dense · 24B · Q4_K_M
Agentic / multi-file
68.0
Mistral AI
– – 13 GB 16 GB
gpt-oss 120B
OpenAI · MoE · 117B total, 5.1B active · MXFP4
Agentic / multi-file General coding
62.4*
OpenAI
82.7*
v6 · Qwen
– 59 GB 61 GB
gpt-oss 20B
OpenAI · MoE · 20.9B total, 3.6B active · MXFP4
Agentic / multi-file General coding
60.7*
OpenAI
74.6*
v6 · Qwen
– 11 GB 13 GB
Gemma 4 26B-A4B
Google · MoE · 25.2B total, 4B active · Q4_K_M
General coding
17.4*
Qwen
77.1
v6 · Google
– 16 GB 18 GB
Qwen3.8 27B
Qwen · Dense · 27.3B · Q4_K_M
Agentic / multi-file General coding
– 90.3
v6 · Qwen
– 15 GB 17 GB
Qwen3.5 9B
Qwen · Dense · 9B · Q4_K_M
General coding
– 65.6
v6 · Qwen
– 5.3 GB 7 GB
Qwen2.5-Coder 32B
Qwen · Dense · 32.8B · Q4_K_M
General coding
– 31.4
2024-07 to 2024-09 · Qwen
87.2*
Qwen
18 GB 22 GB
DeepSeek-Coder-V2-Lite 16B
DeepSeek · MoE · 15.7B total, 2.4B active · Q4_K_M
General coding
– 24.3
2024 release · DeepSeek
– 9.7 GB 13 GB
Qwen2.5-Coder 14B
Qwen · Dense · 14.8B · Q4_K_M
General coding
– 23.4
2024-07 to 2024-09 · Qwen
87.2
Qwen
8.4 GB 11 GB
Qwen2.5-Coder 7B
Qwen · Dense · 7.6B · Q4_K_M
General coding Fast autocomplete / FIM
– 18.2
2024-07 to 2024-09 · Qwen
84.1
Qwen
4.4 GB 6.3 GB
Qwen2.5-Coder 1.5B DevBench test model
Qwen · Dense · 1.5B · Q4_K_M
Fast autocomplete / FIM
– 6.1
2024-07 to 2024-09 · Qwen
66.5
Qwen
1 GB 2.8 GB
Qwen3-Coder 30B-A3B
Qwen · MoE · 30.5B total, 3.3B active · Q4_K_M
Agentic / multi-file
– – – 17 GB 20 GB

Scores are percentages as published by the source named under each number; click a score for the source. “–” means no published score was found, not a low score. DevBench does not combine them into a single quality score: the benchmarks measure different things, vendors run them with different agent setups, and a number marked * was measured under the conditions listed below. LiveCodeBench versions use different questions, so v6 scores and older question windows can't be compared.

* How the marked scores were measured

Model details

Model Parameters
total · active per token
Quantizations
GGUF file size
Context cache
per 1,000 tokens
Max context Also reported
Qwen2.5-Coder 1.5B
Apache-2.0 · The model the DevBench AI test runs, so its speed on measured hardware is a measurement, not an estimate.
1.5B
all (dense)
Q4_K_M 1 GB Q5_K_M 1.2 GB Q6_K 1.4 GB Q8_0 1.8 GB 29 MB 32K Aider 31.6
Qwen2.5-Coder 7B
Apache-2.0
7.6B
all (dense)
Q4_K_M 4.4 GB Q5_K_M 5.1 GB Q6_K 5.8 GB Q8_0 7.5 GB 57 MB 131K Aider 68.4
Qwen3.5 9B
Apache-2.0
9B
all (dense)
IQ4_XS 4.8 GB Q4_K_M 5.3 GB Q5_K_M 6.1 GB Q6_K 6.9 GB Q8_0 8.9 GB 33 MB 262K
Qwen2.5-Coder 14B
Apache-2.0
14.8B
all (dense)
Q4_K_M 8.4 GB Q5_K_M 9.8 GB Q6_K 11 GB Q8_0 15 GB 197 MB 131K Aider 69.2
DeepSeek-Coder-V2-Lite 16B
DeepSeek License · A 2024 model, listed for comparison. Its attention design keeps a large context cache in llama.cpp.
15.7B
2.4B active (MoE)
IQ4_XS 8 GB Q4_K_M 9.7 GB Q5_K_M 11 GB Q6_K 13 GB Q8_0 16 GB 277 MB 163K HumanEval 81.1 MBPP+ 68.8 Aider 44.4
gpt-oss 20B
Apache-2.0
20.9B
3.6B active (MoE)
MXFP4 11 GB 25 MB 131K Aider Polyglot 34.2
Devstral Small 2 24B
Apache-2.0
24B
all (dense)
IQ4_XS 12 GB Q4_K_M 13 GB Q5_K_M 16 GB Q6_K 18 GB Q8_0 23 GB 164 MB 256K Terminal-Bench 2 22.5
Qwen3.8 27B
Apache-2.0
27.3B
all (dense)
IQ4_XS 13 GB Q4_K_M 15 GB Q5_K_M 19 GB Q6_K 20 GB Q8_0 27 GB 66 MB 262K SWE-bench Pro 61.7 Terminal-Bench 2.1 73.0
Gemma 4 26B-A4B
Apache-2.0
25.2B
4B active (MoE)
IQ4_XS 13 GB Q4_K_M 16 GB Q5_K_M 20 GB Q6_K 22 GB Q8_0 25 GB 21 MB + 210 MB 262K
Qwen3-Coder 30B-A3B
Apache-2.0 · Qwen's model card lists no benchmark scores for this size.
30.5B
3.3B active (MoE)
IQ4_XS 15 GB Q4_K_M 17 GB Q5_K_M 20 GB Q6_K 23 GB Q8_0 30 GB 98 MB 262K
Qwen2.5-Coder 32B
Apache-2.0
32.8B
all (dense)
Q4_K_M 18 GB Q5_K_M 22 GB Q6_K 25 GB Q8_0 32 GB 262 MB 131K Aider 73.7
Qwen3.6 35B-A3B
Apache-2.0
34.7B
3B active (MoE)
IQ4_XS 17 GB Q4_K_M 21 GB Q5_K_M 25 GB Q6_K 27 GB Q8_0 34 GB 21 MB 262K SWE-bench Pro 49.5 Terminal-Bench 2.0 51.5
Qwen3-Coder-Next 80B-A3B
Apache-2.0
79.7B
3B active (MoE)
IQ4_XS 40 GB Q4_K_M 45 GB Q5_K_M 53 GB Q6_K 61 GB Q8_0 79 GB 25 MB 262K
gpt-oss 120B
Apache-2.0
117B
5.1B active (MoE)
MXFP4 59 GB 37 MB 131K Aider Polyglot 44.4

File sizes are the actual GGUF files on Hugging Face (hover a quantization for the repository), shown in binary gigabytes like graphics memory; Hugging Face lists the same files in decimal GB, about 7% higher. The highlighted quantization is the reference: Q4_K_M, or MXFP4 for gpt-oss, whose weights are 4-bit natively. IQ4_XS is the lowest one considered; Q3 and Q2 files exist but lose too much code quality to recommend. The context cache is computed from each model's published architecture (16-bit keys and values on its full-attention layers).

How fit and speed are worked out

Memory

Quantized file + context cache + about 1.5 GB for the runtime. A 16K-token context is tried first, then 8K; below 8K a model isn't useful for coding. Graphics cards keep ~5% for the desktop; unified memory gives the graphics side about two-thirds to three-quarters.

Quantization

Q4_K_M is the baseline. A higher one (Q5_K_M, Q6_K, Q8_0) is suggested only if it fits and the model still runs fluently with it. If Q4_K_M doesn't fit, IQ4_XS is tried. Nothing lower is ever counted as “runs”.

Writing speed

Measured AI bandwidth ÷ bytes read per token. A dense model reads its whole file for every token; a MoE model reads only its active experts, which is why a 30B MoE can write faster than a 14B dense model.

Reading and offload

Prompt reading scales the measured reading speed by the model's active size. When a model spills from the card into system RAM, that part is read at processor speed, so both writing and reading drop sharply.

DevBench measures one model (Qwen2.5-Coder 1.5B Instruct (Q4_K_M)), so its row shows the measurement itself; every other speed is an estimate from that measurement, using the same math and thresholds as the AI hardware page. Real speeds depend on drivers, runtime, context length and settings. Methodology

Sources