Experiences with local models for coding
Summary
This article details experiences running small language models locally for agentic coding on M3 Max (48GB RAM) and M5 Pro (64GB RAM) machines. The author evaluated models like Qwen3.6 35B MoE, Gemma 4 31B, and Gemma 4 26B through a viability funnel, manual and automated evaluations, and day-to-day use. Key findings include Qwen Coder Next 80B MoE's functional correctness but instability, and Qwen3.6 35B MoE's mixed results, often struggling with complex tasks like cumulative percentages or creating new charts from log data. Automated evaluations sometimes contradicted manual findings, with Qwen 35B MoE performing better on a 64GB machine than 48GB for one task. The author notes that task complexity, file discovery, and instruction specificity significantly impact success, finding Bash and Python tasks generally more successful than JavaScript.
Key takeaway
For AI Engineers evaluating local LLMs for agentic coding, recognize that current small models like Qwen3.6 35B MoE are not plug-and-play solutions. You should carefully select tasks, prioritizing small, well-defined changes over complex, multi-file operations requiring extensive code discovery. Be prepared for significant configuration effort and rigorous code review, as output quality and stability can vary even with identical model settings across different hardware.
Key insights
Local small models for agentic coding are not plug-and-play, requiring careful task selection and setup.
Principles
- Viability follows a funnel: RAM, speed, tool calling, correctness, context, complexity, quality.
- Task characteristics (discovery, file count, specificity, tech stack) are critical for local model success.
- Automated evaluations may not always confirm manual user experience.
Method
Evaluate local models through a three-phase journey: manual user experience evaluations, automated one-shot problem-solving, and integration into daily workflows for real-world tasks.
In practice
- Prioritize small, straightforward tasks, often pre-planned by larger models.
- Use OpenCode or Pi as coding harnesses.
- Disable "Enable Thinking" in LM Studio for Qwen3.6 35B MoE.
Topics
- Local LLMs
- Agentic Coding
- Model Evaluation
- Qwen3.6
- Gemma 4
- Coding Harnesses
- Developer Workflows
Code references
Best for: AI Engineer, Machine Learning Engineer, Software Engineer
Related on AIssential
Editorial summary, takeaway, and curation by AIssential. Original article published by Martin Fowler.