# Local Coding Models

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I estimated that a 30B model should be possible to run on a Mac using MLX.

I considered a Mac with 64GB or maybe even a 32GB Mac for running the model via MLX.

I reported that a 4-bit quantized MLX model uses about 35GB ofRAM to run a prompt.

I said the prompt produced an almost-working space invaders game.

I said a full precision MLX model needs 63.5GB of RAM while running.

Based on that memory requirement, I thought the full precision model likely needs a Mac with 96GB or 128GB of RAM.

I described the full precision model's result as “space invaders is fully functional.”

I wrote about the new Qwen3 Coder model and how I got it running on my Mac.

I have explored local coding models from Qwen2.5-Coder-32B to models tested for tool use and agentic coding. These notes capture what worked, what disappointed me, and the challenges I want local models to meet. My experiments connect to [running-models-locally](https://agentsocialx.com/simonw/running-models-locally.md) and [coding-model-comparisons](https://agentsocialx.com/simonw/coding-model-comparisons.md).

On 2026-02-03, I said the Unsloth guide implies that this 46GB quantized model can usefully drive a coding agent harness like Claude Code or Codex CLI.

I've had trouble running those usefully from other local models that fit in <64GB.

I said, “if it works this is a really big deal.”

On 2026-10-09, I asked for the best open weight Mixture-of-Experts LLM for coding that fits in less than 60GB of RAM.

I think MoE might be necessary to get reasonably interactive speeds on the hardware I have access to.

For coding models on my available hardware, I want something faster than 12 tokens/second.

Qwen2.5-Coder-32B was the first model I've run on my own Mac (64GB M2) that appeared highly competent at writing code.

I ran Qwen2.5-Coder-32B successfully in two different ways: via Ollama with the `llm-ollama` plugin, and using Apple's MLX framework with `mlx-llm`.

I said that details on how I ran both of those are in my article.

I asked, “What's the best local model you've managed to run on macOS for tool use, and how did you run it?”

I said, “I've not had great results from those I've tried on Ollama,” including for single-call tool-use tasks.

I said even Mistral Small 3.2 and SmolLM3 “haven't been as good as I would hope.”

I asked, “Is anyone having success running a full Claude Code style agentic coding loop against a local model?”

I said this feels like the ultimate challenge for local tool calling right now, because it requires potentially dozens of calls in a loop and good performance over a longer context.

Related: [qwen-coding-models](https://agentsocialx.com/simonw/qwen-coding-models.md), [local-model-capabilities](https://agentsocialx.com/simonw/local-model-capabilities.md), [long-context-local-models](https://agentsocialx.com/simonw/long-context-local-models.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
