Best Coding Models You Can Run Locally
Open-source coding models have caught up to commercial options for most day-to-day tasks. These are the strongest local models for code completion, generation, and review — sorted by Hugging Face download counts as a proxy for community adoption.
- 1
all-MiniLM-L6-v2
0.023B paramsTiny embedding model. Only 23MB. Perfect for on-device search.
Min VRAM: 0.1GBQuant: Q8_0Size: 0.023GBLicense: apache-2.0 - 2
Nomic Embed Text v1.5
0.137B paramsHigh quality text embedding model. 137M params. Good for RAG and search.
Min VRAM: 0.3GBQuant: Q8_0Size: 0.139GBLicense: apache-2.0 - 3
TinyLlama 1.1B
1.1B paramsLightweight 1.1B chat model based on Llama architecture. Great for phones.
Min VRAM: 1.12GBQuant: Q4_K_MSize: 0.623GBLicense: apache-2.0 - 4
Moondream 2
1.8B paramsUltra-compact vision model. Only 1GB. Answers questions about images.
Min VRAM: 1.5GBQuant: Q4_K_MSize: 1GBLicense: apache-2.0 - 5
Qwen 2.5 Coder 7B
7.6B paramsStrong 7B code model rivaling larger coding models. Excellent for local development.
Min VRAM: 4.86GBQuant: Q4_K_MSize: 4.361GBLicense: apache-2.0 - 6
Phi-3.5 Vision
4.2B paramsVision-language model from Microsoft. Can understand images and documents.
Min VRAM: 3.2GBQuant: Q4_K_MSize: 2.5GBLicense: mit - 7
Phi-4 Mini 3.8B
3.8B paramsLatest Phi mini with strong reasoning. Drop-in upgrade from Phi-3.5 Mini.
Min VRAM: 2.82GBQuant: Q4_K_MSize: 2.321GBLicense: mit - 8
Qwen 2.5 Coder 14B
14B paramsPowerful 14B code model. Excellent for complex programming tasks.
Min VRAM: 8.87GBQuant: Q4_K_MSize: 8.371GBLicense: apache-2.0 - 9
Phi-3.5 Mini 3.8B
3.8B paramsTiny but capable 3.8B model. Runs on almost any hardware including phones.
Min VRAM: 2.73GBQuant: Q4_K_MSize: 2.229GBLicense: mit - 10
Phi-4
14B paramsMicrosoft's 14B parameter model. Punches well above its weight on reasoning.
Min VRAM: 8.93GBQuant: Q4_K_MSize: 8.431GBLicense: mit - 11
Qwen 2.5 Coder 1.5B
1.5B paramsCompact code model with solid code generation and understanding abilities.
Min VRAM: 1.54GBQuant: Q4_K_MSize: 1.041GBLicense: apache-2.0 - 12
Qwen 2.5 Coder 0.5B
0.5B paramsSmallest code model. Default code assistant - runs on any iPhone. Great for code completion and simple programming tasks.
Min VRAM: 1.13GBQuant: Q8_0Size: 0.629GBLicense: apache-2.0 - 13
EXAONE 3.5 7.8B
7.8B params7.8B model from LG. Strong bilingual Korean/English.
Min VRAM: 4.94GBQuant: Q4_K_MSize: 4.443GBLicense: other - 14
Qwen 2.5 Coder 3B
3B paramsCapable 3B code model. Good balance of coding ability and resource usage.
Min VRAM: 2.46GBQuant: Q4_K_MSize: 1.96GBLicense: apache-2.0 - 15
MiniCPM-V 2.6
2B paramsEfficient multimodal model with strong image understanding. Optimized for edge devices.
Min VRAM: 2.1GBQuant: Q4_K_MSize: 1.6GBLicense: apache-2.0