Writing code models that run on 16 GB
38 models with published weights that fit in 16 GB — the common laptop. Counted at four-bit quantisation, weights only, leaving the machine about a third of its memory and a gigabyte for context: room for roughly 16 billion parameters. A mixture of experts is counted in full, because it is held in full even though only a few experts compute.
The commonest laptop configuration, and the point where a genuinely useful model runs locally: fourteen billion parameters at four-bit fits with room to spare for the context. Expect a capable general assistant that will not match the frontier, and remember that anything else the machine is doing competes for the same memory.
Models and agents for reading a codebase and changing it, rather than writing a snippet. The boards that matter here are the ones that run against real repositories — SWE-bench, SWE-rebench, Terminal-Bench — because a model can write a plausible function and still fail to make a test pass. Note whether what you are looking at is a model or an agent: an agent brings the harness, the file access and the loop, and is priced for it.
- WizardCoder-15B-V1.0WizardLM Team15.0B≈9.8 GB at 4-bit
- starcoder2-15b-instruct-v0.1bigcode15.0B≈9.8 GB at 4-bit1 also selling it hosted
- DeepCoder-14B-PreviewAgentica14.8B≈9.6 GB at 4-bit
- Qwen2.5-Coder-14B-InstructAlibaba14.8B≈9.6 GB at 4-bit1 also selling it hosted
- Strand-Rust-Coder-14B-v1Fortytwo14.8B≈9.6 GB at 4-bit
- CodeLlama-13b-Instruct-hfCode Llama13.0B≈8.5 GB at 4-bit
- Huihui-gemma-4-12B-coder-fable5-composer2.5-v1-abliteratedhuihui-ai12.0B≈7.8 GB at 4-bit
- OmniCoder-9BTesslate9.4B≈6.1 GB at 4-bit
- codegeex4-all-9bzai-org9.0B≈5.9 GB at 4-bit
- Yi-Coder-9B-Chat01-ai8.8B≈5.7 GB at 4-bit
- codegemma-7bGoogle8.5B≈5.5 GB at 4-bit1 also selling it hosted
- Seed-Coder-8B-ReasoningByteDance Seed8.0B≈5.2 GB at 4-bit
- llama-3-sqlcoder-8bdefog8.0B≈5.2 GB at 4-bit
- OpenCoder-8B-Instructinftech.ai7.8B≈5.1 GB at 4-bit
- CodeQwen1.5-7B-ChatAlibaba7.3B≈4.7 GB at 4-bit
- starcoder2-7bbigcode7.2B≈4.7 GB at 4-bit1 also selling it hosted
- CodeLlama-7b-Python-hfCode Llama7.0B≈4.5 GB at 4-bit
- Nxcode-CQ-7B-orpoNTQAI7.0B≈4.5 GB at 4-bit
- OlympicCoder-7Bopen-r17.0B≈4.5 GB at 4-bit
- Qwen2.5-Coder-7BAlibaba7.0B≈4.5 GB at 4-bit2 also selling it hosted
- Qwen2.5-Coder-7B-InstructAlibaba7.0B≈4.5 GB at 4-bit4 also selling it hosted
- codegemma-7b-itGoogle7.0B≈4.5 GB at 4-bit1 also selling it hosted
- deepseek-coder-7b-instruct-v1.5deepseek-ai7.0B≈4.5 GB at 4-bit1 also selling it hosted
- Magicoder-S-DS-6.7BIntellligent Software Engineering (iSE)6.7B≈4.4 GB at 4-bit
- deepseek-coder-6.7b-instructDeepSeek6.7B≈4.4 GB at 4-bit
- CodeLlama-7b-Instruct-hfCode Llama6.7B≈4.4 GB at 4-bit
- CodeLlama-7b-hfCode Llama6.7B≈4.4 GB at 4-bit
- sqlcoder-7b-2Defog.ai6.7B≈4.4 GB at 4-bit
- starcoder2-3bbigcode3.0B≈2.0 GB at 4-bit1 also selling it hosted
- Qwen2.5-Coder-3B-InstructAlibaba3.0B≈2.0 GB at 4-bit3 also selling it hosted
- replit-code-v1-3bReplit3.0B≈2.0 GB at 4-bit
- replit-code-v1_5-3bReplit3.0B≈2.0 GB at 4-bit
- stablecode-completion-alpha-3b-4kStability AI3.0B≈2.0 GB at 4-bit
- stablecode-instruct-alpha-3bStability AI3.0B≈2.0 GB at 4-bit
- stable-code-3bStability AI2.8B≈1.8 GB at 4-bit1 also selling it hosted
- stable-code-instruct-3bStability AI2.8B≈1.8 GB at 4-bit
- deepseek-coder-1.3b-instructdeepseek-ai1.3B≈0.8 GB at 4-bit
- DeciCoder-1bDeci AI1.1B≈0.7 GB at 4-bit