llmrun

Best local LLMs for coding

Run open-source models locally on your own GPU or Mac to handle code completion, refactoring, and agent tasks. We rank them using the llmrun coding score, offering a top choice for every available VRAM capacity.

Kimi K3.1 Pro

Moonshot AI · Q4_K_M · needs 1.7 TB · up to 1M context · runs on about 3 nodes of 8× H100 SXM 80 GB · from $64.56/hr in the cloud

No memory limit: the best model, whatever memory it needs.

All 130 coding models, no memory limit ↓

Also worth a look

Qwen3 Coder 480B A35B Instructcode model

Q4_K_M · needs 291 GB · about 5× H100 SXM 80 GB · 256K ctx

Best coding model by memory

Highest coding score that fits each size with at least 32K context and 20 t/s, at a Q3 or better quant. Speed is decode tokens per second on that size's reference GPU. The last row has no memory limit: the best model whatever it needs, on the GPU plan shown. Full ranking

Coding models, no memory limit130

Ranked by coding score, models without one after (code specialists first, by SWE-bench Verified). Memory is what the listed quant needs; speed is shown only for models that fit one 48 GB GPU.

130 models

Score: llmrun Score, 100 = average model. Ordered by Score. How ranking works

LLM models ranked by Score, recency and Fit
ModelVRAMScore
Kimi K3.1 Pro
Q4_K_M·—
1712.1 GB
DeepSeek V4.1 Flash 1017
Q4_K_M·—
458.4 GB
Kimi K3
Q4_K_M·—
1670.0 GB
Inkling 2 Small
Q4_K_M·—
359.1 GB
GLM 5.3
Q4_K_M·—
453.8 GB
Q4_K_M·—
990.8 GB
Muse Spark Open 816B A42B
Q4_K_M·—
551.9 GB
MiMo V2.6 Pro RL
Q4_K_M·—
614.1 GB
MiMo V2.6 Flash RL
Q4_K_M·—
186.5 GB
Q4_K_M·—
183.0 GB
GLM 5.2
Q4_K_M·—
453.8 GB
Mistral Large 4 1T A52B
Q4_K_M·—
629.3 GB
Beam 1.0 501B A23B
Q4_K_M·—
304.0 GB
DeepSeek V4.1 Flash
Q4_K_M·—
458.4 GB
Kimi K2.6
Q4_K_M·—
617.6 GB

Built for code

Models trained specifically for programming. Most have too few public coding benchmarks for a score yet, so they are listed by what they need and what has been measured.

How much memory do you need for a coding model?

On 8 GB the best coding model is Qwen2.5 Coder 7B Instruct. At 12 GB it is GPT OSS 20B (score 102). From 16 to 32 GB it is Qwen3.8 27B (score 118). With no memory limit, the best is Kimi K3.1 Pro (score 135). Mixture-of-experts models store all weights in memory yet activate only a few billion parameters per token, allowing them to decode far quicker than their total size implies. For code completion inside an editor, speed matters more than reaching the final bits of a high score.

Frequently Asked Questions

What is the best local LLM for coding?

On 24 GB, Qwen3.8 27B is the top pick with a coding score of 118, running at about 46 t/s on RTX 4090. It fits up to 64K tokens of context there. On 8 GB, the best fit is Qwen2.5 Coder 7B Instruct. With no memory limit, the best is Kimi K3.1 Pro. Open a model to see which GPUs and Macs run it.

Can I run a coding model on a laptop or an 8 GB GPU?

Yes. On 8 GB the best pick is Qwen2.5 Coder 7B Instruct (Q4_K_M, 5.8 GB), which runs at about 72 t/s on RTX 5060. Laptops with 8 to 16 GB of memory can run smaller models in the same way.

Are local coding models as good as cloud models?

Top open models today manage daily coding, autocomplete, and refactoring effectively while running offline so your code stays local. Cloud giants still take the lead on complex multi-file jobs.

How do I run these coding models?

Set up Ollama or LM Studio, then pull the desired model. Every model's page provides its installation command alongside details on which GPUs and Macs support it across all quantization levels.