llamaperf

Best local LLM for coding

The models people report running for coding on their own hardware, ranked from community reports. Pick your memory size first: a model that is the best choice on a 24 GB card is often not the best on 12 GB.

Ranked from reports whose posters used the model for coding.

By VRAM

All memory sizes

#ModelReports
1Qwen3.827B
Alibaba · mostly Q4_K_M
Gen 31 t/s (36 runs) · PP 803 t/s (12 runs) · with speculation 65 t/s (69)
215
2Qwen3.8 Flash-Next125B · 6B active
Alibaba · mostly IQ3_S
Gen 54 t/s (24 runs) · PP 930 t/s (14 runs) · with speculation 44 t/s (18)
171
3Qwen3.635B · 3B active
Alibaba · mostly Q4_K_M
Gen 57 t/s (16 runs) · PP 298 t/s (6 runs) · with speculation 114 t/s (6)
47
4Qwen3.627B
Alibaba · mostly Q4_K_M
Gen 25 t/s (7 runs) · PP 706 t/s (3 runs) · with speculation 50 t/s (12)
36
5DeepSeek V4 Flash284B · 13B active
DeepSeek · mostly IQ2_M
Gen 120 t/s (2 runs) · with speculation 17 t/s (2)
23
6DeepSeek V4.1 Flash552B · 16B active
mostly MXFP4
Gen 16 t/s (1 run) · PP 300 t/s (1 run) · with speculation 31 t/s (1)
17
7Qwen3.8 Swift-1.527B
Alibaba · mostly MXFP4
Gen 53 t/s (3 runs) · with speculation 86 t/s (6)
16
8GLM-5.3 Flash320B · 18B active
Zhipu AI · mostly NVFP4
Gen 37 t/s (3 runs) · PP 875 t/s (2 runs)
15
9Ornith1.535B · 3B active
mostly Q4_K_M
Gen 69 t/s (1 run) · with speculation 162 t/s (2)
9
10Qwen3-Coder30B · 3B active
mostly Q4_K_M
Gen 122 t/s (4 runs)
7
11Bonsai 227B
PrismML · mostly PTQ1_0
Gen 50 t/s (6 runs) · PP 1053 t/s (4 runs)
6
12Muse Glimmer30B
Meta · mostly K-Quant-Dynamic
No generation data · with speculation 129 t/s (4)
6
13Gemma 426B · 4B active
Google DeepMind · mostly Q5_K_M
Gen 129 t/s (3 runs) · PP 5600 t/s (1 run)
4
14Gemma 431B
Google DeepMind · mostly NVFP4
Gen 37 t/s (1 run) · with speculation 96 t/s (2)
4
15Qwen3.8 Swift-1.5-125B-A6B125B · 6B active
Alibaba · mostly EXL3 4.05
Gen 36 t/s (1 run) · PP 1634 t/s (1 run)
4
16Qwen3-Coder-Next80B · 3B active
mostly Q4_K_M
Gen 24 t/s (3 runs) · PP 546 t/s (1 run)
4
17Qwen3.535B · 3B active
Alibaba · mostly IQ4_NL
Gen 50 t/s (1 run) · PP 980 t/s (1 run)
3
18DeepSeek V4 Flash Vision-Exp285B · 13B active
DeepSeek · mostly NVFP4
No generation data · with speculation 32 t/s (1)
3
19Qwen3.8 Swift27B
Alibaba · mostly BF16
No generation data
3
20Qwen3.8 Uncensored27B
Alibaba · mostly 4-bit
No generation data · with speculation 92 t/s (3)
3
21Qwen2.5 Coder-7B7B
Alibaba · mostly Q4_K_M
Gen 159 t/s (1 run)
2
22Qwen38B
Alibaba · mostly Q4
Gen 87 t/s (2 runs)
2
23Nemotron 3.5 Bolt74B · 9B active
mostly 2-bit
Gen 85 t/s (1 run) · PP 833 t/s (1 run)
2
24Qwen3.8 Escha-W227B
Alibaba · mostly 2.469 bpw
Gen 63 t/s (2 runs)
2
25GLM-4.7 Flash30B
Zhipu AI · mostly Q4_K_XL
Gen 43 t/s (1 run)
2
26Gemma 412B
Google DeepMind · mostly Q5_K_XL
Gen 39 t/s (2 runs)
2
27KAT-Coder V2.5-Dev35B · 3B active
Kwaipilot · mostly W4A16 GPTQ
Gen 14 t/s (1 run)
2
28Bonsai 2 Ternary27B
PrismML · mostly 2-bit ternary
No generation data · with speculation 188 t/s (1)
2
29DeepSeek V4.1 Flash763B
mostly GSQ
No generation data
2
30Kimi K32800B · 104B active
Moonshot AI
No generation data
2
31Mellum2.112B · 2.5B active
mostly Q8
No generation data
2
32Nemotron 3.5 Lightning30B · 3B active
NVIDIA · mostly Q4_0
No generation data
2
33Qwen3.59B
Alibaba · mostly 4-bit
No generation data · with speculation 198 t/s (1)
2
34Qwen3.8 Swift-1.5-Uncensored27B
Alibaba · mostly 2.3bpw
No generation data · with speculation 68 t/s (1)
2
35Qwen3.8 Huihui-Abliterated27B
Alibaba · mostly NVFP4
No generation data · with speculation 203 t/s (2)
2
36Qwen3.8 Swift-1.5 Flash-Next125B · 6B active
Alibaba · mostly IQ2_XS
No generation data · with speculation 145 t/s (1)
2
37Qwen3.8 Flash-Next Uncensored125B · 6B active
Alibaba · mostly NVFP4
No generation data
2
38Nex-N2.5-mini35B · 3B active
mostly MLX-4bit
Gen 134 t/s (1 run)
1
39DeepSeek-Coder-V2-Lite16B · 2.4B active
mostly 4bit
Gen 126 t/s (1 run) · PP 364 t/s (1 run)
1
40Qwen2.5 Coder-1.5B1.5B
Alibaba
Gen 99 t/s (1 run)
1
41MiniCPM-V 4.735B · 3B active
mostly mix_q3gud_im
Gen 93 t/s (1 run)
1
42gpt-oss117B · 5.1B active
OpenAI · mostly MXFP4
Gen 56 t/s (1 run) · PP 1135 t/s (1 run)
1
43Qwen3.5 reasoning9B
Alibaba
Gen 50 t/s (1 run)
1
44DeepSeek V4 Flash 9B distill9B
DeepSeek · mostly Q4_K_M
Gen 44 t/s (1 run)
1
45Mimo 2.6 Distill-Qwen9B
Xiaomi · mostly Q8_0
Gen 42 t/s (1 run) · PP 1718 t/s (1 run)
1
46Qwen3.6 APEX-I-Quality35B · 3B active
Alibaba
Gen 37 t/s (1 run)
1
47Qwen3.8 AREX-227B
Alibaba · mostly EXL3 4.00 bpw
Gen 36 t/s (1 run)
1
48Qwen2.57B
Alibaba
Gen 34 t/s (1 run)
1
49Nemotron 3.5 Super VL120B · 12B active
mostly Q4_K_M
Gen 31 t/s (1 run)
1
50Nanbeige4.333B
mostly 4-bit
Gen 29 t/s (1 run) · PP 757 t/s (1 run)
1
51Qwen2.5 Coder-32B32B
Alibaba · mostly Q4_K_M
Gen 28 t/s (1 run) · PP 450 t/s (1 run)
1
52Minimax M2.1230B · 10B active
mostly 4bit
Gen 25 t/s (1 run)
1
53Agents-A1 Millie35B · 3B active
InternScience · mostly ternary
Gen 22 t/s (1 run) · PP 261 t/s (1 run)
1
54Qwen3-Next80B · 3B active
Alibaba · mostly Q4_K_M
Gen 19 t/s (1 run) · PP 130 t/s (1 run)
1
55Llama 3.21B
Meta · mostly Q4_K_M
Gen 15 t/s (1 run) · PP 108 t/s (1 run)
1
56Qwen3.6 Coder27B · 3B active
Alibaba · mostly Q4_K_M
Gen 14 t/s (1 run)
1
57Ling-3.0 Tiny7.9B · 1.3B active
Ant Group · mostly Q6
Gen 10 t/s (1 run)
1
58Gemma 4 E4B8B
Google DeepMind · mostly 4bit
Gen 8.2 t/s (1 run)
1
59Qwen 2.5 Coder14B
mostly Q3_K_M
Gen 1.2 t/s (1 run)
1
60Bonsai 2 Swift Katana27B
PrismML · mostly PTQ1_0
No generation data
1
61DeepSeek V4 Flash REAP-150B150B
DeepSeek · mostly FP4
No generation data
1
62Gemma 426B
Google DeepMind
No generation data
1
63Mimo 2.5310B · 15B active
Xiaomi
No generation data
1
64Mimo 2.6 Flash309B · 15B active
Xiaomi
No generation data
1
65Mimo 2.6 Flash-RL309B · 15B active
Xiaomi · mostly MXFP4
No generation data
1
66Nemotron 3.5 Bolt74B · 9B active
mostly IQ2_XXS
No generation data · with speculation 343 t/s (1)
1
67Ornith1.59B
mostly Q6_K
No generation data
1
68Ornith1.5 BigBang35B · 3B active
mostly Q4_K_M
No generation data · with speculation 169 t/s (1)
1
69Ornith1.5122B
mostly UD-IQ2_XXS
No generation data
1
70Qwen2.532B
Alibaba · mostly AWQ
No generation data
1
71Qwen2.5-Coder3B
Alibaba
No generation data
1
72Qwen314B
Alibaba · mostly Q4_K_M
No generation data
1
73Qwen330B · 3B active
Alibaba · mostly Q4_K_M
No generation data
1
74Qwen3.54B
Alibaba · mostly Q4_K_M
No generation data
1
75Qwen3.5 Mica v0.14B
Alibaba · mostly Q4_K_M
No generation data
1
76Qwen3.5 DeepSeek-V4-Flash9B
Alibaba · mostly Q6_K
No generation data · with speculation 49 t/s (1)
1
77Qwen3.527B
Alibaba · mostly Q4_K_M
No generation data
1
78Qwen3.5122B · 10B active
Alibaba · mostly UD-IQ4_XS
No generation data
1
79Qwen3.6 Fable-Fus-711-UnHeretic-NM-DAU-NEO-MAX-NEO-LOW27B
Alibaba · mostly IQ4_XS
No generation data · with speculation 42 t/s (1)
1
80Qwen3.6 Tiel-Coder35B · 3B active
Alibaba · mostly Q4_K_XL
No generation data
1
81Qwen3.8 Splash-HQ27B
Alibaba · mostly Q8
No generation data · with speculation 37 t/s (1)
1
82Qwen3.8 L0xRE27B
Alibaba · mostly IQ3
No generation data · with speculation 40 t/s (1)
1
83Qwen3.8 QUASAR27B
Alibaba · mostly NVFP4
No generation data · with speculation 287 t/s (1)
1
84Qwen3.8 CODER27B
Alibaba · mostly IQ4_XS
No generation data
1
85Qwen3.8 Cold-Fusion-GAIN-V1.1-NM-DAU-NEO-MAX-NEO27B
Alibaba · mostly Q8_0
No generation data
1
86Qwen3.8 abliterated27B
Alibaba · mostly IQ3_S
No generation data · with speculation 105 t/s (1)
1
87Qwen3.8 pi27B
Alibaba · mostly Q4_K_M
No generation data
1
88Qwen3.8 ASCII-Condensed27B
Alibaba · mostly UD-IQ4_XS
No generation data
1
89Qwen3.8 RVN27B
Alibaba · mostly Q6_K
No generation data · with speculation 100 t/s (1)
1
90Qwen3.8 RVN Heretic (ARA abliterated)27B
Alibaba · mostly Q6_K
No generation data
1
91Qwen3.835B
Alibaba · mostly Q6
No generation data
1
92Qwopus3.6 Coder-Compat27B
mostly Q4_K_M
No generation data · with speculation 40 t/s (1)
1

Frequently asked

What is the best local LLM for coding?

It depends on how much memory you have, which is why this page is split by VRAM. Each tier lists the model sizes people report using for coding on that much memory, with the quant most of them used and their typical speed, so you can pick from setups like yours rather than from a single global list.

How are these rankings built?

From community performance reports tagged as coding use. Model sizes are ordered by how many reports use them. Typical speed is the median of plain runs on one device, and runs with speculative decoding are shown separately. Nothing is sponsored.

Does a coding model need more VRAM than a chat model?

Not for the weights, but coding sessions carry long contexts: whole files, diffs and tool output. The KV cache for that context has to fit next to the weights, so leave more headroom than a chat use would need, or pick a quant one rung smaller.