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.

Qwen3.8 27B

Alibaba · Q4_0 · 15.1 GB · up to 32K context · on RTX 5080

52.5 t/s
B

All 65 coding models for 16 GB ↓

Also worth a look

Qwen3 Coder 30B A3B Instructcode model

IQ3_M · 14.8 GB · 163.9 t/s · 32K 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 that run on 16 GB65

Ranked by coding score, models without one after (code specialists first, by SWE-bench Verified). Best quant that fits with a 16K context; speed is decode tokens per second on the reference GPU.

65 models · 52 run great · 1 run well

Score: llmrun Score, 100 = average model. Fit: how well it runs on this hardware, S best to F won't fit. Ordered by Score, recency and Fit. How ranking works

Showing compatibility for NVIDIA GeForce RTX 5080

LLM models compatible with NVIDIA GeForce RTX 5080 — ranked by Score, recency and Fit
ModelVRAMScoreFit
Qwen3.8 27B
Q3_K_L·51.2 t/s
15.4 GBB54, Decent
Qwen3.6 35B A3B
IQ3_S·164.2 t/s
15.7 GBC44, Usable
Gemma 4 26B A4B IT
Q4_K_S·169.1 t/s
15.5 GBB62, Decent
Qwen3.6 27B
Q3_K_L·51.2 t/s
15.4 GBB54, Decent
GPT OSS 20B
Q4_K_M·184.7 t/s
13.1 GBS96, Runs great
Qwen3.5 27B
Q3_K_L·51.2 t/s
15.4 GBB54, Decent
Llama 3.1 8B Instruct
Q4_K_M·144.9 t/s
7.9 GBS96, Runs great
Qwen3 Coder 30B A3B Instruct
Q3_K_M·159.6 t/s
16.0 GBC44, Usable
< 32K context fits
Q3_K_L·58.9 t/s
16.0 GBC44, Usable
< 32K context fits
Q3_K_L·60.0 t/s
15.7 GBC44, Usable
< 32K context fits
Q3_K_L·60.0 t/s
15.7 GBC44, Usable
ALoDLM 8B
Q4_K_M·139.1 t/s
7.6 GBS96, Runs great
Phi 4
< 32K context fits
Q4_K_M·80.7 t/s
12.5 GBS88, Runs great
Q4_K_M·228.2 t/s
7.8 GBS100, Runs great
HARP 1B
< 32K context fits
Q4_K_M·1969.2 t/s
0.4 GBS100, Runs great

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.