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
Coding models
| Model | SWE-bench Verified agentic, real repositories |
LiveCodeBench new contest problems |
HumanEval+ single functions |
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
|
– | 22 GB |
|
Qwen3-Coder-Next 80B-A3B
Qwen ·
MoE · 79.7B total, 3B active
· Q4_K_M
Agentic / multi-file
|
> 70*
Qwen
|
– | – | 47 GB |
|
Devstral Small 2 24B
Mistral AI ·
Dense · 24B
· Q4_K_M
Agentic / multi-file
|
68.0
Mistral AI
|
– | – | 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
|
– | 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
|
– | 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
|
– | 18 GB |
|
Qwen3.8 27B
Qwen ·
Dense · 27.3B
· Q4_K_M
Agentic / multi-file General coding
|
– |
90.3
v6 · Qwen
|
– | 17 GB |
|
Qwen3.5 9B
Qwen ·
Dense · 9B
· Q4_K_M
General coding
|
– |
65.6
v6 · Qwen
|
– | 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
|
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
|
– | 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
|
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
|
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
|
2.8 GB |
|
Qwen3-Coder 30B-A3B
Qwen ·
MoE · 30.5B total, 3.3B active
· Q4_K_M
Agentic / multi-file
|
– | – | – | 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
- Qwen3.6 35B-A3B, SWE-bench Verified: Qwen's internal agent scaffold. Qwen3.6-35B-A3B model card
- Qwen3-Coder-Next 80B-A3B, SWE-bench Verified: SWE-Agent scaffold. Qwen3-Coder-Next blog
- gpt-oss 120B, LiveCodeBench: measured by Qwen, not by OpenAI. Qwen3.5-9B model card
- gpt-oss 120B, SWE-bench Verified: high reasoning. gpt-oss model card
- gpt-oss 20B, SWE-bench Verified: high reasoning. gpt-oss model card
- gpt-oss 20B, LiveCodeBench: measured by Qwen, not by OpenAI. Qwen3.5-9B model card
- Gemma 4 26B-A4B, SWE-bench Verified: measured by Qwen with its own agent scaffold, not by Google. Qwen3.6-35B-A3B model card
- Qwen2.5-Coder 32B, HumanEval+: also 87.2 on the EvalPlus leaderboard. Qwen2.5-Coder technical report, table 16
Model details
| Model | Parameters total · active per token |
Quantizations GGUF file size |
|---|---|---|
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
gpt-oss 20B
Apache-2.0
|
20.9B 3.6B active (MoE) |
MXFP4 11 GB |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
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 |
|
gpt-oss 120B
Apache-2.0
|
117B 5.1B active (MoE) |
MXFP4 59 GB |
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
- DeepSeek-Coder-V2 README
- Devstral Small 2 model card
- Gemma 4 model card
- Qwen2.5-Coder technical report, table 16
- Qwen3-Coder-Next blog
- Qwen3.5-9B model card
- Qwen3.6-35B-A3B model card
- Qwen3.8-27B model card
- gpt-oss model card
- File sizes and architecture: the models' Hugging Face repositories (checked November 2026).